]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
re PR c++/21353 (rvalues should not be allowed to be default values for non const...
[gcc.git] / gcc / ChangeLog
CommitLineData
99523994
UB
12005-10-17 Uros Bizjak <uros@kss-loka.si>
2
3 PR target/24315
4 * config/i386/i386.md (*pushdi2_rex64 splitter)
5 (*movdi_1_rex64 splitter, *ashldi3_1 splitter)
6 (*ashrdi3_1 splitter, *lshrdi3_1 splitter): Delay splitting after
7 flow2 pass only when (optimize > 0 && flag_peephole2).
8
af41c57d
AP
92005-10-16 Andrew Pinski <pinskia@physics.uc.edu>
10
11 PR driver/22544
12 * gcc.c (have_c): New static variable.
13 (have_o): Likewise.
14 (process_command): Remove declation of have_c.
15 Set have_o to 1 when handling -o.
16 (main): Add a fatel error if there are multiple
17 files specified and -o and -c/-S is passed witout
18 -combine or multiple languages.
19
d938e461
DB
202005-10-16 Daniel Berlin <dberlin@dberlin.org>
21
22 Fix PR tree-optimization/22444
23 * tree-ssa-alias.c (compute_flow_insensitive_aliasing):
24 Assert that we don't hit something with subvars.
25 (setup_pointers_and_addressables): Don't add things with subvars,
26 because we'll already process the subvars for aliasing purposes.
27
2de0aa52
HPN
282005-10-16 Hans-Peter Nilsson <hp@axis.com>
29
1165f377
HPN
30 PR target/23424
31 * config/cris/cris.md ("*mov_side<mode>", "*mov_sidesisf")
32 ("*mov_side<mode>_mem", "*mov_sidesisf_mem", "*clear_side<mode>")
33 ("*ext_sideqihi", "*ext_side<mode>si", "*op_side<mode>")
34 ("*op_swap_side<mode>", "*extopqihi_side", "*extop<mode>si_side")
35 ("*extopqihi_swap_side", "*extop<mode>si_swap_side"): Have separate,
36 swapped, alternatives for the R constraint.
37
b100540d 38 PR middle-end/24341
2de0aa52
HPN
39 * builtins.c (get_builtin_sync_mode): Make unlimited
40 mode_for_size request.
41
a9f7c570
RH
422005-10-15 Richard Henderson <rth@redhat.com>
43
44 * gimplify.c (gimplify_var_or_parm_decl): Split out from ...
45 (gimplify_expr): ... here.
46 (gimplify_compound_lval): Use it in initial scan loop. Allow
47 fb_lvalue in base expression.
48
1e188d1e
RH
492005-10-15 Richard Henderson <rth@redhat.com>
50
51 PR 23714
52 * builtins.c (expand_builtin_trap): Export.
53 * expr.h (expand_builtin_trap): Declare.
54 * expr.c (expand_assignment): Emit a trap for integral offsets
55 from registers that weren't reduced to bitpos.
56
57 * tree-cfg.c (mark_array_ref_addressable_1): Remove.
58 (mark_array_ref_addressable): Remove.
59 * tree-flow.h (mark_array_ref_addressable): Remove.
60 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Don't call it.
61
b27cedc6
JW
622005-10-15 James E Wilson <wilson@specifix.com>
63
64 PR target/24232
65 * sched-deps.c (add_dependence_list): New arg UNCOND. Fix all callers.
66 (add_dependence_list_and_free): Likewise.
67 (sched_analyze_2, case MEM): Delete sched_insns_conditions_mutex_p
68 call.
69
2d33a2ef
DN
702005-10-15 Diego Novillo <dnovillo@redhat.com>
71
72 PR 23141
73 PR 23142
74 * tree-vrp.c (vrp_meet): Fix the intersection of equivalence
75 sets VR0->EQUIV and VR1->EQUIV when meeting a range and an
76 anti-range.
77 (vrp_visit_phi_node): Only prevent infinite iterations when
78 the previous result and the new result are both VR_RANGEs.
79
7b71de26
RM
802005-10-15 Ranjit Mathew <rmathew@gcc.gnu.org>
81
82 * tree-into-ssa.c (mark_def_sites): Correct minor typo in
83 function comment.
84
24871154
VR
852005-10-14 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
86
87 PR c/23439
88 * c-parser.c (c_parser_for_statement): Use location of RID_FOR
89 to initialize loc.
90
d2c979ef
PB
912005-10-14 Per Bothner <per@bothner.com>
92
93 PR preprocessor/21250
94 * c-ppoutput.c (print_line): Print internal line 0 as 1.
95
c0e22534
NS
962005-10-14 Nathan Sidwell <nathan@codesourcery.com>
97
98 PR c++/22551
99 * c-common.c (c_add_case_label): Clear LOW_VALUE and HIGH_VALUE's
100 overflow flags. Refactor some conditionals.
101
9da32d63
AP
1022005-10-13 Andrew Pinski <pinskia@physics.uc.edu>
103
104 PR tree-opt/21304
105 * tree-dfa.c (add_referenced_var): Only look at decls which
106 have TREE_CONSTANT or TREE_READONLY set instead of if
107 !TREE_PUBLIC or !TREE_CONSTANT.
108
47530dd9
JW
1092005-10-13 James E Wilson <wilson@specifix.com>
110
acd1a829 111 * doc/invoke.texi: For -x, add f95-cpp-input.
47530dd9
JW
112 * doc/install.texi: For --enable-languages doc, change f95 to fortran.
113
b2ebf913
SP
1142005-10-12 Sebastian Pop <pop@cri.ensmp.fr>
115
116 PR tree-optimization/24262
117 * tree-data-ref.c (analyze_offset_expr): Check that init is invariant
118 in loop all the time.
119
52dd234b
RH
1202005-10-12 Richard Henderson <rth@redhat.com>
121
122 PR c/24255
123 * tree.h (DECL_TRANSPARENT_UNION): Remove.
124 * function.c (assign_parm_find_data_types): Don't support it.
125 * print-tree.c (print_node): Likewise.
126 * c-common.c (handle_transparent_union_attribute): Likewise.
127 Use build_duplicate_type.
128 * tree-inline.c (remap_type_1): Split out of remap_type;
129 properly remap aggregate fields.
130 (build_duplicate_type): New.
131 * doc/extend.texi (Variable Attributes): Remove documentation
132 for transparent_union.
133
6deb0339
EB
1342005-10-12 Eric Botcazou <ebotcazou@libertysurf.fr>
135
136 PR target/24284
137 * config/sparc/sparc.c (gen_stack_pointer_inc): Build by hand.
138 (gen_stack_pointer_dec): Likewise.
139
43d9ad1d
DS
1402005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
141
142 PR middle-end/21275
143 PR middle-end/21766
144 * target.h (struct gcc_target): Add valid_dllimport_attribute_p
145 target hook.
146 (struct cxx): Add adjust_class_at_definition target hook.
147 * target-def.h: (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): New define,
148 defaulting to hook_bool_tree_true. Add to TARGET_INITIALIZER
149 (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): New define, defaulting to
150 hook_void_tree. Add to TARGET_CXX.
151 * tree.h (struct decl_with_vis): Rename non_addr_const_p field to
152 dllimport_flag.
153 (DECL_NON_ADDR_CONSTANT_P): Replace with DECL_DLLIMPORT_P macro.
154 * tree.c (merge_dllimport_decl_attributes): Check DECL_DLLIMPORT_P
155 instead of attribute. Check for dllexport override. Warn if
156 inconsistent dll linkage. Don't lose old dllimport if decl has
157 had address referenced. Tweak lookup of dllimport atribute.
158 (handle_dll_attribute): Check targetm.valid_dllimport_attribute_p
159 for target specific rules. Don't add dllimport attribute if
160 DECL_DECLARED_INLINE_P. Set DECL_DLLIMPORT_P when adding
161 dllimport attribute.
162 (staticp): Replace DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P.
163 * varasm.c (initializer_constant_valid_p): Replace
164 DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P
165
166 PR target/21801
167 PR target/23589
168 * config.gcc (i[34567]86-*-cygwin*): Add winnt-cxx.o to
169 'cxx_target_objs', winnt-stubs,o to 'extra_objs'.
170 (i[34567]86-*-mingw32*): Likewise.
171
172 * doc/tm.texi (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Document.
173 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Document.
174
175 * config/i386/winnt.c (i386_pe_dllimport_p): Factor out
176 C++-specific code. Change return value to bool.
177 (i386_pe_dllimport_p): Likewise.
178 (associated_type): Simplify and make language-independent
179 (i386_pe_encode_section_info): Replace override of ambiguous
180 dllimport symbol refs with a gcc_assert.
181 (i386_pe_valid_dllimport_attribute_p): Define.
182 * config/i386/winnt-cxx.c: New file. Define C++ versions of
183 i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
184 i386_pe_adjust_class_at_definition.
185 * config/i386/winnt-stubs.c: New file. Define stub versions of
186 lang-specific functions.
187 * config/i386/i386-protos.h: Declare winnt-[cxx|stubs].c functions
188 i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
189 i386_pe_adjust_class_at_definition.
190 (i386_pe_valid_dllimport_attribute_p): Declare.
191 * config/i386/cygming.h (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Define.
192 (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Define.
193 * config/i386/t-cygming: Add rules for winnt-cxx.o, winnt-stubs.o.
194
195 PR target/19704
196 * config/i386/i386.c (ix86_function_ok_for_sibcall): Replace test for
197 dllimport attribute with test of DECL_DLLIMPORT_P.
198
8adac335
AS
1992005-10-12 Adrian Straetling <straetling@de.ibm.com>
200
201 * combine.c (make_extraction): Correct offset computation.
202
9f92185e
HPN
2032005-10-12 Hans-Peter Nilsson <hp@axis.com>
204
205 * config/cris/t-linux (LIMITS_H_TEST): Define.
206
a4d25453
RH
2072005-10-12 Richard Henderson <rth@redhat.com>
208
209 PR rtl-opt/23324
210 * cfgexpand.c (add_alias_set_conflicts): Use objects_must_conflict_p.
211
c8c7ed52
RG
2122005-10-12 Richard Guenther <rguenther@suse.de>
213
214 * Makefile.in (CGRAPH_H): Depend on $(TREE_H).
215
dbe91deb
NS
2162005-10-12 Nathan Sidwell <nathan@codesourcery.com>
217
218 PR c++/19964
219 * stor-layout.c (place_field): Set DECL_FIELD_OFFSET and
220 DECL_FIELD_BIT_OFFSET of FIELD_DECLs, even if they have an invalid
221 type.
222
e2953e41
RG
2232005-10-12 Richard Guenther <rguenther@suse.de>
224
225 PR c++/23799
226 * varasm.c (output_constant): Correct typo from previous
227 patch by DJ.
228
4bbae09f
ILT
2292005-10-11 Ian Lance Taylor <ian@airs.com>
230
231 PR rtl-optimization/13931
232 * combine.c: Revert patch of 2003-05-14, and:
233 (try_combine): Only set elim_i1 and elim_i2 if the destination is
234 completely killed in the appropriate insn.
235 (distribute_notes): Don't skip multiple hard register test for
236 elim_i1 and elim_i2.
237
0257e383
RH
2382005-10-11 Richard Henderson <rth@redhat.com>
239
240 PR c/24255
241 * c-typeck.c (convert_for_assignment): Use build_constructor_single
242 to initialize a transparent union instead of a nop_expr.
243
49896738
RH
2442005-10-11 Richard Henderson <rth@redhat.com>
245
a4176272
RH
246 * Makefile.in (tree-ssa-dce.o): Depend on SCEV_H.
247 * tree-ssa-dce.c: Include tree-scalar-evolution.h.
248 (tree_ssa_dce_loop): Call scev_reset.
249
49896738
RH
250 PR tree-opt/24300
251 * Makefile.in (tree-ssa-dce.o): Depend on CFGLOOP_H.
252 * tree-ssa-dce.c: Include cfgloop.h.
253 (tree_ssa_dce_loop, pass_dce_loop): New.
254 * tree-pass.h (pass_dce_loop): Declare it.
255 * passes.c (init_optimization_passes): Use it.
256
5e8b5b08
EB
2572005-10-11 Eric Botcazou <ebotcazou@libertysurf.fr>
258
259 PR middle-end/24263
260 * convert.c (convert_to_real): Revert 2005-10-05 patch.
261 Only apply the optimization for rounding builtins if the inner
262 cast is also an extension.
263
386cfa6f
AP
2642005-10-11 Andrew Pinski <pinskia@physics.uc.edu>
265
266 PR tree-opt/23946
267 * tree-ssa-ccp.c (execute_fold_all_builtins): Call
268 mark_new_vars_to_rename instead of update_stmt.
269
ace0544a
BS
2702005-10-11 Bernd Schmidt <bernd.schmidt@analog.com>
271
272 * config/bfin/crti.s (__init, __fini): Renamed from _init, _fini.
273
eef90962
JJ
2742005-10-11 Jakub Jelinek <jakub@redhat.com>
275
276 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use mmxadd type
277 for setting MMX register to 0 rather than mmx.
278
dbad5e72
SE
2792005-10-10 Steve Ellcey <sje@cup.hp.com>
280
281 PR target/12098
282 * configure.ac: Move gas check from mips specific case to common case.
283 Do check for GNU as for mips*-*-* and *-*-hpux* targets.
284 * configure: Regenerate
285 * doc/install.texi: Update.
286
542155d7
EB
2872005-10-10 Eric Botcazou <ebotcazou@libertysurf.fr>
288
289 PR target/24284
290 * config/sparc/sparc.c (sparc_expand_prologue): Remove bogus PATTERN.
291
a92dd235
MR
2922005-10-10 Maciej W. Rozycki <macro@linux-mips.org>
293
294 * gcc.c (do_spec_1): Accept numeric characters in file name
295 suffixes.
296
e0b92319
NC
2972005-10-10 Nick Clifton <nickc@redhat.com>
298
299 * config/arm/arm.c: Remove extraneous whitespace. Remove comment
300 describing the deleted arm_gen_rotated_half_load function.
301
a5f5c6be
KK
3022005-10-09 Kaz Kojima <kkojima@gcc.gnu.org>
303
304 * config/sh/sh.c (emit_fpu_switch): Set TREE_PUBLIC for
305 __fpscr_values.
306
d399ae67
DJ
3072005-10-09 Daniel Jacobowitz <dan@codesourcery.com>
308
309 * config.gcc (arm*-*-linux*): Remove redundant extra_parts and
310 gnu_ld assignments.
311 * config/arm/t-linux-eabi (LIB1ASMFUNCS)
312 (EXTRA_MULTILIB_PARTS): Define.
313 * config/arm/linux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
314 (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
315 (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Move to...
316 * config/arm/uclinux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
317 (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
318 (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): ... here.
319
c9639aae
ZD
3202005-10-09 Zdenek Dvorak <dvorakz@suse.cz>
321
322 PR tree-optimization/24226
323 * tree-cfg.c (remove_bb): Clean up unreachable loops.
324 * tree-flow.h (free_numbers_of_iterations_estimates_loop): Declare.
325 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates_loop):
326 Export.
327
ad6cc85a
EB
3282005-10-09 Eric Botcazou <ebotcazou@libertysurf.fr>
329
330 * config/sparc/gmon-sol2.c (internal_mcount): Mark as used.
331
c5dce79b
AP
3322005-10-08 Andrew Pinski <pinskia@physics.uc.edu>
333
334 PR target/24136
335 * config/rs6000/darwin.md (movdf_low_si): Remove early clobber.
336 Rewrite for no need for the early clobber.
337
077fc835
KH
3382005-10-08 Kazu Hirata <kazu@codesourcery.com>
339
340 Merge from csl-arm-branch:
341 2005-09-07 Paul Brook <paul@codesourcery.com>
342 * config/arm/linux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Prepend a
343 space to string.
344
345 2005-04-30 Paul Brook <paul@codesourcery.com>
346 * config/arm/bpabi.h (TARGET_DEFAULT): Define.
347 * config/arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Define.
348
349 2005-03-07 Daniel Jacobowitz <dan@codesourcery.com>
350 * config/arm/arm.c (arm_all_abis): Add aapcs-linux.
351 (arm_override_options): Use TARGET_AAPCS_BASED.
352 * config/arm/arm.h (enum arm_abi_type): Add ARM_ABI_AAPCS_LINUX.
353 (PTRDIFF_TYPE): Use int for AAPCS.
354 (DEFAULT_SHORT_ENUMS): Use false for aapcs-linux.
355 * config/arm/linux-eabi.h (ARM_DEFAULT_ABI, WCHAR_TYPE): Define.
356 (DEFAULT_SHORT_ENUMS): Delete.
357 * doc/invoke.texi (ARM Options): Document -mabi=aapcs-linux.
358
359 2004-12-15 Daniel Jacobowitz <dan@codesourcery.com>
360 * config/arm/arm.h (DEFAULT_SHORT_ENUMS): Wrap in #ifndef.
361 * config/arm/linux-eabi.h (DEFAULT_SHORT_ENUMS): Define to 0.
362 * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS): Set to -fPIC.
363
364 2004-12-03 Mark Mitchell <mark@codesourcery.com>
365 * config/arm/linux-eabi.h (LIBGCC_SPEC): Do not define.
366
367 2004-11-22 Mark Mitchell <mark@codesourcery.com>
368 * config.gcc (arm*-*-linux-gnueabi): Use __cxa_atexit.
369
370 2004-11-19 Mark Mitchell <mark@codesourcery.com>
371 * config.gcc (arm*-*-linux-gnueabi): Add it.
372 * config/arm/bpabi.h (FPUTYPE_DEFAULT): Undefine it before
373 redefining it.
374 (TARGET_OS_CPP_BUILTINS): Likeiwse.
375 * config/arm/linux-eabi.h: New file.
376 * config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): New macro.
377 (LINUX_TARET_LINK_SPEC): Likewise.
378 (LINK_SPEC): Use it.
379 * config/arm/t-linux-eabi: New file.
380
5fa534e3
SB
3812005-10-08 Steven Bosscher <stevenb@suse.de>
382
383 PR other/22202
384 * params.def (PARAM_MAX_VARIABLE_EXPANSIONS): Remove superfluous
385 spaces.
386 (PARAM_SMS_DFA_HISTORY): Likewise.
387
07eef816
KH
3882005-10-08 Kazu Hirata <kazu@codesourcery.com>
389
390 PR middle-end/23150
391 * calls.c (mem_overlaps_already_clobbered_arg_p): New.
392 (load_register_parameters): Call it.
393 (check_sibcall_argument_overlap_1): Likewise.
394 (store_one_arg): Likewise.
395
b6fb7d46
JW
3962005-10-07 James E. Wilson <wilson@specifix.com>
397
3dbb4dce
JW
398 * config/ia64/vect.md (ashl<mode>3, ashr<mode>3, lshr<mode>3): Use
399 DImode not VECINT24 for operand 2.
400
7f9dc823
JW
401 PR target/23644
402 * doc/invoke.texi (IA-64 Options, item -mtune): Renamed from
403 -mtune-arch.
404
b6fb7d46
JW
405 PR target/24193
406 * config/ia64/ia64.md (movbi, movti_internal, gr_spill_internal,
407 fr_spill): Use destination_operand for operand 0.
408
3eb0d7c5
DD
4092005-10-07 DJ Delorie <dj@redhat.com>
410
411 * varasm.c (output_constant): Limit error to expanding
412 conversions.
413
4c17e288
RG
4142005-10-07 Richard Guenther <rguenther@suse.de>
415
416 PR middle-end/24227
417 * fold-const.c (fold_binary): Fix operand types during folding
418 of X op (A, Y). Evaluation order of the side-effects of
419 X and A are frontend-defined, so ensure we honour that even for
420 tcc_comparison class operands; eased by removing duplicate code.
421
002a9071
SE
4222005-10-07 Steve Ellcey <sje@cup.hp.com>
423
424 * stor-layout.c (layout_type): Do not allow alignment of array
425 elements to be greater than their size.
426
9bff16b8
SE
4272005-10-07 Steve Ellcey <sje@cup.hp.com>
428
429 * config.host (hppa*-*-hpux*): Change out_host_hook_obj and
430 host_xmake_file.
431 (hppa*-*-linux*): Ditto.
432 (ia64-*-hpux*): Add out_host_hook_obj and host_xmake_file.
433 * config/host-hpux.c: New.
434 * config/x-hpux: New.
435 * config/pa/x-hpux: Remove.
436 * config/pa/x-linux: Remove.
437 * config/pa/pa-host.c: Remove.
438
3e352c00
JL
4392005-10-07 Jeff Law <law@redhat.com>
440
441 * tree-ssa-dom.c (dom_opt_finalize_block): Fix conditions to
442 determine whether or not to try and thread outgoing edges.
443
05f68097
DE
4442005-10-07 David Edelsohn <edelsohn@gnu.org>
445
446 * config/rs6000/rs6000.md (eqsi_power): New.
447 (neg_eq0si): Add TARGET_POWER to final condition.
448 (neg_eqsi): Same.
449
a7e0b075
RH
4502005-10-06 Richard Henderson <rth@redhat.com>
451
452 * config/rs6000/rs6000.c: Revert last change.
453
27add2e8
RH
4542005-10-06 Richard Henderson <rth@redhat.com>
455
456 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): New.
457 (TARGET_CANNOT_FORCE_CONST_MEM): Use it.
458
4bb1e037
AP
4592005-10-06 Andrew Pinski <pinskia@physics.uc.edu>
460
461 PR middle-end/22216
462 PR middle-end/23651
463 * cfgexpand.c (tree_expand_cfg): After expanding the functions, clear
464 out return_label and naked_return_label.
465
30d2662c
DB
4662005-10-06 Daniel Berlin <dberlin@dberlin.org>
467
468 * tree-ssa-structalias.c (check_for_overlaps): Fix bug in last
a9f7c570 469 change.
30d2662c 470
e2f9fe42
RH
4712005-10-06 Richard Henderson <rth@redhat.com>
472
473 PR tree-opt/22237
474 * tree-inline.c (declare_return_variable): Handle modify_dest not
475 being a DECL.
476
6c11790d
DB
4772005-10-06 Daniel Berlin <dberlin@dberlin.org>
478
479 Fix PR tree-optimization/22488
480 * tree-ssa-structalias.c (check_for_overlaps): New function.
481 (create_variable_info_for): Use it.
482
5597a350
RH
4832005-10-06 Richard Henderson <rth@redhat.com>
484
485 PR debug/24070
486 * dwarf2out.c (lookup_filename): Return the result of maybe_emit_file.
487 (dwarf2out_start_source_file): Print it.
488
03f9dd3f
GK
4892005-10-06 Geoffrey Keating <geoffk@apple.com>
490
491 * config/t-slibgcc-darwin (SHLIB_MAPFILES): Use '+='.
492
24c2fde2
RH
4932005-10-06 Richard Henderson <rth@redhat.com>
494
495 PR 23706
496 * mode-switching.c (optimize_mode_switching): Clear transp bit
497 for block with incomming abnormal edges.
498
499 * config/sh/sh.c (fpscr_values, emit_fpu_switch): New.
500 (fpscr_set_from_mem): Use them.
501 * config/sh/sh.md (fpu_switch0, fpu_switch1): Remove.
502 (fpscr postinc splitters): Rewrite as peephole2+split.
503
27f0fe7f
DE
5042005-10-06 David Edelsohn <edelsohn@gnu.org>
505
506 * config/rs6000/rs6000.md (eq<mode>): Add !TARGET_POWER.
507 (eq<mode>_compare): Same.
508
098209a9
RG
5092005-10-06 Richard Guenther <rguenther@suse.de>
510
511 PR tree-optimization/24238
0c7c1604 512 * tree-ssa-alias.c (find_used_portions): Handle RESULT_DECL.
098209a9 513
d739199a
DJ
5142005-10-06 Daniel Jacobowitz <dan@codesourcery.com>
515
516 * acinclude.m4 (gcc_AC_CHECK_TOOL): Handle environment variables
517 here. Use AC_PATH_PROG for environment variables instead of
518 test -x.
519 * configure.ac: Update calls to gcc_AC_CHECK_TOOL. Use it for
520 objdump also.
521 * configure: Regenerated.
522
c40cb38d
RE
5232005-10-06 Richard Earnshaw <richard.earnshaw@arm.com>
524
525 PR target/23783
526 * arm.md (call): If the address isn't a SYMBOL_REF or a register,
527 then force it into a register.
528 (call_value): Likewise.
529
5872662b
RH
5302005-10-06 Richard Henderson <rth@redhat.com>
531
532 PR 24049
533 * passes.c (init_optimization_passes): Move pass_lower_vector_ssa
534 under pass_vectorize. Clear TODO_ggc_collect from the dce pass
535 under pass_vectorize.
536
d6b27b56
DP
5372005-10-05 Devang Patel <dpatel@apple.com>
538
539 PR Debug/23205
540 * dbxout.c (dbxout_symbol): Check DECL_RTL_SET_P, after
541 handling constants. Check NAMESPACE_DECL context for constants.
542
759915ca
EC
5432005-10-05 Eric Christopher <echristo@apple.com>
544
545 * doc/md.texi (Standard Names): Fix name of pushm1 pattern.
546
bf7e2472
RH
5472005-10-05 Richard Henderson <rth@redhat.com>
548
549 PR 23714
550 * tree-cfg.c (mark_array_ref_addressable_1): New.
551 (mark_array_ref_addressable): New.
552 * tree-flow.h (mark_array_ref_addressable): Declare.
553 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Use it.
554
d14e25e0
AP
5552005-10-05 Andrew Pinski <pinskia@physics.uc.edu>
556
557 PR middle-end/20606
558 PR middle-end/24069
559 * reload.c (subst_reloads): When adding a REG_LABEL to a
560 jump instruction, also update JUMP_LABEL.
561
f935b9e0
DE
5622005-10-05 David Edelsohn <edelsohn@gnu.org>
563
564 * params.def (PARAM_MAX_GROW_COPY_BB_INSNS): New.
565 * bb-reorder.c (copy_bb_p): Use it.
566 * doc/invoke.texi (param table): Add max-grow-copy-bb-insn.
567
d3073c70
RH
5682005-10-05 Richard Henderson <rth@redhat.com>
569
570 PR target/23602
571 * toplev.c (process_options): Warn about unsupported combinations
572 of unwind tables and omit-frame-pointer.
573 * config/i386/i386.c (override_options): Similarly. Enable
574 accumulate-outgoing-args if not explicitly disabled.
575
10dc6e8c
SE
5762005-10-05 Steve Ellcey <sje@cup.hp.com>
577
578 * vect.md (vec_initv2si): Fix typo of V2SF to V2SI.
579 Handle big endian vs. small endian.
580 (vec_initv2sf): Handle big endian vs. small endian.
581 (*vec_extractv2sf_1): Ditto.
582
9f85ecfe
DJ
5832005-10-05 Dale Johannesen <dalej@apple.com>
584
585 * convert.c (convert_to_real): Don't convert
586 (float)floor(double d) to floorf((float)d).
587
c2540bbb
DJ
5882005-10-05 Daniel Jacobowitz <dan@codesourcery.com>
589
590 * config/arm/arm.md (insv): Use gen_int_mode in more places.
591
f3940b0e
AM
5922005-10-05 Andrew MacLeod <amacleod@redhat.com>
593
594 PR tree-optimization/18587
595 * tree-ssa-operands.c (struct opbuild_list_d, OPBUILD_LAST): Delete.
596 (build_defs, build_uses, build_v_may_defs, build_v_must_defs,
597 build_vuses): Change to VEC type.
598 (opbuild_initialize_virtual, opbuild_initialize_real, opbuild_free,
599 opbuild_num_elems, opbuild_append_real, opbuild_append_virtual,
600 opbuild_first, opbuild_next, opbuild_elem_real, opbuild_elem_virtual,
601 opbuild_elem_uid, opbuild_clear, opbuild_remove_elem): Delete.
759915ca 602 (get_name_decl): New. Return DECL_UID of base variable.
f3940b0e
AM
603 (operand_build_cmp): New. qsort comparison routine.
604 (operand_build_sort_virtual): New. Sort virtual build vector.
605 (init_ssa_operands, fini_ssa_operands): Use VEC routines.
606 (FINALIZE_OPBUILD_BASE, FINALIZE_OPBUILD_ELEM): Use VEC_Index.
607 (FINALIZE_BASE): Use get_name_decl.
608 (finalize_ssa_defs, finalize_ssa_uses, cleanup_v_may_defs,
609 finalize_ssa_v_may_defs, finalize_ssa_vuses, finalize_ssa_v_must_defs,
759915ca
EC
610 (start_ssa_stmt_operands, append_def, append_use, append_vuse,
611 append_v_may_def, append_v_must_def): Replace opbuild_* routines with
f3940b0e
AM
612 direct VEC_* manipulations.
613 (build_ssa_operands): Call operand_build_sort_virtual.
614 (copy_virtual_operand, create_ssa_artficial_load_stmt,
759915ca 615 add_call_clobber_ops, add_call_read_ops): Replace opbuild_* routines
f3940b0e
AM
616 with direct VEC_* manipulations.
617 * tree-ssa-opfinalize.h (FINALIZE_FUNC): Replace opbuild_* routines
618 with direct VEC manipulations.
619
5544530a
PB
6202005-10-05 Paolo Bonzini <bonzini@gnu.org>
621
622 PR tree-optimization/21419
623 PR tree-optimization/24146
624 PR tree-optimization/24151
625
626 * c-typeck.c (readonly_error): Handle USE being lv_asm.
627 (build_asm_expr): Call it if outputs are read-only.
628 * gimplify.c (gimplify_asm_expr): Remove former fix to PR 21419.
629
75576871
BB
6302005-10-05 Billy Biggs <billy.biggs@gmail.com>
631 Paolo Bonzini <bonzini@gnu.org>
632
633 PR target/23809
634
635 * doc/extend.texi (x86 Built-ins): Document that -msse and friends
636 enable the instructions and not just the built-ins.
637 * doc/invoke.texi (x86 Options): Likewise.
638
337f2a22
GK
6392005-10-04 Geoffrey Keating <geoffk@apple.com>
640
a70d8bb6
GK
641 * config/i386/t-darwin (SHLIB_VERPFX): Fix typo.
642
337f2a22
GK
643 * doc/invoke.texi (Option Summary): Correct spelling
644 of -mmacosx-version-min.
645
a04deb83
DP
6462005-10-04 Devang Patel <dpatel@apple.com>
647
648 * c-common.c (vector_types_convertible_p): Check TYPE_PRECISION for
649 real types.
759915ca 650
578578a5
SE
6512005-10-04 Steve Ellcey <sje@cup.hp.com>
652
653 * tree-vect-transform.c (vect_create_epilog_for_reduction):
654 Use BYTES_BIG_ENDIAN instead of BITS_BIG_ENDIAN.
655
8006eaa6
AS
6562005-10-04 Adrian Straetling <straetling@de.ibm.com>
657
658 * config/s390/s390.md ("TDSI","DP"): New mode macros.
659 ("TE","tg"): New mode attributes.
660 ("sync_compare_and_swap<mode>"): Replace with a define_expand.
661 ("sync_compare_and_swap<mode>_cc"): Replace GPR with TDSI.
662 ("*sync_compare_and_swap<mode>_cc"): Replace with one pattern for
663 dword_mode and one for GPRmode.
664
cbc43ae0
ILT
6652005-10-04 Ian Lance Taylor <ian@airs.com>
666
667 PR preprocessor/13726
668 * c-ppoutput.c (cb_include): Add comments parameter, and print out
669 any comments passed in.
670
44d25172
AP
6712005-10-04 Andrew Pinski <pinskia@physics.uc.edu>
672
673 * tree.c (annotate_with_file_line): Fix typo.
674
baab454a
UW
6752005-10-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
676
677 PR ada/19382
678 * builtins.c (fold_builtin_memcmp): When constructing the pointer
679 type used to access data in the inlined length == 1 case, use
680 build_pointer_type_for_mode with CAN_ALIAS_ALL set to true.
681 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
682
84c2b4da
UB
6832005-10-04 Uros Bizjak <uros@kss-loka.si>
684
685 * config/i386/i386.h (TARGET_FISTTP): Enable also for
686 TARGET_SSE3 and only for TARGET_80387.
687 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1,
688 (fix_trunc<mode>_i387_fisttp, fix_trunc<mode>_i387_fisttp_with_temp):
689 Do not depend on TARGET_80387.
690
b4ceda13
AP
6912005-10-04 Andrew Pinski <pinskia@physics.uc.edu>
692
693 * tree.c (last_annotated_node): Change type to location_t*.
694 (annotate_with_file_line): Reflect the change of
695 last_annotated_node type.
696
9df594d7
RG
6972005-10-04 Richard Guenther <rguenther@suse.de>
698
699 PR c/23576
700 * c-decl.c (grokdeclarator): Don't write to fields
701 of error_mark_node.
702
11e3f4b6
AP
7032005-10-04 Andrew Pinski <pinskia@physics.uc.edu>
704
705 PR middle-end/23125
706 * c-decl.c (finish_decl): Use set_user_assembler_name even for
707 register variables.
708 * varasm.c (make_decl_rtl): If a register variable does not
709 have a set user assmbler name, error out.
710 Decode the asmspec is now name+1 bypassing '*'.
711
7122005-10-04 Steven Bosscher <stevenb@suse.de>
46fbb29c
SB
713
714 PR tree-optimization/23049
715 * tree-ssa-dom.c (thread_across_edge): Make sure that the condition
716 of a COND_EXPR is folded before calling fold on the whole rhs of a
717 conditional assignment.
718 * doc/tree-ssa.texi: Update the GIMPLE grammar for a valid rhs to
719 document that a COND_EXPR may appear there.
720
012a7a78
DN
7212005-10-03 Diego Novillo <dnovillo@redhat.com>
722
723 PR 23445
724 * tree-vrp.c (extract_range_from_assert): If the new numeric
725 range created out of the assertion contradicts the existing
726 numeric range of the ASSERT_EXPR variable, make the new range
727 varying.
728
9c24200c
KK
7292005-10-03 Kaz Kojima <kkojima@gcc.gnu.org>
730
731 * config/sh/sh.c (sh_register_move_cost): Add case for moving
732 from T_REGS to FP register class.
733
1718a2aa
RH
7342005-10-03 Richard Henderson <rth@redhat.com>
735
736 PR 24135
737 * tree-nested.c (convert_nl_goto_reference): Lookup a translation
738 before creating a new one.
739
6d48847c
DE
7402005-10-03 David Edelsohn <edelsohn@gnu.org>
741
742 * config/rs6000/t-aix43 (LDFLAGS): New.
743 * config/rs6000/t-aix52 (LDFLAGS): New.
744
0b494699
ILT
7452005-10-03 Ian Lance Taylor <ian@airs.com>
746
747 * gimplify.c (find_single_pointer_decl_1): New static function.
748 (find_single_pointer_decl): New static function.
749 (internal_get_tmp_var): For a formal variable, set restrict base
750 information if appropriate.
751 * alias.c (find_base_decl): If a VAR_DECL has a restrict base,
752 return it.
753 * tree.h (DECL_BASED_ON_RESTRICT_P): Define.
754 (DECL_GET_RESTRICT_BASE): Define.
755 (SET_DECL_RESTRICT_BASE): Define.
756 (decl_restrict_base_lookup): Declare.
757 (decl_restrict_base_insert): Declare.
758 (struct tree_decl_with_vis): Add based_on_restrict_p field.
759 * tree.c (restrict_base_for_decl): New static variable.
760 (init_ttree): Initialize restrict_base_for_decl.
761 (copy_node_stat): Copy restrict base information.
762 (decl_restrict_base_lookup): New function.
763 (decl_restrict_base_insert): New function.
764 (print_restrict_base_statistics): New static function.
765 (dump_tree_statistics): Call print_restrict_base_statistics.
766
b19bb8b0
DN
7672005-10-02 Diego Novillo <dnovillo@redhat.com>
768
769 PR 24142
770 * tree-vrp.c (vrp_meet): Fix call to range_includes_zero_p in
771 case of anti-ranges.
772
f13c9b2c
AP
7732005-10-02 Andrew Pinski <pinskia@physics.uc.edu>
774
775 PR c/18851
776 * c-typeck.c (tagged_tu_seen): Rename to ...
777 (tagged_tu_seen_cache): this and add val field.
778 (comptypes): Move functional to comptypes_internal
779 and free tagged_tu_seen.
780 (comptypes_internal): New function and call comptypes_internal
781 instead of comptypes. Speed up by sibcalling
782 tagged_types_tu_compatible_p.
783 (alloc_tagged_tu_seen): New function
784 (free_all_tagged_tu_seen_up_to): New function.
785 (tagged_types_tu_compatible_p): Return the val of the seen two
786 types.
787 Add that the two types are the same to tagged_tu_seen_base
788 if they are and call comptypes_internal instead of comptypes.
789 <case UNION_TYPE>: Speed up common type where the fields are
790 in the same order.
791 (function_types_compatible_p): Call comptypes_internal instead of
792 comptypes.
793 (type_lists_compatible_p): Likewise.
794 (all functions): s/tagged_tu_seen/tagged_tu_seen_cache/.
795
aa58883c
MK
7962005-10-02 Matthias Klose <doko@debian.org>
797
798 * doc/invoke.texi: Fix typo and speling error.
799
746077ff
RH
8002005-10-01 Richard Henderson <rth@redhat.com>
801
802 * tree-stdarg.c (execute_optimize_stdarg): Process PHI nodes too.
803
e3fe057d
MM
8042005-10-01 Mark Mitchell <mark@codesourcery.com>
805
806 * config/arm/unknown-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define
807 using --start-group and --end-group.
808
c83033e7
DN
8092005-10-01 Diego Novillo <dnovillo@redhat.com>
810
811 * tree-vrp.c (value_inside_range, range_includes_zero_p): Add
812 FIXME note regarding quirky semantics.
813
e82d7e60
DN
8142005-10-01 Diego Novillo <dnovillo@redhat.com>
815
816 PR 24141
817 * tree-vrp.c (vrp_meet): Clear VR0->EQUIV when building a
818 non-null range as a last resort.
819
fde5c44c
JM
8202005-10-01 James A. Morrison <phython@gcc.gnu.org>
821 Diego Novillo <dnovillo@redhat.com>
822
823 PR 23604
824 * tree-vrp.c (extract_range_from_assert): For !=
825 assertions, only build an anti-range if LIMIT is a
826 single-valued range.
827
78a5d727
RE
8282005-09-30 Richard Earnshaw <richard.earnshaw@arm.com>
829
759915ca 830 * arm.md (movqi): On thumb when optimizing, handle loading from
78a5d727
RE
831 memory by describing this as taking a subreg of a zero-extended load
832 into an SImode register.
833 (movhi): Likewise.
834
3f27846b
DJ
8352005-09-30 Daniel Jacobowitz <dan@codesourcery.com>
836
837 * reload1.c (merge_assigned_reloads): Do not change any
838 RELOAD_FOR_OUTPUT_ADDRESS reloads.
839
dd7dc250
GK
8402005-09-30 Geoffrey Keating <geoffk@apple.com>
841
ed0db39f
GK
842 * Makefile.in (LIPO_FOR_TARGET): Define.
843 (STRIP_FOR_TARGET): Define.
844
f46876f9
GK
845 * config/t-slibgcc-darwin (libgcc_s_%.dylib): Remove old symlinks
846 before creating new ones. Do symlinks before creating the actual
847 targets.
848
dd7dc250
GK
849 * config/t-slibgcc-darwin (libgcc_s_%.dylib): Use --print-multi-lib
850 to work out which multilibs are actually being built.
851
5116a5d2
KH
8522005-09-30 Kazu Hirata <kazu@codesourcery.com>
853
854 * tree-vect-transform.c, config/ms1/ms1.md,
855 config/s390/s390.c, config/v850/v850.md: Fix comment typos.
856 Follow spelling conventions.
857 * doc/invoke.texi, doc/md.texi: Fix typos.
858
5dc2e333
AM
8592005-09-30 Andrew Macleod <amacleod@redat.com>
860
861 PR tree-optimization/21430
862 * tree-ssa-operands.c (set_virtual_use_link): New. Link new virtual
863 use operands, and set stmt pointer if need be.
864 (FINALIZE_CORRECT_USE: New. Macro to call appropriate use fixup routine.
865 tree-ssa-opfinalize.h (FINALIZE_FUNC): Call FINALIZE_CORRECT_USE if
866 present.
867
4ecd8dc7
RK
8682005-09-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
869
870 PR middle-end/24053
871 * stor-layout.c (set_sizetype): Set TYPE_MAIN_VARIANT of bitsizetype.
872
93b47b19
MM
8732005-09-29 Mark Mitchell <mark@codesourcery.com>
874
875 * optabs.c (expand_binop): Initialize first_pass_p.
876
df4b9cfe
JJ
8772005-09-29 Jakub Jelinek <jakub@redhat.com>
878
879 PR middle-end/24109
880 * c-decl.c (c_write_global_declarations_1): If any
881 wrapup_global_declaration_2 call returned true, restart the loop.
882
8d2c775f 8832005-09-29 Daniel Berlin <dberlin@dberlin.org>
759915ca 884
8d2c775f
DB
885 Fix PR tree-optimization/24117
886 * tree-ssa-structalias.c (find_func_aliases): Strip nops
887 before considering whether to use anyoffset.
888
be1ea09b
PB
8892005-09-29 Paolo Bonzini <bonzini@gnu.org>
890
891 Revert this patch:
892
893 2005-09-15 Paolo Bonzini <bonzini@gnu.org>
894
895 * optabs.c (expand_binop): Use swap_commutative_operands_with_target
896 to order operands.
897 (swap_commutative_operands_with_target): New.
898
02eb875f
PB
8992005-09-29 Paolo Bonzini <bonzini@gnu.org>
900
901 PR c/21419
902 * gimplify.c (gimplify_asm_expr): Raise an error if an output is
903 read-only.
904
1ebd8d9a
SB
9052005-09-29 Steven Bosscher <stevenb@suse.de>
906
907 PR tree-optimization/23911
908 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle REALPART_EXPR
909 and IMAGPART_EXPR too.
910
0f8594ee
MM
9112005-09-28 Mark Mitchell <mark@codesourcery.com>
912
913 PR 17886
914 * expmed.c (expand_shift): Move logic to reverse rotation
915 direction when rotating by constants ...
916 * optabs.c (expand_binop): ... here.
917 * config/i386/i386.md (rotrdi3): Handle 32-bit mode.
918 (ix86_rotrdi3): New pattern.
919 (rotldi3): Handle 32-bit mode.
920 (ix86_rotldi3): New pattern.
921
c22e62a6
AM
9222005-09-29 Alan Modra <amodra@bigpond.net.au>
923
924 PR target/24102
925 * config/rs6000/rs6000.md (floatdisf2_internal2): Correct range
926 check for numbers that need no bit twiddle.
927
040b1c5a
GK
9282005-09-28 Geoffrey Keating <geoffk@apple.com>
929
23ed2384
GK
930 * config/rs6000/t-darwin8: Uncomment contents, allow -m64
931 multilib to be built.
932
040b1c5a
GK
933 * Makefile.in: Export LIPO_FOR_TARGET, STRIP_FOR_TARGET.
934 (stage1-start): Delete old libgcc and libunwind before moving
935 anything into the stage directory.
936 (stage2-start): Likewise.
937 (stage3-start): Likewise.
938 (stage4-start): Likewise.
939 (stageprofile-start): Likewise.
940 (stagefeedback-start): Likewise.
941 * config.gcc (*-*-darwin*): Automatically use CPU-specific darwin.h
942 header in tm_file and CPU-specific t-darwin in tmake_file.
943 (i[34567]86-*-darwin*): Don't change tm_file.
944 (powerpc-*-darwin*): Don't change tm_file or tmake_file.
945 * config/darwin.h (REAL_LIBGCC_SPEC): Rewrite to use proper libgcc
946 shared library stub for target OS version.
947 * config/t-slibgcc-darwin (SHLIB_SOLINK): Delete.
948 (SHLIB_LINK): Don't make SHLIB_SOLINK.
949 (SHLIB_INSTALL): Don't install SHLIB_SOLINK.
950 (libgcc_s.%.dylib): New.
951 (LIBGCC): Define.
952 (install-darwin-libgcc-stubs): New.
953 (INSTALL_LIBGCC): New append.
954 * config/i386/darwin-libgcc.10.4.ver: New.
955 * config/i386/darwin-libgcc.10.5.ver: New.
956 * config/i386/t-darwin: New.
957 * config/rs6000/darwin-libgcc.10.4.ver: New.
958 * config/rs6000/darwin-libgcc.10.5.ver: New.
959 * config/rs6000/darwin.h (REAL_LIBGCC_SPEC): Delete.
960 * config/rs6000/t-darwin (SHLIB_VERPFX): Define.
961
107bcc11
PB
9622005-09-28 Paul Brook <paul@codesourcery.com>
963
964 * config/m68k/fpgnulib.c (__extendsfdf2, __truncdfsf2): Handle
965 denormals.
966
9b14a362
RG
9672005-09-28 Richard Guenther <rguenther@suse.de>
968
969 PR tree-optimization/23853
970 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use
971 host_integerp to verify misalignment value.
972
02ee605c
RH
9732005-09-28 Richard Henderson <rth@redhat.com>
974
975 * builtins.c (get_builtin_sync_mode): New.
976 (expand_builtin_sync_operation): Pass in mode argument.
977 (expand_builtin_compare_and_swap): Likewise.
978 (expand_builtin_lock_test_and_set): Likewise.
979 (expand_builtin_lock_release): Likewise.
980 (expand_builtin): Update to match.
981
1b0792dd
NC
9822005-09-28 Nick Clifton <nickc@redhat.com>
983
7d866c52
NC
984 * config/v850/v850.h (GO_IF_LEGITIMATE_ADDRESS): Tidy up
985 formatting. Add check to PLUS case to ensure that the offset is
986 within an acceptable range.
987
988 * config/v850/v850.md (casesi): Disable the generation of the
989 switch pattern as it is not being handled properly at the moment.
990
1b0792dd
NC
991 * config/v850/lib1funcs.asm (___ucmpdi2): Correct jump instruction
992 for when the high words are identical.
993
241de8a0
RH
9942005-09-27 Richard Henderson <rth@redhat.com>
995
996 * pretty-print.c (pp_base_format): Fix typo for %>.
997
93954fcc
DP
9982005-09-27 Daniel Berlin <dberlin@dberlin.org>
999 Devang Patel <dpatel@apple.com>
1000
1001 PR tree-optimization/23625
1002 * tree-flow-inline.h (bsi_after_labels): Remove, first statement is
1003 LABEL_EXPR, assertion check.
759915ca 1004
ca7a5aec
R
10052005-09-27 J"orn Rennecke <joern.rennecke@st.com>
1006
1007 * optabs.c (no_conflict_move_test): Check if a result of a
1008 to-be-moved insn would be clobbered by an originally
1009 preceding insn.
1010
f20731b7
JL
10112005-09-27 Jeff Law <law@redhat.com>
1012
1013 * passes.c (init_optimization_passes): Replace copy propagation
1014 passes immediately after DOM with phi-only copy propagation
1015 pases. Add phi-only copy propagation pass after first DOM pass.
1016 * tree-pass.h (pass_phi_only_copy_prop): Declare.
1017 * tree-ssa-copy.c (init_copy_prop): Accept new PHI_ONLY argument.
1018 If true, then mark all non-control statements with DONT_SIMULATE_AGAIN.
1019 (execute_copy_prop): Accept new PHI_ONLY argument. Pass it along
1020 to init_copy_prop. Callers updated.
1021 (do_phi_only_copy_prop): New function.
1022 (pass_phi_only_copy_prop): New pass descriptor.
1023
3542b7cc
NC
10242005-09-27 Nick Clifton <nickc@redhat.com>
1025
1026 * libgcc2.c (__popcount_tab): Remove redundant prototype.
1027
4381020e
JM
10282005-09-26 Jason Merrill <jason@redhat.com>
1029
86ad3aa9
JM
1030 PR c++/13764
1031 * c-common.c (finish_fname_decls): Use append_to_statement_list_force.
1032
4381020e
JM
1033 * doc/invoke.texi: Clarify documentation of -fno-enforce-eh-specs.
1034
92b4f0af
JW
10352005-09-26 James E Wilson <wilson@specifix.com>
1036
1037 * config/ia64/crtbegin.asm, config/ia64/crtend.asm: Remove glibc
1038 copyright. Add gcc copyright plus libgcc exception.
1039 * config/ia64/crtfastmath.asm: Remove glibc copyright. Add gcc
1040 copyright.
1041 * config/ia64/lib1funcs.asm: Add gcc copyright plus libgcc exception.
1042
608af77d
JL
10432005-09-26 Jeff Law <law@redhat.com>
1044
1045 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Be more selective
1046 about when to iterate.
1047
0f086e42
FJ
10482005-09-23 Fariborz Jahanian <fjahanian@apple.com>
1049
1050 PR target/23847
a9f7c570
RH
1051 * config/rs6000/rs6000.c (rs6000_function_value): Parallel pattern
1052 for __complex__ double in -mcpu=G5 mode.
0f086e42 1053
c59dabbe
SP
10542005-09-26 Sebastian Pop <pop@cri.ensmp.fr>
1055
1056 PR tree-optimization/23942
1057 * Makefile.in (SCEV_H): Depends on PARAMS_H.
1058 * tree-scalar-evolution.c: Include params.h.
1059 (t_bool): New enum.
1060 (follow_ssa_edge, follow_ssa_edge_in_rhs,
1061 follow_ssa_edge_in_condition_phi_branch,
759915ca 1062 follow_ssa_edge_in_condition_phi, follow_ssa_edge_inner_loop_phi):
c59dabbe 1063 Change return type to t_bool. Use a parameter to limit the size of
759915ca 1064 trees that are walked before stopping
c59dabbe 1065 (analyze_evolution_in_loop): Initialize the limit to 0.
759915ca 1066 (follow_ssa_edge): Give up by returning t_dont_know if the limit
c59dabbe
SP
1067 exceeds PARAM_SCEV_MAX_EXPR_SIZE.
1068
3242fbd8
UB
10692005-09-26 Uros Bizjak <uros@kss-loka.si>
1070
1071 PR middle-end/23831
1072 * simplify-rtx.c (simplify_immed_subreg) [MODE_INT]: Skip
1073 simplification if elem_bitsize > 2 * HOST_BITS_PER_WIDE_INT.
1074
b166bfd2
FJ
10752005-09-26 Fariborz Jahanian <fjahanian@apple.com>
1076
a9f7c570 1077 * combine.c (make_extraction): Check for valid use of subreg.
b166bfd2 1078
4d06b0a2
UB
10792005-09-26 Uros Bizjak <uros@kss-loka.si>
1080
1081 PR target/24055
1082 * config/i386/i386.md ("*fistdi2_1"): New pattern.
1083 ("*fist<mode>2_1"): Use only HImode and SImode register operands.
1084 ("fist<mode>2_with_temp"): Use only register operands.
1085
76dd5923
R
10862005-09-26 J"orn Rennecke <joern.rennecke@st.com>
1087
1088 * rtlanal.c (reg_used_between_p): Don't check for CLOBBERs in
1089 CALL_INSN_FUNCTION_USAGE.
1090
9727e468
RG
10912005-09-26 Richard Guenther <rguenther@suse.de>
1092
1093 PR middle-end/15855
1094 * gcse.c: Include hashtab.h, define ldst entry hashtable.
1095 (pre_ldst_expr_hash, pre_ldst_expr_eq): New functions.
1096 (ldst_entry): Use the hashtable instead of list-walking.
1097 (find_rtx_in_ldst): Likewise.
1098 (free_ldst_entry): Free the hashtable.
1099 (compute_ld_motion_mems): Create the hashtable.
1100 (trim_ld_motion_mems): Remove entry from hashtable if
1101 removing it from list.
1102 (compute_store_table): Likewise^2.
1103 (store_motion): Free hashtable in case we did not see
1104 any stores.
1105
3f1dfb41
KH
11062005-09-25 Kazu Hirata <kazu@codesourcery.com>
1107
1108 * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
1109 and arg1 if we are passing them to fold_build2.
1110
ad90e28f
DN
11112005-09-25 Dan Nicolaescu <dann@ics.uci.edu>
1112
1113 PR 23828
1114 * config/i386/i386.c (ix86_function_regparm): Fix the test for
1115 a nested function.
1116
f6326c19
RH
11172005-09-25 Richard Henderson <rth@redhat.com>
1118
1119 * config/alpha/alpha.c (tls_symbolic_operand_1): Trust
1120 SYMBOL_REF_TLS_MODEL to be correct.
1121
2eca7d15
RH
11222005-09-24 Richard Henderson <rth@redhat.com>
1123
1124 * ipa-type-escape.c (discover_unique_type): Remove dead code at
1125 end of function. Reindent.
1126
1f6f3d15
ILT
11272005-09-24 Ian Lance Taylor <ian@airs.com>
1128
1129 * convert.c (convert_to_integer): Don't test for ENUMERAL_TYPE in
1130 NEGATE_EXPR/BIT_NOT_EXPR case.
1131
99db1ef0
RH
11322005-09-24 Richard Henderson <rth@redhat.com>
1133
1134 * c-common.c (handle_mode_attribute): When not modifying in place,
1135 create subtypes for enumerations.
1136 (sync_resolve_return): Use TYPE_MAIN_VARIANT.
1137 * gimplify.c (create_tmp_from_val): Likewise.
1138
e347ff9e
AO
11392005-09-24 Alexandre Oliva <aoliva@redhat.com>
1140
1141 * config/i386/i386.md (*tls_global_dynamic_64,
1142 *tls_local_dynamic_base_64): Add missing mode to call.
1143 (tls_global_dynamic_64, tls_local_dynamic_base_64): Likewise.
1144
06191a23
JH
11452005-09-24 Jan Hubicka <jh@suse.cz>
1146
1147 * cgraph.c (cgraph_clone_edge): Make the scale gcov_type.
1148 (cgraph_clone_node): Likewise.
1149 * cgraph.h (cgraph_clone_edge): Update prototype.
1150 (cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Remove
1151 duplicated prototypes; add updating argument.
1152 * cgraphunit.c (verify_cgraph_node): Verify that counts are non-negative.
1153 * ipa-inline.c (cgraph_clone_inlined_nodes): Allow clonning without
1154 updating profile.
1155 (cgraph_mark_inline_edge): Likewise.
1156 (cgraph_mark_inline): Update use of cgraph_mark_inline_edge.
1157 (cgraph_flatten_node): Likewise.
1158 (cgraph_decide_recursive_inlining): Likewise.
1159 (cgraph_decide_inlining_of_small_function): Likewise.
1160 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1161
9c6fdb46
DE
11622005-09-23 David Edelsohn <edelsohn@gnu.org>
1163 Pete Steinmetz <steinmtz@us.ibm.com>
1164
1165 * config/rs6000/rs6000.md (neg-minus-mult): Set type to dmul.
1166 (rldic.): Set type to "compare".
1167 (rldicr.): Same.
1168 (movsf_hardfloat): Set type to mtjmpr for MTCTR/MTLR. Set type to
1169 mfjmpr for MFCTR/MFLR.
1170 (movdf_hardfloat64): Same.
1171 (movdf_softfloat64): Same. Correct order of store and move types.
1172 (movti_string): Set type to store_ux/load_ux.
1173 (load_multiple): Set type to load_ux.
1174 (store_multiple): Set type to store_ux.
1175 (movmemsi): Set type to store_ux.
1176 (output_cbranch direct_return): Set type to jmpreg.
1177 (stmw): Set type to store_ux.
1178 (lmw): Set type to load_ux.
1179 * config/rs6000/40x.md (ppc403-store): Increase latency to 2.
1180 * config/rs6000/440.md (ppc440-store): Increase latency to 6.
1181 * config/rs6000/603.md (ppc603-store): Occupy LSU for 2 cycles.
1182 * config/rs6000/6xx.md (ppc604-store): Increase latency to 3.
1183 * config/rs6000/mpc.md (mpccore-store): Increase latency to 2.
1184 * config/rs6000/rios1.md (rios1-store): Increase latency to 2.
1185 (rios1-fpstore): Increase latency to 3.
1186 * config/rs6000/rios2.md (rios2-store): Increase latency to 2.
1187 * config/rs6000/rs64.md (rs64a-store): Increase latency to 2.
1188
66684b7e
DE
11892005-09-23 David Edelsohn <edelsohn@gnu.org>
1190 Andrew Pinski <pinskia@physics.uc.edu>
1191
1192 * config/rs6000/sync.md (sync_<fetchop_name>si_internal): Change
1193 operand2 constraint to "b".
1194 (sync_<fetchop_name>di_internal): Same.
1195 (sync_old_<fetchop_name>si_internal): Change operand3 constraint
1196 to "b".
1197 (sync_old_<fetchop_name>di_internal): Same.
1198 (sync_new_<fetchop_name>si_internal): Same.
1199 (sync_new_<fetchop_name>di_internal): Same.
1200
a9305dcb
R
12012005-09-23 J"orn Rennecke <joern.rennecke@st.com>
1202
3a1680a5 1203 PR middle-end/23991
a9305dcb
R
1204 * final.c (insn_default_length, insn_min_length): In !HAVE_ATTR_length
1205 case, define as macros.
1206
9617ccfd
R
1207 PR rtl-optimization/23837
1208 * optabs.c (no_conflict_move_test): Don't set must_stay for a
1209 clobber / clobber match between dest and p->first.
1210
748ebfc7
R
1211 * optabs.c (emit_libcall_block): Use no_conflict_move_test.
1212 (no_conflict_move_test): Update comments.
1213
07a647a3
RM
12142005-09-22 Ranjit Mathew <rmathew@gcc.gnu.org>
1215
1216 * doc/install.texi: Update URL for Jacks.
1217 * doc/sourcebuild.texi: Likewise.
1218
fb3249ef
DE
12192005-09-22 David Edelsohn <edelsohn@gnu.org>
1220
a9f7c570
RH
1221 PR target/24007
1222 * config/rs6000/rs6000.md (movsf_hardfloat): Ignore special
1223 registers when choosing register preferences.
1224 (movdf_hardfloat64): Same.
fb3249ef 1225
6231646a
AK
12262005-09-22 Andreas Krebbel <krebbel1@de.ibm.com>
1227
1228 * expmed.c (expand_shift): Don't use the target of the rotate as
1229 target for the first expanded shift insn.
1230 * testsuite/gcc.dg/20050922-1.c: Testcase added.
1231
7b9d4f70
ZD
12322005-09-21 Zdenek Dvorak <dvorakz@suse.cz>
1233
1234 PR tree-optimization/22438
1235 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Handle all
1236 preserved iv rhs rewriting specially.
1237
b1347638
DB
12382005-09-21 Daniel Berlin <dberlin@dberlin.org>
1239
1240 * tree-data-ref.c (analyze_array_indexes): Only estimate when
1241 estimate_only is true.
1242 * tree-flow.h (ref_contains_indirect_ref): New prototype.
1243 * tree-flow-inline.h (ref_contains_indirect_ref): Moved from
759915ca 1244 tree-ssa-structalias.c
b1347638
DB
1245 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Use
1246 ref_contains_indirect_ref.
1247 * tree-ssa-structalias.c (ref_contains_indirect_ref): Moved.
1248
b1eb8119
DD
12492005-09-21 DJ Delorie <dj@redhat.com>
1250
1251 * config/mn10300/mn10300.c (TARGET_DEFAULT_TARGET_FLAGS): Add
1252 MASK_PTR_A0D0.
1253 (mn10300_return_in_memory): Support variable size types also.
1254 (mn10300_pass_by_reference): Likewise.
1255 (mn10300_function_value): New.
1256 * config/mn10300/mn10300.h (FUNCTION_VALUE): Call the above.
1257 (FUNCTION_OUTGOING_VALUE): Likewise.
1258 * config/mn10300/mn10300.opt: Add -mreturn-pointer-on-d0.
1259 * doc/invoke.texi: Document it.
1260
d06e6434
UB
12612005-09-21 Uros Bizjak <uros@kss-loka.si>
1262
1263 PR target/22585
1264 * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
1265 force integer op1 into register for XFmode compares.
1266
0178027c
KH
12672005-09-21 Kazu Hirata <kazu@codesourcery.com>
1268
647c66cd 1269 PR middle-end/23971
0178027c
KH
1270 * expmed.c (alg_code): Add alg_impossible.
1271 (alg_hash_entry): Add cost.
1272 (synth_mult): Record alg_impossible in the hash table if
1273 multiplication by a given integer is impossble within the
1274 limit. Speed up using alg_impossible.
1275
d52225be
DB
12762005-09-20 Daniel Berlin <dberlin@dberlin.org>
1277
1278 * tree-ssa-structalias.c (get_constraint_for_component_ref): Add
1279 argument. Allow and set any offset if needs_anyoffset is passed
1280 in.
1281 (get_constraint_for): Add argument here too.
1282 Pass it down.
1283 (do_structure_copy): Pass NULL to get_constraint_for.
1284 (handle_ptr_arith): Ditto.
1285 (find_func_aliases): Ditto.
1286
070a7956
R
12872005-09-20 J"orn Rennecke <joern.rennecke@st.com>
1288
1289 PR rtl-optimization/23898
1290 * output.h (get_attr_min_length): Declare.
1291 * final.c (get_attr_length_1): New function, broken out of:
1292 (get_attr_length).
1293 (get_attr_min_length): New function.
1294 * bb-reorder.c (copy_bb_p, get_uncond_jump_length): Use it.
1295 (duplicate_computed_gotos): Likewise.
1296 * genattr.c (insn_min_length): Generate declaration.
1297 * genattrtab.c (min_fn, min_attr_value): New functions.
1298 (make_length_attrs): Generate insn_min_length.
1299
9972f30d
SE
13002005-09-20 Steve Ellcey <sje@cup.hp.com>
1301
1302 * config/pa/pa.c (output_cbranch): Check for zero in operands[2].
1303
29b2d867
RH
13042005-09-20 Richard Henderson <rth@redhat.com>
1305
577b2a06 1306 PR tree-optimization/24059
29b2d867
RH
1307 * expr.c (expand_expr_real_1) <INDIRECT_REF>: Allow modifier
1308 EXPAND_STACK_PARM.
1309
af15a2fe
JM
13102005-09-20 Joseph S. Myers <joseph@codesourcery.com>
1311
1312 * c.opt (fextended-identifiers): New.
1313 * c-opts.c (c_common_handle_option): Handle
1314 -fextended-identifiers.
1315 * doc/cpp.texi: Update documentation of extended identifiers.
1316 * doc/cppopts.texi (-fextended-identifiers): Document.
1317
18c57f2c
JJ
13182005-09-20 Jakub Jelinek <jakub@redhat.com>
1319
6fff2603
JJ
1320 PR tree-optimization/23929
1321 * tree-ssa-loop-niter.c (expand_simple_operations): Return immediately
1322 if expr is NULL.
1323
18c57f2c
JJ
1324 PR tree-optimization/23818
1325 * tree-stdarg.c (execute_optimize_stdarg): Call
1326 calculate_dominance_info.
1327
1c8cd54d 13282005-09-20 Daniel Berlin <dberlin@dberlin.org>
416f403e
DB
1329
1330 * tree-data-ref.c (get_number_of_iters_for_loop): New function.
1331 (analyze_siv_subscript_cst_affine): Add weak SIV test.
1332 (compute_overlap_steps_for_affine_1_2): Use
1333 get_number_of_iters_for_loop.
1334 (analyze_subscript_affine_affine): Check whether difference is
1335 zero first.
1336 Use get_number_of_iters_for_loop.
1337 Check whether overlap occurs outside of bounds.
1338 (analyze_miv_subscript): Use get_number_of_iters_for_loop.
1339
39278c14
AK
13402005-09-20 Andreas Krebbel <krebbel1@de.ibm.com>
1341
1342 * tree-ssa-address.c (create_mem_ref): Put the symbol reference into the
1343 base register if possible.
1344
2282a0e6
ZD
13452005-09-20 Zdenek Dvorak <dvorakz@suse.cz>
1346
1347 PR tree-optimization/18463
1348 * tree-chrec.c (chrec_convert): Return fold_converted chrec if
1349 converting it directly is not possible.
1350 (chrec_convert_aggressive): New function.
1351 * tree-chrec.h (chrec_convert_aggressive): Declare.
1352 * tree-scalar-evolution.c (instantiate_parameters_1, resolve_mixers):
1353 Fold chrec conversions aggressively if asked to.
1354 (instantiate_parameters): Modified because of changes in
1355 instantiate_parameters_1.
1356
e20524fa
RH
13572005-09-19 Richard Henderson <rth@redhat.com>
1358
1359 * config/i386/sse.md (reduc_splus_v4sf): Rename from reduc_plus_v4sf.
1360 (reduc_splus_v2df): New.
1361
20de58d9
RS
13622005-09-19 Richard Sandiford <richard@codesourcery.com>
1363
1364 * config/arm/aof.h (REGISTER_NAMES): Add missing backslash.
1365 (ADDITIONAL_REGISTER_NAMES): Add missing comma. Remove final comma.
1366
2a23f9a7
RH
13672005-09-19 Richard Henderson <rth@redhat.com>
1368
1369 * config/i386/sse.md (vcondu<SSEMODE124>): Rename from
1370 vcondu<SSEMODE12>.
1371
e898620c
RH
13722005-09-19 Richard Henderson <rth@redhat.com>
1373
1374 * config/ia64/ia64.c (ia64_expand_widen_sum): New.
1375 (ia64_expand_dot_prod_v8qi): New.
1376 * config/ia64/ia64-protos.h: Update.
1377 * config/ia64/vect.md (pmpy2_r, pmpy2_l, widen_usumv8qi3,
1378 widen_usumv4hi3, widen_ssumv8qi3, widen_ssumv4hi3, udot_prodv8qi,
1379 sdot_prodv8qi, sdot_prodv4hi): New.
1380 (reduc_splus_v2sf): Rename from reduc_plus_v2sf.
1381
d289e37a
RH
13822005-09-19 Richard Henderson <rth@redhat.com>
1383
1384 PR 23941
1385 * real.c (exact_real_truncate): Return false if the format cannot
1386 represent the number as a normal.
1387
a220ee34
RH
1388 * config/alpha/alpha.c (alpha_rtx_costs) <FLOAT_EXTEND>: Cost 0
1389 for a memory source.
1390
3c7d0735
DN
13912005-09-19 Dorit Nuzman <dorit@il.ibm.com>
1392
1393 * tree-ssa-operands.c (swap_tree_operands): Export.
1394 * tree.h (swap_tree_operands): Declare.
1395 * tree-vectorizer.c (vect_is_simple_reduction): Remove ATTRIBUTE_UNUSED.
1396 Call swap_tree_operands.
759915ca 1397
99c09897
RH
13982005-09-19 Richard Henderson <rth@redhat.com>
1399
1400 * tree-flow.h (merge_alias_info): Declare.
1401 * tree-ssa-copy.c (merge_alias_info): Export.
1402 * tree-vect-transform.c (vect_create_index_for_vector_ref): Remove.
1403 (vect_create_data_ref_ptr): Use create_iv directly.
1404 (vectorizable_load): Use correct types for integer constants.
1405 (vect_generate_tmps_on_preheader): Likewise.
1406 (vect_gen_niters_for_prolog_loop): Likewise.
1407
31c304ba
SB
14082005-09-19 Steven Bosscher <stevenb@suse.de>
1409
1410 PR rtl-optimization/23943
1411 * cse.c (find_best_addr): Never propagate an EXPR_LIST rtx.
1412
e238ccac
JH
14132005-09-18 Jan Hubicka <jh@suse.cz>
1414
1415 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK.
1416
f7952e0a
EB
14172005-09-18 Eric Botcazou <ebotcazou@adacore.com>
1418
1419 * varasm.c (output_constant): Do not abort on conversions to union
1420 types between different sizes.
1421
c2953725
RG
14222005-09-18 Richard Guenther <rguenther@suse.de>
1423
1424 PR middle-end/23944
1425 * gimplify.c (fold_indirect_ref_rhs): Fix thinko in
1426 fallback.
1427
798d7d9d
PB
14282005-09-18 Paul Brook <paul@codesourcery.com>
1429
1430 * config/m68k/fpgnuib.c (__floatsidf): Don't rely on signed overflow.
1431
b1e8be10
RH
14322005-09-17 Richard Henderson <rth@redhat.com>
1433
1434 * tree-pass.h, tree-flow.h, tree-ssa-dce.c: Revert last change.
1435 * tree-ssa-loop.c (pass_vect_dce): Remove.
1436 * passes.c (init_optimization_passes): Add pass_dce as a sub-pass
1437 of pass_vectorize.
1438
8fe07c42
RH
14392005-09-17 Richard Henderson <rth@redhat.com>
1440
1441 * tree-pass.h (pass_vect_dce): Declare.
1442 * passes.c (init_optimization_passes): Add it.
1443 * tree-flow.h (tree_ssa_dce): Declare.
1444 * tree-ssa-dce.c (tree_ssa_dce): Export.
1445 * tree-ssa-loop.c (tree_vectorize): Move current_loops check ...
1446 (gate_tree_vectorize): ... here.
1447 (pass_vect_dce): New.
1448
0856ee98
JH
14492005-09-17 Jan Hubicka <jh@suse.cz>
1450
1451 * except.c (struct eh_status): Turn region_array into vec.
1452 (expand_resx_expr, collect_eh_region_array, remove_unreachable_regions,
759915ca
EC
1453 convert_from_eh_region_ranges, find_exception_handler_labels,
1454 current_function_has_exception_handlers, assign_filter_values,
0856ee98
JH
1455 build_post_landing_pads, dw2_build_landing_pads,
1456 sjlj_find_directly_reachable_regions, sjlj_mark_call_sites,
1457 sjlj_emit_dispatch_table, remove_eh_handler, for_each_eh_region,
1458 foreach_reachable_handler, can_throw_internal_1,
1459 convert_to_eh_region_ranges, verify_eh_tree): Update uses of
1460 region_array.
1461 (duplicate_eh_region_1): Update region_array.
1462 (duplicate_eh_regions): Resize region_array and avoid recomputing.
1463
53c4ca47
DE
14642005-09-17 David Edelsohn <edelsohn@gnu.org>
1465
1466 PR middle-end/22067
1467 * expmed.c (expand_mult): Substitute simple register for op0 when
1468 computing max_cost.
1469
652b0932
RH
14702005-09-17 Richard Henderson <rth@redhat.com>
1471
1472 * expr.c (emit_move_via_integer): Add force argument, pass it on
1473 to emit_move_change_mode. Update callers.
1474 (emit_move_complex): Pass true to new force argument.
1475 * function.c (expand_function_end): Move expand_eh_return call
1476 earlier. Merge sub-word complex values into a pseudo before
1477 copying to the return hard register.
1478
69fcfd68
EB
14792005-09-17 Eric Botcazou <ebotcazou@adacore.com>
1480
1481 * varasm.c (output_constant): Do not abort on VIEW_CONVERT_EXPRs
1482 between different sizes.
1483
6a4e4778
PB
14842005-09-16 Paolo Bonzini <bonzini@gnu.org>
1485
1486 PR 23903
1487
1488 * passes.c (init_optimization_passes): Register dump files for
1489 IPA passes first.
1490
bcf8c1cc
AK
14912005-09-16 Andreas Krebbel <krebbel1@de.ibm.com>
1492
1493 * config/s390/s390-protos.h (s390_overlap_p): Prototype added.
1494 * config/s390/s390.c (s390_overlap_p): New function.
1495 * config/s390/s390.md ("*mvc" peephole2, "*nc" peephole2, "*oc"
1496 peephole2, "*xc" peephole2): Added overlap check to the peephole2
1497 condition.
1498
f7acf1c2
RG
14992005-09-16 Richard Guenther <rguenther@suse.de>
1500
1501 * ipa-pure-const.c (static_execute): Free auxiliar information.
1502 * ipa-type-escape.c (discover_unique_type): Free temporary key.
1503 * tree-vrp.c (remove_range_assertions): Free blocks_visited sbitmap.
1504
f5ea2dca
DD
15052005-09-15 DJ Delorie <dj@redhat.com>
1506
1507 * config/m32c/m32c-lib1.S (__m32c_eh_return): Fix typo.
1508
9026e8d4
PB
15092005-09-15 Paolo Bonzini <bonzini@gnu.org>
1510
1511 * optabs.c (expand_binop): Use swap_commutative_operands_with_target
1512 to order operands.
1513 (swap_commutative_operands_with_target): New.
1514
14b33c04
DB
15152005-09-15 Daniel Berlin <dberlin@dberlin.org>
1516
1517 * tree-data-ref.c (analyze_array_indexes): Add estimate_only
1518 parameter.
1519 Update callers.
1520 (estimate_iters_using_array): New function.
1521 * tree-data-ref.h (estimate_iters_using_array): Prototype
1522 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
1523 Use estimate_iters_using_array instead of analyze_array.
759915ca 1524
d430cbe7
EB
15252005-09-15 Eric Botcazou <ebotcazou@adacore.com>
1526
1527 * tree-nested.c (get_frame_type): Mark the "non-local frame structure"
1528 as addressable.
1529
fca59ed2
MM
15302005-09-15 Michael Matz <matz@suse.de>
1531
1532 * tree-vrp.c (vrp_int_const_binop <MINUS_EXPR>): Handle 0 - -INF.
1533
fd312e90
DB
15342005-09-14 Daniel Berlin <dberlin@dberlin.org>
1535
1536 PR tree-optimization/23835
1537 * tree-ssa-alias.c (sort_pointers_by_pt_vars): New function.
1538 (create_name_tags): Rewrite to be not O(num_ssa_names^2).
1539
47b71abb
RH
15402005-09-14 Richard Henderson <rth@redhat.com>
1541
1542 * config/ia64/vect.md (addv2sf3, subv2sf3): Rewrite as expand.
1543 (addv2sf3_1, addv2sf3_2, subv2sf3_1, subv2sf3_2): New.
1544
5139c66b
AP
15452005-09-14 Andrew Pinski <pinskia@physics.uc.edu>
1546
1547 * config/i386/i386.c (contains_128bit_aligned_vector_p): Add break
1548 in the ARRAY_TYPE case.
1549
7ad00e13
EB
15502005-09-14 Eric Botcazou <ebotcazou@adacore.com>
1551
1552 * tree.c (substitute_in_expr, case 4): New case, for ARRAY_REF.
1553
b2d16a23
UB
15542005-09-14 Uros Bizjak <uros@kss-loka.si>
1555
1556 PR middle-end/22480
1557 * tree-vect-transform.c (vectorizable_operation): Return false for
1558 scalar shift operations and for vector shift operations with
1559 non-invariant shift arguments. Use scalar tree operand op1 as
1560 a shift operand when vector shift insn pattern uses scalar shift
1561 operand.
1562 * Makefile.in (tree-vect-transform.o): Depend on recog.h.
1563
816fa80a
OH
15642005-09-14 Olivier Hainque <hainque@adacore.com>
1565
1566 * gimplify.c (gimplify_init_ctor_eval): Don't discard a zero-sized
1567 value if it has side-effects.
1568
c9692532
DE
15692005-09-14 David Edelsohn <edelsohn@gnu.org>
1570
1571 PR target/22068
1572 * config/rs6000/rs6000.md (muldi3): Add mulli alternative.
1573
00754468
AM
15742005-09-14 Alan Modra <amodra@bigpond.net.au>
1575
1576 * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Treat function name
1577 passed as NAME as if it were label at start of function code.
1578
18943792
KK
15792005-09-13 Kaz Kojima <kkojima@gcc.gnu.org>
1580
1581 * config/sh/sh.md (*movv4sf_i): Add general register cases to
1582 the constraints.
1583
af8e8908
AP
15842005-09-13 Andrew Pinski <pinskia@physics.uc.edu>
1585
1586 * config/rs6000/darwin.md (movdf_low_si): Mark the outgoing r constraint
1587 as early clobber. Rewrite so the PIC register is not implicitly used.
1588
282c3fdc
VR
15892005-09-13 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1590
1591 * tree.c (annotate_with_file_line): Compare line numbers before
1592 file names.
1593
79e72538
UB
15942005-09-13 Uros Bizjak <uros@kss-loka.si>
1595
1596 PR target/23816
1597 * config/i386/sse.md (*ieee_sminv4sf3, *ieee_smaxv4sf3)
1598 (*ieee_sminv2df3, *ieee_smaxv2df3): New insn patterns.
1599
1984d2e8
ILT
16002005-09-13 Ian Lance Taylor <ian@airs.com>
1601
1602 * loop-doloop.c (doloop_modify): Use GEN_INT to pass an rtx rather
1603 than a HOST_WIDEST_INT to gen_doloop_begin.
1604
5681f1ab
DN
16052005-09-13 Diego Novillo <dnovillo@redhat.com>
1606
1607 * tree-dfa.c (dump_variable): Guard against NULL annotations.
1608
d7f0e25c
ZD
16092005-09-13 Zdenek Dvorak <dvorakz@suse.cz>
1610
1611 PR tree-optimize/23817
1612 * tree-cfg.c (tree_merge_blocks): Preserve loop closed ssa.
1613
2eef28ec
AM
16142005-09-13 Alan Modra <amodra@bigpond.net.au>
1615
1616 PR target/23774
1617 * config/rs6000/rs6000.md (restore_stack_block): Write the backchain
1618 word before changing the stack pointer. Use gen_frame_mem for MEMs.
1619 Use UNSPEC_TIE to prevent insn scheduling reordering the insns.
1620 (restore_stack_nonlocal): Likewise.
1621 (save_stack_nonlocal): Use template to emit insns, and gen_frame_mem.
1622
d63d5d0c
ILT
16232005-09-12 Ian Lance Taylor <ian@airs.com>
1624
1625 PR g++/7874
1626 * c.opt (ffriend-injection): New C++ option.
1627 * doc/invoke.texi (Option Summary): Mention -ffriend-injection.
1628 (C++ Dialect Options): Document -ffriend-injection.
1629
d840283a
JC
16302005-09-12 Josh Conner <jconner@apple.com>
1631
1632 PR middle-end/23237
1633 * ipa-reference.c (static_execute): Don't mark variables in
1634 named sections TREE_READONLY.
1635
309ebcd0
AM
16362005-09-12 Alan Modra <amodra@bigpond.net.au>
1637
1638 * config/rs6000/rs6000.c (get_next_active_insn): Simplify test for
1639 stack_tie.
1640
8d099498
AP
16412005-09-12 Andrew Pinski <pinskia@physics.uc.edu>
1642
759915ca 1643 * tree-ssa-dse.c (dse_optimize_stmt): Fix up all of V_MAY_DEF and
8d099498 1644 V_MUST_DEF instead of just the first_use_p.
759915ca 1645 Don't mark the virtual variables for renaming on the statement which
8d099498
AP
1646 is being removed.
1647 (pass_dse): Remove TODO_update_ssa.
1648
cd41bae5
R
16492005-09-12 J"orn Rennecke <joern.rennecke@st.com>
1650
f439f9a5
R
1651 PR middle-end/23290
1652 * stor-layout.c (compute_record_mode): For records with a single
1653 field, actually check the field's mode size against the type size.
1654
cd41bae5
R
1655 * sh.h (HARD_REGNO_MODE_OK): Allow V4SFmode in general purpose
1656 registers for TARGET_SHMEDIA.
1657 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Rename
1658 GENERAL_FP_REGS to GENERAL_DF_REGS. Add GENERAL_FP_REGS as union
1659 of GENERAL_REGS and FP_REGS.
1660
b99791d1
BS
16612005-09-12 Bernd Schmidt <bernd.schmidt@analog.com>
1662
309ebcd0 1663 * config/bfin/bfin.c (legimitize_pic_address): Use gen_const_mem.
b99791d1 1664
f489aff8
AM
16652005-09-12 Alan Modra <amodra@bigpond.net.au>
1666
1667 * config/rs6000/rs6000.c (get_next_active_insn): Rewrite using
1668 CALL_P, JUMP_P and NONJUMP_INSN_P, so that barriers and labels
1669 are omitted. Exclude stack_tie insn too.
1670
8308679f
DE
16712005-09-11 David Edelsohn <edelsohn@gnu.org>
1672
1673 PR rtl-optimization/23098
1674 * config/rs6000/predicates.md (easy_fp_constant): SFmode constant
1675 0.0f is easy.
1676 * config/rs6000/rs6000.md (movdf splitter): Use
1677 const_double_operand predicate for TARGET_POWERPC64.
1678 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Expand
1679 SYMBOL_REF method to ABI_V4.
1680
1681 * config/rs6000/altivec.md (build_vector_mask_for_load): Use
1682 replace_equiv_address.
1683 * config/rs6000/rs6000.c (rs6000_emit_eh_reg_restore): Mark MEM as
1684 rs6000_sr_alias_set and MEM_NOTRAP.
1685 (rs6000_aix_emit_builtin_unwind_init): Use gen_frame_mem().
1686
4c223d6a
EB
16872005-09-11 Eric Botcazou <ebotcazou@adacore.com>
1688
1689 * tree.c (contains_placeholder_p) <tcc_expression>: Properly
1690 handle CALL_EXPR again.
1691
2347f5c9
RE
16922005-09-11 Richard Earnshaw <richard.earnshaw@arm.com>
1693
1694 * arm/predicates.md (alignable_memory_operand): Delete.
1695
4e0e2698
RH
16962005-09-10 Richard Henderson <rth@redhat.com>
1697
1698 PR debug/23806
1699 * dbxout.c (dbxout_expand_expr): New.
1700 (dbxout_symbol): Use it.
1701
31fa16b6
RE
17022005-09-10 Richard Earnshaw <richard.earnshaw@arm.com>
1703
1704 * arm.c (arm_gen_rotated_half_load): Delete.
1705 (vfp_emit_fstmx, arm_set_return_address): Use gen_frame_mem.
1706 (emit_multi_reg_push, emit_sfm, arm_expand_prologue)
1707 (thumb_set_return_address): Likewise.
1708 (thumb_load_double_from_address): Use adjust_address.
1709 * arm.md (splits calling arm_gen_rotated_half_load): Delete.
1710 (extendhsisi2_mem, movhi_bytes): Use change_address.
1711 (movhi): Use widen_memory_access.
1712 (reload_out_df): Use replace_equiv_address.
1713 * arm-protos.h (arm_gen_rotated_half_load): Delete prototype.
1714
9bfa80fb
RH
17152005-09-09 Richard Henderson <rth@redhat.com>
1716
1717 PR debug/20998
1718 * dbxout.c: Include expr.h.
1719 (dbxout_global_decl): Don't suppress for DECL_RTL unset.
1720 (dbxout_symbol): Handle DECL_VALUE_EXPR.
1721 * Makefile.in (dbxout.o): Add EXPR_H.
1722
2360a4c1
ZD
17232005-09-09 Zdenek Dvorak <dvorakz@suse.cz>
1724
1725 PR tree-optimization/23509
1726 * tree-cfg.c (replace_uses_by): Use replace_exp.
1727 * tree-ssa-loop-ivopts.c (get_ref_tag): Assert that dereferenced
1728 pointers have name_mem_tag or type_mem_tag set.
1729
7ce7896c
SP
17302005-09-09 Sebastian Pop <pop@cri.ensmp.fr>
1731
759915ca 1732 * tree-chrec.c (evolution_function_is_invariant_rec_p): Use
7ce7896c
SP
1733 CHREC_LEFT and CHREC_RIGHT for accessing chrec components instead
1734 of wrongly accessing operands.
1735
18aed06a
SP
17362005-09-09 Sebastian Pop <pop@cri.ensmp.fr>
1737
1738 * Makefile.in (tree-chrec.o): Depends on SCEV_H.
1739 * tree-chrec.c: Include tree-scalar-evolution.h.
1740 (chrec_convert): Instantiate the base and step before calling
1741 scev_probably_wraps_p that would fail on parametric evolutions.
1742 Collect all the fails into a single section failed_to_convert,
1743 print a diagnostic, and return chrec_dont_know instead of calling
1744 fold_convert.
1745 * tree-scalar-evolution.c (loop_closed_phi_def): New.
1746 (instantiate_parameters_1): Avoid instantiation of loop closed ssa
1747 phi nodes.
1748 (scev_const_prop): Don't replace the definition of a loop closed ssa
1749 phi node by itself, or by another loop closed ssa phi node.
1750 * tree-ssa-loop-niter.c (scev_probably_wraps_p, convert_step): Check
1751 that base and step are defined.
1752
3dac16bd
RG
17532005-09-09 Richard Guenther <rguenther@suse.de>
1754
1755 PR c++/23624
1756 * fold-const.c (fold_ternary): Check truth_value_p before
1757 calling invert_truthvalue.
1758
dcfae47c
NC
17592005-09-09 Nick Clifton <nickc@redhat.com>
1760
1761 * Makefile.in (LIBGCC_DEPS): Add libgcc2.h.
1762 * libgcc2.c (__clz_tab[], __popcount_tab[]): Set the fixed
1763 dimension of these arrays.
1764 * libgcc2.h (__clz_tab[], __popcount_tab[]): Add exports of
1765 these arrays.
1766 * longlong.h: Only provide a prototype for the __clz_tab[] array
1767 if this header has not been included from libgcc2.h.
1768 * config/stormy16/stormy16-lib2.c: Include libgcc2.h rather than
1769 defining own types.
1770 Provide prototypes for exported functions.
1771 Use the __clz_tab[] and __popcount_tab[] arrays provided by
1772 libgcc2.c.
1773
d047a201
JC
17742005-09-08 Josh Conner <jconner@apple.com>
1775
70e9e3d6 1776 PR c++/21135
d047a201
JC
1777 PR c++/23180
1778 * expr.c (expand_expr_addr_expr_1): Don't invoke
1779 expand_simple_binop for EXPAND_INITIALIZER.
1780
db5f8b93
RH
17812005-09-08 Richard Henderson <rth@redhat.com>
1782
1783 PR debug/23190
1784 * toplev.c (wrapup_global_declaration_1): Split out ...
1785 (wrapup_global_declaration_2): ... from ...
1786 (wrapup_global_declarations): ... here. Return bool.
1787 (check_global_declaration_1): Split out ...
1788 (check_global_declarations): from here.
1789 (emit_debug_global_declarations): New.
1790 * toplev.h (wrapup_global_declaration_1, wrapup_global_declaration_2,
1791 check_global_declaration_1, emit_debug_global_declarations): Declare.
1792 * c-decl.c (c_write_global_declarations_1): Don't create a vector
1793 of decls. Call wrapup_global_declaration_1,
1794 wrapup_global_declaration_2, check_global_declaration_1 directly.
1795 (c_write_global_declarations_2): New.
1796 (ext_block): New.
1797 (c_write_global_declarations): Call c_write_global_declarations_2.
1798 * langhooks.c (write_global_declarations): Call
1799 emit_debug_global_declarations.
1800
1801 * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Don't
1802 remove decls that have DECL_RTL_SET_P.
1803 * passes.c (rest_of_decl_compilation): Invoke
1804 cgraph_varpool_finalize_decl for all but functions.
1805
5c9186ce
EB
18062005-09-08 Eric Botcazou <ebotcazou@libertysurf.fr>
1807
1808 * tree-vrp.c (extract_range_from_unary_expr): Do not set the range for
1809 the result of a conversion if the new min and max cannot be compared.
1810
dcc9eb26
AK
18112005-09-08 Andreas Krebbel <krebbel1@de.ibm.com>
1812
1813 * config/s390/s390.c (s390_sr_alias_set): Variable removed.
1814 (override_options): Setting s390_sr_alias_set removed.
1815 (save_fpr, save_gprs): Set alias set to vararg or frame.
759915ca 1816 (restore_fpr, restore_gprs, s390_emit_prologue): Replace
dcc9eb26
AK
1817 s390_sr_alias_set with get_frame_alias_set ().
1818 (s390_gimplify_va_arg): Replace s390_sr_alias_set with
1819 get_varargs_alias_set ().
1820
8f078c08
AP
18212005-09-08 Andrew Pinski <pinskia@physics.uc.edu>
1822
1823 PR objc/20574
1824 PR objc/19324
1825 * c-parser.c (c_parser_objc_method_definition): If the next
1826 token is not "{", error out and don't start the function.
1827
0c924d5c
AP
18282005-09-08 Andrew Pinski <pinskia@physics.uc.edu>
1829
1830 * tree-vrp.c (extract_range_from_expr): Move the check for non
1831 nullness after the check for gimple invariant.
1832
9f36bc49
RK
18332005-09-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1834
1835 * tree.c (host_integerp, tree_low_cst): Correct function comment.
1836
085fd657
KI
18372005-09-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1838
1839 PR target/23747
1840 * config/m32r.md (movmemsi_internal): Canonicalize order of
1841 operands in PLUS component of template.
1842
b735f45d
AK
18432005-09-07 Andreas Krebbel <krebbel1@de.ibm.com>
1844
1845 * reload1.c (fixup_eh_region_note): Remove assertion.
759915ca 1846 (fixup_abnormal_edges): Reverted removal of call to
b735f45d
AK
1847 find_many_sub_basic_blocks made on 2005-08-31.
1848
30e6f306
RH
18492005-09-07 Richard Henderson <rth@redhat.com>
1850
8fe07c42
RH
1851 * function.c (ARG_POINTER_CFA_OFFSET): Move ...
1852 * defaults.h (ARG_POINTER_CFA_OFFSET): ... here.
30e6f306 1853 (INCOMING_FRAME_SP_OFFSET): Move from dwarf2out.c.
8fe07c42
RH
1854 * dwarf2out.c (struct cfa_loc): Change reg to unsigned int,
1855 rearrange for better packing.
30e6f306 1856 (INCOMING_FRAME_SP_OFFSET): Move to defaults.h.
8fe07c42
RH
1857 (lookup_cfa_1): Remove inline marker.
1858 (cfa_equal_p): Split out of ...
1859 (def_cfa_1): ... here. Use INVALID_REGNUM.
1860 (build_cfa_loc): Handle !cfa->indirect.
1861 (frame_pointer_cfa_offset): New.
1862 (dbx_reg_number): Assert register elimination performed; do
1863 leaf register remapping.
1864 (reg_loc_descriptor): Avoid calling dbx_reg_number when unused.
1865 (eliminate_reg_to_offset): New.
1866 (based_loc_descr): Remove can_use_fbreg argument. Use fbreg only
1867 for verifiably local stack frame addresses; re-base to CFA.
1868 (mem_loc_descriptor): Remove can_use_fbreg argument.
1869 (concat_loc_descriptor, loc_descriptor): Likewise.
1870 (containing_function_has_frame_base): Remove.
1871 (rtl_for_decl_location): Don't do register elimination or
1872 leaf register remapping here.
1873 (secname_for_decl): Split out from ..
1874 (add_location_or_const_value_attribute): ... here.
1875 (convert_cfa_to_loc_list): New.
1876 (compute_frame_pointer_to_cfa_displacement): New.
1877 (gen_subprogram_die): Use them.
1878 * tree.h (frame_base_decl): Remove.
1879 * var-tracking.c (frame_base_decl, frame_stack_adjust): Remove.
1880 (prologue_stack_adjust): Remove.
1881 (vt_stack_adjustments): Use INCOMING_FRAME_SP_OFFSET.
1882 (adjust_stack_reference): Re-base memories to arg_pointer_rtx.
1883 (set_frame_base_location): Remove.
1884 (compute_bb_dataflow, emit_notes_in_bb): Don't call it.
1885 (dump_attrs_list, dump_dataflow_set): Use string concatenation.
1886 (vt_add_function_parameters): Don't eliminate_regs.
1887 (vt_initialize): Don't create frame_base_decl.
30e6f306 1888
ff8f80f2
EB
18892005-09-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1890
1891 * doc/install.texi (*-*-solaris2*): Clarify wording on the recommended
1892 version of GNU binutils for 4.x and later.
1893
6f02b1db
MM
18942005-09-06 Mark Mitchell <mark@codesourcery.com>
1895
1896 * ggc-page.c (ggc_push_context): Remove.
1897 (ggc_pop_context): Likewise.
1898 * ggc.h (ggc_push_context): Remove.
1899 (ggc_pop_context): Likewise.
1900
3273516f
SV
19012005-09-06 Saurabh Verma <saurabh.verma@codito.com>
1902
1903 PR target/8973
1904 * config/arc/arc.c (arc_output_function_epilogue): Update flags while
1905 returning from an interrupt handler.
1906
006fa7d4
SV
19072005-09-06 Saurabh Verma <saurabh.verma@codito.com>
1908
1909 PR target/8972
1910 * config/arc/arc.c (output_shift): Add check for loop count when
1911 optimizing.
1912
800dd123
SB
19132005-09-06 Steven Bosscher <stevenb@suse.de>
1914
1915 * tree-ssa-phiopt.c (conditional_replacement): Construct proper SSA
1916 form manually.
1917 (abs_replacement): Likewise.
1918 (pass_phiopt): Remove TODO_update_ssa.
1919
73109af7
JJ
19202005-09-06 Jakub Jelinek <jakub@redhat.com>
1921
0c9b182b
JJ
1922 PR c/23075
1923 * c-typeck.c (c_finish_return): Set TREE_NO_WARNING on RETURN_EXPR
1924 if "return with no value, in function returning non-void" warning
1925 has been issued.
800dd123 1926 * tree-cfg.c (execute_warn_function_return): Don't look at
0c9b182b
JJ
1927 RETURN_EXPRs with TREE_NO_WARNING set.
1928
73109af7
JJ
1929 PR target/22362
1930 * config/i386/i386.c (ix86_function_regparm): Make sure automatic regparm
1931 for internal functions doesn't use registers used by global registers
1932 variables. Use fewer register parameters if there are global register
1933 variables.
1934
60a23e2e 19352005-09-06 Olivier Hainque <hainque@adacore.com>
800dd123 1936 Eric Botcazou <ebotcazou@adacore.com>
60a23e2e
OH
1937
1938 PR middle-end/14997
1939 * expr.c (expand_expr_real) <normal_inner_ref>: Force op0 to mem
1940 when we would be extracting outside its bit span (bitpos+bitsize
1941 larger than its mode), possible with some VIEW_CONVERT_EXPRs from
1942 Ada unchecked conversions.
1943
dda243de
SB
19442005-09-06 Steven Bosscher <stevenb@suse.de>
1945
1946 * tree-ssa-pre.c (try_look_through_load): New function.
1947 (compute_avail): Use it to try to look through loads for some
1948 more useful expressions.
1949
f5d1572a
SV
19502005-09-06 Saurabh Verma <saurabh.verma@codito.com>
1951
759915ca 1952 * simplify-rtx.c (simplify_binary_operation_1): Correct the
f5d1572a
SV
1953 condition for detecting cases like (a&a) and (a^a).
1954
c12cc930
KB
19552005-09-06 Keith Besaw <kbesaw@us.ibm.com>
1956
1957 * common.opt: Add option ftree-vect-loop-version.
1958 * params.def: Add --param vect-max-version-checks.
1959 * doc/invoke.texi: Document ftree-vect-loop-version and
1960 --param vect-max-version-checks.
1961 * tree-vectorizer.h (_loop_vec_info): Add ptr_mask and
1962 may_misalign_stmts and defines for accessors.
1963 * tree-vectorizer.c : (new_loop_vec_info): VEC_alloc for
1964 LOOP_VINFO_MAY_MISALIGN_STMTS.
1965 (destroy_loop_vec_info): VEC_free for
1966 LOOP_VINFO_MAY_MISALIGN_STMTS.
1967 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
1968 Update documentation.
1969 (vect_update_misalignment_for_peel): New.
1970 (vect_enhance_data_refs_alignment): Update to choose loop
1971 peeling or loop versioning if appropriate for the (potentially)
1972 unaligned data references in the loop.
1973 (vect_analyze_data_refs_alignment): Remove call to
1974 vect_enhance_data_refs_alignment so the checks can be done
1975 earlier.
1976 (vect_analyze_loop): Add call to vect_enhance_data_refs_alignment
1977 and move up call to vect_analyze_data_refs_alignment.
1978 * tree-vect-transform.c (vect_create_cond_for_align_checks): New.
1979 (vect_transform_loop): Add call to loop_version.
1980
1c653a41
JJ
19812005-09-06 Jakub Jelinek <jakub@redhat.com>
1982
1983 PR rtl-optimization/23098
1984 * cse.c (fold_rtx_mem): Call delegitimize_address target hook.
1985 * simplify-rtx.c (constant_pool_reference_p): New function.
1986 * rtl.h (constant_pool_reference_p): New prototype.
1987 * config/i386/i386.md (pushf split, mov[sdx]f split): Use
1988 constant_pool_reference_p in condition and
1989 avoid_constant_pool_reference in preparation statements.
1990
70a640af
AK
19912005-09-06 Andreas Krebbel <krebbel1@de.ibm.com>
1992
759915ca 1993 * gcse.c (try_replace_reg): Disallow REG_EQUAL notes for
70a640af
AK
1994 STRICT_LOW_PART SETs.
1995
fc781ee0
AM
19962005-09-06 Alan Modra <amodra@bigpond.net.au>
1997
1998 PR middle-end/21460
1999 * except.c (sjlj_emit_function_enter): Find the function begin
2000 note even when it's not in first basic block.
2001
67da1534
KC
20022005-09-06 Kelley Cook <kcook@gcc.gnu.org>
2003
2004 * acinclude.m4: Renamed from aclocal.m4. Delete AM_LANGINFO_CODESET,
2005 AM_PROG_CC_C_O, and AM_AUX_DIR_EXPAND.
2006 * aclocal.m4: Regenerate.
2007
dc019eb8
DD
20082005-09-05 DJ Delorie <dj@redhat.com>
2009
2010 * config/m32c/m32c.h (TRAMPOLINE_ALIGNMENT): Correct misspelling
2011 of macro.
2012
57b51d4d
KH
20132005-09-06 Kazu Hirata <kazu@codesourcery.com>
2014
2015 * gimplify.c, ipa-prop.h, varasm.c, config/vxlib.c,
2016 config/vxworks.h, config/crx/crx.c, config/ms1/ms1.c,
2017 config/ms1/ms1.md, config/rs6000/rs6000.c: Fix comment typos.
2018 Follow spelling conventions.
2019 * doc/invoke.texi: Follow spelling conventions.
2020
bf877a76
R
20212005-09-05 J"orn Rennecke <joern.rennecke@st.com>
2022
2023 * rtl.h (gen_frame_mem, gen_tmp_stack_mem): Declare.
2024 * emit-rtl.c (gen_frame_mem, gen_tmp_stack_mem): New functions.
2025 * builtins.c (expand_builtin_return_addr): Use gen_frame_mem.
2026
57d38024
R
20272005-09-05 J"orn Rennecke <joern.rennecke@st.com>
2028
2029 PR target/23683
2030 * sh.c (sh_reorg, emit_load_ptr): Use gen_const_mem.
2031 (output_stack_adjust): Use gen_tmp_stack_mem.
2032 (sh_expand_prologue, sh_expand_epilogue): Use gen_frame_mem.
2033 (sh_set_return_address, sh_allocate_initial_value): Likewise.
2034 (sh_get_pr_initial_val): Likewise.
2035 (sh_builtin_saveregs): Use gen_frame_mem and change_address.
2036 (sh_initialize_trampoline): Likewise. Also use adjust_address.
2037 * sh.md (divsi_inv_m0): Use gen_const_mem.
2038 (push_fpscr, pop_fpscr, load_ra): Use gen_frame_mem.
2039 (movdf_i4+1): Use gen_tmp_stack_mem.
2040 (reload_outdf+3, reload_outdf+4, fpu_switch+1): Use change_address.
2041 (fpu_switch+2): Likewise.
2042 (movv4sf_i, movv16sf_i): Use adjust_address.
2043 (symGOT_load): Set MEM_NOTRAP_P bit.
2044
1c9ef36d
JDA
20452005-09-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2046
2047 PR target/23721
2048 * pa.c (emit_move_sequence): Fix typo in last change.
2049
7a6b7528
JJ
20502005-09-03 Jakub Jelinek <jakub@redhat.com>
2051
2052 PR rtl-optimization/23454
2053 * reorg.c (relax_delay_slots): Only call invert_jump if any_condjump_p
2054 is true.
2055
7c95bbfb
RH
20562005-09-03 Richard Henderson <rth@redhat.com>
2057 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2058
2059 PR middle-end/23671
800dd123 2060 * pa.c (emit_move_sequence): Use replace_equiv_address instead of
7c95bbfb
RH
2061 gen_rtx_MEM.
2062
b107d743
NP
20632005-09-02 Nicolas Pitre <nico@cam.org>
2064
2065 * config/arm/arm.c (arm_legitimize_address): Limit the value passed
2066 to bit_count to 32 bits.
2067
a38578e1
MM
20682005-08-31 Mark Mitchell <mark@codesourcery.com>
2069
2070 PR c++/23167
2071 * gimplify.c (gimplify_expr): Handle TREE_ADDRESSABLE types when
2072 generating synthetic loads from volatile lvalues.
2073
ebf178cd
NC
2074005-09-02 Nick Clifton <nickc@redhat.com>
2075
2076 * config/stormy16/stormy16-lib2.c (__popcounthi2, __parityhi2,
2077 __ctzhi2, __clzhi2): New functions.
2078
9bf777ee
AP
20792005-09-02 Andrew Pinski <pinskia@physics.uc.edu>
2080
2081 PR middle-end/23547
2082 * tree-nested.c (struct var_map_elt): Mark with GTY.
2083 (struct nesting_info): Mark with GTY. Mark var_map's param is struct
2084 var_map_elt.
2085 (lookup_field_for_decl): Allocate new element in GC memory.
2086 (lookup_tramp_for_decl): Likewise.
2087 (convert_nl_goto_reference): Likewise
2088 (create_nesting_tree): Allocate info in GC memory. Likewise for
2089 info->var_map.
2090 (free_nesting_tree): Free with ggc_free instead of free.
2091 (root): New static variable.
2092 (lower_nested_functions): Remove root as local variable. And zero out
2093 root at the end of the function.
2094
f805670f
R
20952005-09-02 J"orn Rennecke <joern.rennecke@st.com>
2096
2097 PR rtl-optimization/20365
2098 * simplify-rtx.c (simplify_plus_minus_op_data): Change type of neg
2099 to short. New member ix.
2100 (simplify_plus_minus_op_data_cmp): Break ties using ix member.
2101 (simplify_plus_minus): Initialize ix members before calling qsort.
2102
b8c4f9a4
ZD
21032005-09-02 Zdenek Dvorak <dvorakz@suse.cz>
2104
2105 PR tree-optimization/23626
2106 * tree-cfg.c (replace_uses_by): Clean up eh info.
2107
73eb8cb6
DD
21082005-09-01 DJ Delorie <dj@redhat.com>
2109
2110 * config/m32c/m32c.c (m32c_valid_pointer_mode): Remove stray debug
2111 fprintf.
2112
13e2e16e
DE
21132005-09-01 David Edelsohn <edelsohn@gnu.org>
2114
2115 * config/rs6000/rs6000.c (setup_incoming_varargs): Set MEM_NOTRAP_P.
2116 (rs6000_split_multireg_move): Use replace_equiv_address instead of
2117 gen_rtx_MEM.
2118
52d09157
CR
21192005-09-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
2120
2121 * c-decl.c (diagnose_mismatched_decls): With -Wredundant-decls,
2122 do not issue warning for a variable definition following
2123 a declaration.
2124
277fc67e
RH
21252005-09-01 Richard Henderson <rth@redhat.com>
2126
2127 PR 23668
2128 * config/i386/i386.c (ix86_expand_vector_init_one_var): Restore
2129 conversion to CONST_VECTOR.
2130
e3947b34
RH
21312005-09-01 Richard Henderson <rth@redhat.com>
2132
2133 PR 23676
2134 * reload1.c (reload_as_needed): Check !CALL_P before calling
2135 fixup_eh_region_note.
2136 * rtlanal.c (may_trap_p): SUBREG by itself cannot trap.
2137
056061d8
DD
21382005-09-01 DJ Delorie <dj@redhat.com>
2139
2140 * varasm.c (output_constant): Let the target resolve
2141 conversions of addresses to non-default pointer sizes.
2142
86805759
NP
21432005-09-01 Nicolas Pitre <nico@cam.org>
2144
2145 * config/arm/arm.c (arm_legitimize_address): Split absolute addresses
2146 to alow matching ARM pre-indexed addressing mode.
2147 (arm_override_options): Remove now irrelevant comment.
2148
d442d7d9
PE
21492005-09-01 Phil Edwards <phil@codesourcery.com>
2150
2151 * config.gcc (i*86-wrs-vxworks): Update. Split out vxworksae target.
2152 * config/i386/t-vxworks: Update multilibs for VxWorks 6 and RTP mode.
2153 * config/i386/vxworks.h: Likewise.
2154 * config/i386/t-vxworksae: New file, for VxWorks AE.
2155 * config/i386/vxworksae.h: Likewise.
2156
ab02cc4e
SP
21572005-09-01 Sebastian Pop <pop@cri.ensmp.fr>
2158
2159 PR tree-optimization/23410
2160 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Check that the
2161 sequence is not wrapping during the first step.
2162
ac156e91
JJ
21632005-09-01 Jakub Jelinek <jakub@redhat.com>
2164
2165 PR debug/7241
2166 * dwarf2out.c (base_type_die): Compare char_type_node with
2167 TYPE_MAIN_VARIANT (type), not type.
2168
355866de
RG
21692005-09-01 Richard Guenther <rguenther@suse.de>
2170
2171 PR tree-optimization/15366
2172 * common.opt: Add -finline-functions-called-once.
2173 Put -fearly-inlining in alphabetically ordered place.
2174 * doc/invoke.texi: Document new option.
2175 * ipa-inline.c (cgraph_decide_inlining): Honour
2176 flag_inline_functions_called_once.
2177
95c37cdb
JJ
21782005-09-01 Jakub Jelinek <jakub@redhat.com>
2179
2180 PR rtl-optimization/23478
2181 * local-alloc.c (struct qty): Add n_throwing_calls_crossed field.
2182 (alloc_qty): Initialize it.
2183 (update_equiv_regs): Clear REG_N_THROWING_CALLS_CROSSED.
2184 (combine_regs): Combine also n_throwing_calls_crossed fields.
2185 (find_free_reg): Don't attempt to caller-save pseudos crossing
2186 calls that might throw.
2187 * global.c (struct allocno): Add throwing_calls_crossed field.
2188 (global_alloc): Revert 2005-08-22 change. Initialize
2189 throwing_calls_crossed.
2190 (find_reg): Don't attempt to caller-save pseudos crossing calls that
2191 might throw.
2192
1990cd79
AM
21932005-09-01 Alan Modra <amodra@bigpond.net.au>
2194
2195 PR target/23649
2196 * config/rs6000/predicates.md (mask_operand): Only handle rlwinm masks.
2197 (mask64_operand): Reinstate code prior to 2005-06-11 change.
2198 (mask64_2_operand): Reinstate code prior to 2004-11-11 change.
2199 (and64_2_operand): Tweak to use predicate.
2200 (and_operand): Adjust for mask_operand changes.
2201 * config/rs6000/rs6000.c (num_insns_constant): Revert 2005-06-11.
2202 (print_operand): Likewise.
2203 (rs6000_rtx_costs): Pass mode to mask_operand and use mask64_operand.
2204 (mask64_1or2_operand): Delete.
2205 * rs6000/rs6000-protos.h (mask64_1or2_operand): Delete.
2206 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT <S>): Revert 2005-06-11.
2207 (EXTRA_CONSTRAINT <T>): Pass operand mode to predicate.
2208 (EXTRA_CONSTRAINT <t>): Disallow mask64_operand matches.
2209 * config/rs6000/rs6000.md (andsi3_internal3 split): Revert 2005-06-11.
2210 (rotldi3_internal4): Likewise.
2211 (rotldi3_internal5, rotldi3_internal5 split): Likewise.
2212 (rotldi3_internal6, rotldi3_internal6 split): Likewise.
2213 (ashldi3_internal7): Likewise.
2214 (ashldi3_internal8, ashldi3_internal8 split): Likewise.
2215 (ashldi3_internal, ashldi3_internal9 split): Likewise.
2216 (anddi3 split): Don't match mask64_operand.
2217 (anddi3_internal2): Add rlwinm. Modify 't' splitter predicate.
2218 (anddi3_internal3): Add rlwinm. Use and64_2_operand in non-cr0
2219 splitter and match TARGET_64BIT not TARGET_POWERPC64. Modify
2220 't' splitter predicate.
2221 (movdi_internal64 + 2): Revert 2005-06-11 change.
2222
e9555b13
DD
22232005-08-31 DJ Delorie <dj@redhat.com>
2224
2225 * config/m32c/m32c.c (m32c_valid_pointer_mode): New.
2226 (m32c_asm_integer): Add support for 32 bit pointers.
2227
8476af98
RH
22282005-08-31 Richard Henderson <rth@redhat.com>
2229
2230 * emit-rtl.c (set_mem_attributes_minus_bitpos): Look through
2231 component-like references for setting MEM_NOTRAP_P.
2232
2233 * config/i386/i386.c (ix86_setup_incoming_varargs): Set MEM_NOTRAP_P.
2234 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
2235
0fd662ee
RH
22362005-08-31 Richard Henderson <rth@redhat.com>
2237
2238 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Force subregs
2239 into a pseudo before applying gen_lowpart.
2240
960ac6e1
GK
22412005-08-31 Geoffrey Keating <geoffk@apple.com>
2242
2243 * doc/install.texi (Specific): Update cctools version required
2244 for full functionality.
2245 * config/darwin.h (LINK_SPEC): Pass -mmacosx-version-min to the
2246 linkers as -macosx_version_min.
2247
4802062c
R
22482005-08-31 J"orn Rennecke <joern.rennecke@st.com>
2249
2250 PR target/21255
2251 * sh.c (print_operand, %R and %S): Add handling of floating point
2252 registers, memory, constants and invalid operands.
2253
d4feded7
DB
22542005-08-31 Daniel Berlin <dberlin@dberlin.org>
2255
2256 * ipa-pure-const.c: Change dump name.
2257
d16093fd
UB
22582005-08-31 Uros Bizjak <uros@kss-loka.si>
2259
2260 PR target/23570
2261 * config/i386/sse.md (*sse_concatv2sf): Change operand 2 constraint
2262 to "reg_or_0_operand".
2263 (sse2_loadld): Change operand 1 constraint to "reg_or_0_operand".
2264
c9eb8097
DJ
22652005-08-31 Dale Johannesen <dalej@apple.com>
2266
2267 * loop-iv.c (iv_number_of_iterations): Fix overflow check for
2268 loops that count down.
2269
be0c514c
RH
22702005-08-31 Richard Henderson <rth@redhat.com>
2271
35210087 2272 PR rtl-opt/23601
be0c514c
RH
2273 * reload1.c (reload): Set MEM_NOTRAP_P in spill slots.
2274 (fixup_eh_region_note): New.
2275 (reload_as_needed): Call it.
2276 (fixup_abnormal_edges): Allow all throwing insns to be deleted;
2277 don't call find_many_sub_basic_blocks; call verify_flow_info.
2278 * function.c (assign_stack_local_1): Set MEM_NOTRAP_P.
2279 (keep_stack_depressed): Likewise.
2280 (assign_stack_temp_for_type): Likewise; use adjust_address_nv.
2281
5d3018ce
RH
22822005-08-31 Richard Henderson <rth@redhat.com>
2283
2284 * config/i386/i386.c (ix86_function_ok_for_sibcall): Fix test for
2285 fp return matching.
2286
dc38a610
FJ
22872005-08-31 Fariborz Jahanian <fjahanian@apple.com>
2288
759915ca
EC
2289 * expr.c (expand_expr_real_1): Compare size of address
2290 mode to target's address mode size in deciding expansion of
dc38a610
FJ
2291 the constant address.
2292
c5250139
RG
22932005-08-31 Richard Guenther <rguenther@suse.de>
2294
2295 PR middle-end/23477
2296 * expr.c (all_zeros_p): New function.
2297 (expand_expr_real_1): Handle the case of an all-zero
2298 non-addressable constructor separately.
2299
ab173928
AS
23002005-08-31 Adrian Straetling <straetling@de.ibm.com>
2301
2302 * builtins.c: (expand_builtin_strcpy, expand_builtin_strcat): Change
2303 arguments, adjust all callers.
2304 (expand_builtin_strcat): Rewrite to call strcpy instead of mempcpy.
2305
fabaaf36
RH
23062005-08-30 Richard Henderson <rth@redhat.com>
2307
2308 PR target/23630
2309 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Use gen_lowpart
2310 whenever the mode sizes match.
2311
40b0345d
AM
23122005-08-31 Alan Modra <amodra@bigpond.net.au>
2313
2314 * calls.c (load_register_parameters): Fix comment typo.
2315 * expr.c (emit_push_insn): Comment formatting.
2316
c2e493dc
ILT
23172005-08-30 Ian Lance Taylor <ian@airs.com>
2318
2319 * config/i386/x-cygwin (host-cygwin): Change dependency from
2320 hosthooks-def.h to $(HOSTHOOKS_DEF_H).
2321
9fc5fa7b
GK
23222005-08-29 Geoffrey Keating <geoffk@apple.com>
2323
2324 * config/i386/i386.c (ix86_expand_vector_init_one_var): Don't modify
2325 parts of 'vals'.
2326
f471f0fc 23272005-08-29 Andrew Pinski <pinskia@physics.uc.edu>
57247f4b
AP
2328
2329 PR middle-end/23408
2330 * ipa-inline.c (cgraph_decide_inlining_incrementally): Remove the
2331 call to ggc_collect.
2332
f471f0fc 23332005-08-29 Paolo Bonzini <bonzini@gnu.org>
3a6ebcdc
PB
2334
2335 PR bootstrap/21268
2336 * Makefile.in (ALL_CPPFLAGS): Include $(INCLUDES) at the
2337 beginning. Remove $(INCLUDES) from all the rules, if following
2338 $(ALL_CPPFLAGS) or $(BUILD_CPPFLAGS).
2339
f28d3046
JJ
23402005-08-29 Jakub Jelinek <jakub@redhat.com>
2341
2342 PR middle-end/23484
2343 * builtins.c (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
2344 fold_builtin_strncpy_chk, fold_builtin_snprintf_chk): If len is
2345 not constant, but maxlen is, don't set len to maxlen, rather
2346 set maxlen to len if len is a constant.
2347
37261a5c
ZD
23482005-08-29 Zdenek Dvorak <dvorakz@suse.cz>
2349
2350 PR tree-optimization/23475
2351 * tree-ssa-loop-ivcanon.c (remove_empty_loop): Update frequencies
2352 and counts.
2353
46c5394b
DB
23542005-08-28 Daniel Berlin <dberlin@dberlin.org>
2355
2356 Fix PR middle-end/22455
2357
2358 * fold-const.c (fold_checksum_tree): Adjust for now-largest tree size.
2359 Checksum only the parts of the tree that exist for the tree code.
2360
ea407814
DJ
23612005-08-28 Dale Johannesen <dalej@apple.com>
2362
2363 * config/i386/i386.c (nocona_cost): Increase MOVE_RATIO.
2364
87e71ff4
AP
23652005-08-28 Andrew Pinski <pinskia@physics.uc.edu>
2366
2367 * tree-vrp.c: Remove obsolete comment in front of vrp_initialize.
2368
490272b4
RH
23692005-08-28 Richard Henderson <rth@redhat.com>
2370
2371 * stor-layout.c (finalize_type_size): Revert workaround from 08-26.
2372 * tree.c (make_node_stat): Use BITS_PER_UNIT instead of alignment
2373 of char_type_node.
2374
a6017253
JJ
23752005-08-28 Jakub Jelinek <jakub@redhat.com>
2376
2377 PR ada/23593
2378 * builtins.c (get_memory_rtx): Don't strip nops
2379 in between COMPONENT_REFs.
2380
412f8986
AP
23812005-08-27 Andrew Pinski <pinskia@physics.uc.edu>
2382
2383 PR middle-end/23463
2384 * gimplify.c (gimplify_modify_expr_rhs): Remove check for zero sized
2385 types.
2386 (gimplify_modify_expr): Check for zero sized types and gimplify the
2387 rhs and lhs as statements.
2388
147a8fb1
JDA
23892005-08-27 John David Anglin <dave.anflin@nrc-cnrc.gc.ca>
2390
2391 PR libgcj/23508
2392 * pa/linux-unwind.h (pa32_fallback_frame_state): Use r0 slot in frame
2393 state for return address column of signal frames.
2394
ec53fc93
DE
23952005-08-27 David Edelsohn <edelsohn@gnu.org>
2396
2397 PR target/23539
fabaaf36
RH
2398 * config/rs6000/rs6000.c (expand_block_clear): Use HImode when
2399 bytes >= 2 not bytes == 2.
ec53fc93
DE
2400 (expand_block_move): Same.
2401
f013cadc
RG
24022005-08-27 Richard Guenther <rguenther@suse.de>
2403
2404 PR target/23575
2405 * config/i386/sse.md (sse2_movsd): Add missing closing
2406 braces.
2407
0cd6c85a
PB
24082005-08-27 Paul Brook <paul@codesourcery.com>
2409
2410 * genrecog.c (enum decision_type): Add DT_num_insns.
2411 (struct decision_test): Add u.num_insns.
2412 (add_to_sequence): Add DT_num_insns test.
2413 (maybe_both_true_2, nodes_identical_1): Handle DT_num_insns.
2414 (write_cond, debug_decision_2): Ditto.
2415 (change_state): Assume peep2_next_insn never fails.
2416 Remove "afterward" argument.
2417 (write afterward, write_tree): Update to match.
2418 * recog.c (peep2_current_count): New variable.
2419 (peep2_next_insn): Check it.
2420 (peephole2_optimize): Set peep2_current_count.
2421 * recog.h (peep2_current_count): Declare.
2422
1b0d2d17
JC
24232005-08-26 Josh Conner <jconner@apple.com>
2424
2425 PR middle-end/23584
2426 * ipa-pure-const.c (check_tree): Check for volatile-ness
2427 when considering a dereference.
2428
24b7d7c3
JJ
24292005-08-27 Jakub Jelinek <jakub@redhat.com>
2430
2431 * rtl.h (MEM_IN_STRUCT_P): Fix comment typo.
2432
435bb2a1
JJ
24332005-08-26 Jakub Jelinek <jakub@redhat.com>
2434
2435 PR rtl-optimization/23561
2436 * builtins.c (get_memory_rtx): Add LEN argument. If MEM_EXPR is
2437 a COMPONENT_REF, remove all COMPONENT_REF from MEM_EXPR unless
2438 at most LEN bytes long memory fits into the field.
2439 (expand_builtin_memcpy, expand_builtin_mempcpy, expand_movstr,
2440 expand_builtin_strncpy, expand_builtin_memset, expand_builtin_memcmp,
2441 expand_builtin_strcmp, expand_builtin_strncmp): Adjust callers.
2442
52e772ba
RH
24432005-08-26 Richard Henderson <rth@redhat.com>
2444
2445 PR rtl-opt/23560
2446 * loop.c (biased_biv_may_wrap_p): New.
2447 (maybe_eliminate_biv_1): Use it to suppress non-equality
2448 comparison transformations. Delete disabled code.
2449
8f34bde6
ILT
24502005-08-26 Ian Lance Taylor <ian@airs.com>
2451
2452 * combine.c (make_extraction): Avoid reference outside object.
2453
d6cde480
R
24542005-08-26 J"orn Rennecke <joern.rennecke@st.com>
2455
2456 * stor-layout.c (finalize_type_size): Restore behaviour for
2457 non-aggregate types to the status quo ante of the patch for
2458 pr 23467. Document why it matters.
2459
39627fed
JJ
24602005-08-26 Jakub Jelinek <jakub@redhat.com>
2461
2462 PR c/23506
2463 * c-common.c (c_common_nodes_and_builtins): Increase builtin_types
2464 array by one element, initialize the BT_LAST element with NULL.
2465
297abd0d
DE
24662005-08-26 David Edelsohn <edelsohn@gnu.org>
2467
2468 * config/rs6000/rs6000.md (eq<mode>_compare): Only enable when
2469 optimizing for size.
2470 (plus_eqsi): Same.
2471 (compare_plus_eqsi): Same.
2472 (plus_eqsi_compare): Same.
2473 (neg_eq0<mode>): Same.
2474 (neg_eq<mode>): Same.
2475
2476 * config/rs6000/aix52.h (PROCESSOR_DEFAULT): Change to
2477 PROCESSOR_POWER4.
2478
2ec6cd51
NC
24792005-08-26 Nick Clifton <nickc@redhat.com>
2480
2481 * config/v850/v850.c (ep_memory_operand): Return FALSE if
2482 TARGET_EP is not defined.
2483 * config/v850/c850.h (TARGET_CPU_CPP_BUILTINS): Define __EP__ if
2484 TARGET_EP is enabled.
2485 (OPTIMIZATION_OPTIONS): Do not define MASK_EP when optimizing.
2486 * config/v850/v850.md (save_all_interrupt): Only use the EP
2487 register if TARGET_EP is defined.
2488 (restore_all_interrupt): Likewise.
2489 * config/v850/lib1funcs.asm: Update functions so that the EP
2490 register is only used if __EP__ is defined.
2491
e296c00c
DU
24922005-08-26 David Ung <davidu@mips.com>
2493
2494 * config/mips/mips.c (mips_expand_prologue): Handle case when
2495 generating for MIPS16 and the outgoing argument area is more than
2496 SMALL_OPERAND. Use the frame pointer as temporary to generate the
2497 add instruction.
2498
55d61dba
PW
24992005-08-26 Paul Woegerer <paul.woegerer@nsc.com>
2500
2501 * config/crx/crx.md: Make doloop_end pattern usage controllable
2502 via mloop-nesting=<max-nesting> command line switch. Make sure
2503 the combiner cannot use doloop_end_<mode> in an illegal way.
2504 * config/crx/crx.c: Use regs up to r6 for argument passing.
2505 Refine crx_address_cost (non cst4 displacements are expensive).
2506 * config/crx/crx.opt: Add switch for mloop-nesting=.
2507
742090fc
AS
25082005-08-26 Adrian Straetling <straetling@de.ibm.com>
2509
2510 * config/s390/s390.md: ("movstr", "*movstr"): Add patterns.
2511 (UNSPEC_MVST): New constant.
2512
db21e1d0
AK
25132005-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
2514
2515 * config/s390/predicates.md ("shift_count_operand", "setmem_operand"):
2516 Reject operands containing eliminable registers.
2517 * testsuite/gcc.dg/20050825-1.c: New testcase.
2518
0621d71a
PB
25192005-08-24 Paolo Bonzini <bonzini@gnu.org>
2520 Jan Hubicka <jh@suse.cz>
2521
2522 * regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.
2523
e2889823
PB
25242005-08-24 Paolo Bonzini <bonzini@gnu.org>
2525
2526 PR tree-optimization/23546
2527 * tree-ssa-loop-im.c (for_each_index): Handle INTEGER_CST
2528 and REAL_CST nodes.
2529
6f48c21a
PS
25302005-08-24 Pete Steinmetz <steinmtz@us.ibm.com>
2531
2532 * params.def (PARAM_MIN_SPEC_PROB): New.
2533 * sched-rgn.c (MIN_PROBABILITY): Delete.
2534 (compute_trg_info): Convert to PARAM_VALUE.
2535 * doc/invoke.texi (param): Document min-spec-prob.
2536
1a1e6a9d
FJ
25372005-08-24 Fariborz Jahanian <fjahanian@apple.com>
2538
2539 * config/darwin.h: define __PIC__
2540 * config/rs6000/darwin.h: Add SUBTARGET_OS_CPP_BUILTINS to
2541 TARGET_OS_CPP_BUILTINS macro.
2542
130869aa
PB
25432005-08-24 Paolo Bonzini <bonzini@gnu.org>
2544
2545 * config/rs6000/rs6000.md: Fix thinko in the peephole2 I added
2546 yesterday.
2547
b9a66240
ZD
25482005-08-24 Zdenek Dvorak <dvorakz@suse.cz>
2549
2550 * bb-reorder.c (copy_bb, duplicate_computed_gotos): Add argument
2551 to duplicate_block.
2552 * cfghooks.c (duplicate_block): Added position where to place
2553 new block as argument.
2554 * cfghooks.h (duplicate_block): Declaration changed.
2555 * cfglayout.c (copy_bbs): Add argument after. Pass it to
2556 duplicate_block.
2557 * cfglayout.h (copy_bbs): Declaration changed.
2558 * cfgloop.h (loop_version): Declaration changed.
2559 * cfgloopmanip.c (duplicate_loop_to_header_edge): Pass
2560 position to copy_bbs.
2561 (loop_version): Pass position to duplicate_loop_to_header_edge.
2562 Add place_after argument and position new blocks according to
2563 it.
2564 * modulo-sched.c (sms_schedule): Pass place_after argument
2565 to loop_version.
2566 * tracer.c (tail_duplicate): Pass argument to duplicate_block.
2567 * tree-cfg.c (split_edge_bb_loc): New function.
2568 (tree_split_edge, tree_duplicate_sese_region): Use split_edge_bb_loc
2569 to determine position of new blocks.
2570 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass argument
2571 to loop_version.
2572 * tree-ssa-threadupdate.c (create_block_for_threading): Pass
2573 argument to duplicate_block.
2574 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg):
2575 Pass position to copy_bbs.
2576
87de2376
ZD
25772005-08-24 Zdenek Dvorak <dvorakz@suse.cz>
2578
2579 * fold-const.c (ptr_difference_const): Use
2580 cst_and_fits_in_hwi instead of host_integerp.
2581
14a07c92
PB
25822005-08-24 Paolo Bonzini <bonzini@gnu.org>
2583
2584 * config/darwin.c (gen_pic_offset): New.
2585 (machopic_indirect_data_reference, machopic_legitimize_pic_address):
2586 Use it.
2587
d49195a3
ZD
25882005-08-23 Zdenek Dvorak <dvorakz@suse.cz>
2589
2590 PR tree-optimization/23486
2591 * tree-ssa-loop.c (pass_scev_cprop): Add TODO_update_ssa_only_virtuals.
2592
2eab15c9
PE
25932005-08-23 Phil Edwards <phil@codesourcery.com>
2594
2595 * config.gcc (*-*-vxworks*): Update tm_file, add extra_options,
2596 remove use_collect2.
2597 (powerpc-wrs-vxworks): Update, split out *-*-vxworksae target.
2598
2599 * target-def.h (TARGET_HAVE_CTORS_DTORS): Allow target
2600 configuration files to override the default value.
2601
2602 * config/t-vxworks: Remove INSTALL_ASSERT_H. Define STMP_FIXPROTO,
2603 EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS.
2604 * config/vx-common.h: New file, split out from...
2605 * config/vxworks.h: here. Update for VxWorks 6.x and RTP mode.
2606 * config/vxworksae.h: New file, for VxWorks AE.
2607 * config/vxworks.opt: New file.
2608 * config/vxlib.c: Update for VxWorks 6.
2609
2610 * config/rs6000/t-vxworks (MULTILIB_OPTIONS): New list. Adjust
2611 other MULTILIB_* variables appropriately.
2612 (LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS): Correct from t-ppccomm.
2613 * config/rs6000/t-vxworksae: New file, adjust multilibs for AE.
2614 * config/rs6000/vxworks.h: Update for VxWorks 6.
2615 * config/rs6000/vxworksae.h: New file, mostly placeholder for now.
2616
2501b167
AP
26172005-08-23 Andrew Pinski <pinskia@physics.uc.edu>
2618
2619 PR target/20799
2620 * config/darwin.c (machopic_select_section): Remove the hack to
2621 mark "::operator new" and "::operator delete" for coalescing
2622 even though they are not weak.
2623
d82bf747
AM
26242005-08-24 Alan Modra <amodra@bigpond.net.au>
2625
2626 * configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
2627 * configure: Regenerate.
2628
4d3c798d
PB
26292005-08-23 Paolo Bonzini <bonzini@gnu.org>
2630
2631 PR middle-end/23517
2632 * fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert
2633 between vectors.
2634 * convert.c (convert_to_integer, convert_to_vector): Likewise.
2635 * tree-vect-generic.c (tree_vec_extract, expand_vector_operations_1):
2636 Likewise.
2637
28d0e143
PB
26382005-08-23 Paolo Bonzini <bonzini@gnu.org>
2639
2640 * config/rs6000/predicates.md (equality_operator): New.
2641 * config/rs6000/rs6000.md: Rewrite as a peephole2 the split for
2642 comparison with a large constant.
2643
6194fd98
MM
26442005-08-23 Mark Mitchell <mark@codesourcery.com>
2645
2646 * hwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.
2647
39d67d5b
R
26482005-08-23 J"orn Rennecke <joern.rennecke@st.com>
2649
a11c004b
R
2650 * sh.c (sh_builtin_saveregs): If the number of to-be-saved fp
2651 registers is even, and we have a hardware double precision fp,
2652 align the buffer.
2653 (sh_gimplify_va_arg_expr): For floating point arguments, consider
2654 size of current argument when checking if argument was passed in
2655 registers.
2656
2657 * sh.c (sh_attr_renesas_p): Handle error_mark_node.
2658
39d67d5b
R
2659 PR middle-end/23467
2660 * stor-layout.c (finalize_type_size): Dont override
2661 existing alignment with a smaller alignment from the mode.
2662
37b8a73b
SP
26632005-08-23 Sebastian Pop <pop@cri.ensmp.fr>
2664
2665 * lambda-code.c (lambda_vector_lexico_pos): Moved...
2666 * lambda.h (lambda_vector_lexico_pos): ... here.
2667 * tree-data-ref.c (build_classic_dist_vector): Return false when
2668 the distance vector is lexicographically negative.
2669
ce8f9416
SP
26702005-08-23 Sebastian Pop <pop@cri.ensmp.fr>
2671
2672 PR tree-optimization/23511
759915ca 2673 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Don't
ce8f9416
SP
2674 handle cases where TYPE_MIN_VALUE or TYPE_MAX_VALUE are NULL_TREE.
2675
73ed17ff
JJ
26762005-08-23 Jakub Jelinek <jakub@redhat.com>
2677
2678 PR tree-optimization/22043
2679 * tree.h (count_type_elements): Add ALLOW_FLEXARR argument.
2680 * expr.c (count_type_elements): Add ALLOW_FLEXARR argument.
2681 If ALLOW_FLEXARR, handle types ending with flexible array member.
2682 Pass false as second argument to recursive count_type_elements calls.
2683 (categorize_ctor_elements_1, mostly_zeros_p): Pass false as second
2684 argument to count_type_elements call.
2685 * tree-sra.c (decide_block_copy): Likewise.
2686 * gimplify.c (gimplify_init_constructor): If num_type_elements < 0
2687 for a constant-sized object, set cleared as well. Pass true as
2688 second argument to count_type_elements call.
2689
18b10a72
AM
26902005-08-23 Alan Modra <amodra@bigpond.net.au>
2691
2692 PR target/21571
2693 * config/rs6000/rs6000.c (rs6000_legitimate_small_data_p): Rename
2694 from legitimate_small_data_p, and make global. Update use.
2695 Remove forward declaration.
2696 * config/rs6000/rs6000-protos.h (rs6000_legitimate_small_data_p):
2697 Declare.
2698 * config/rs6000/rs6000.md (movdf_hardfloat32): Allow small data mems.
2699
d0515b39
DE
27002005-08-23 David Edelsohn <edelsohn@gnu.org>
2701
2702 * config/rs6000/rs6000.md (eq<mode>): Use output operand instead
2703 of scratch intermediates.
2704 (eq<mode>_compare): Same.
2705 (neg_eq0<mode>): New.
2706 (neg_eq<mode>): Convert to define_insn_and_split.
2707
c1fa753e
AM
27082005-08-23 Alan Modra <amodra@bigpond.net.au>
2709
2710 PR target/23070
2711 * config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to
2712 stdarg functions, set/clear the fp marker even when no variable
2713 args are passed.
2714 * config/rs6000/sysv4.opt (mprototype): Describe.
2715
27004606
JJ
27162005-08-22 Jakub Jelinek <jakub@redhat.com>
2717
2718 PR rtl-optimization/23478
2719 * regs.h (reg_info): Add throw_calls_crossed.
2720 (REG_N_THROWING_CALLS_CROSSED): Define.
2721 * flow.c (allocate_reg_life_data): Initialize
2722 REG_N_THROWING_CALLS_CROSSED.
2723 (propagate_one_insn, attempt_auto_inc): Update
2724 REG_N_THROWING_CALLS_CROSSED.
2725 * global.c (global_alloc): Don't allocate pseudos across
2726 calls that may throw.
2727
201ae393
AP
27282005-08-22 Andrew Pinski <pinskia@physics.uc.edu>
2729
2730 PR c/18715
2731 * c-common.c (c_do_switch_warnings): Look for a node where the enum's
2732 value is inbetween the range if we did not find an exact match.
2733
c85ba4fb
AH
27342005-08-22 Aldy Hernandez <aldyh@redhat.com>
2735
2736 * doc/invoke.texi (Option Summary): Add ms1 options.
2737 * doc/extend.texi: Document interrupt handler attribute for ms1.
2738 * doc/md.texi: Document ms1 constraints.
2739 * config.gcc: Add ms1-*-elf.
2740 * config/ms1/ms1.h: New.
2741 * config/ms1/ms1.c: New.
2742 * config/ms1/ms1.md: New.
2743 * config/ms1/ms1-protos.h: New.
2744 * config/ms1/ABI.txt: New.
2745 * config/ms1/crti.asm: New.
2746 * config/ms1/crtn.asm: New.
2747 * config/ms1/lib2extra-funcs.c: New.
2748 * config/ms1/t-ms1: New.
2749 * config/ms1/ms1.opt: New.
2750
70a39602
IR
27512005-08-22 Ira Rosen <irar@il.ibm.com>
2752
2753 * config/rs6000/altivec.md (xorv4sf3): New.
2754 (negv4sf2, neg<mode>2): Likewise.
2755
85199961
L
27562005-08-21 H.J. Lu <hongjiu.lu@intel.com>
2757
2758 PR target/23485
2759 * config/ia64/ia64.md (divsi3): Check divide by zero.
2760 (udivsi3): Likewise.
2761 (divdi3): Likewise.
2762 (udivdi3): Likewise.
2763
1125164c
JJ
27642005-08-21 Jakub Jelinek <jakub@redhat.com>
2765
2766 * simplify-rtx.c (simplify_immed_subreg) <case CONST_DOUBLE>: Only clear
2767 up to elem_bitsize bits, not max_bitsize.
2768
3c0c8f9d
SP
27692005-08-21 Sebastian Pop <pop@cri.ensmp.fr>
2770
2771 PR tree-optimization/23433
85199961
L
2772 * tree-chrec.c (chrec_apply): Translate INTEGER_CST to a
2773 REAL_CST when the type is SCALAR_FLOAT_TYPE_P.
3c0c8f9d 2774
a1596edc
SP
27752005-08-21 Sebastian Pop <pop@cri.ensmp.fr>
2776
2777 PR tree-optimization/23434
85199961
L
2778 * tree-ssa-loop-niter.c (proved_non_wrapping_p): Give up when
2779 the iteration bound is not an INTEGER_CST.
a1596edc 2780
429268fc
DN
27812005-08-21 Dorit Nuzman <dorit@il.ibm.com>
2782
2783 * tree-vect-transform.c (get_initial_def_for_reduction): Set
2784 need_epilog_adjust back to false for MIN/MAX case. Set *scalar_def to
2785 NULL if need_epilog_adjust is false.
2786 (vect_create_epilog_for_reduction): Variable adjust_in_epilog removed.
2787 Case 3 always peels first itration, not just for PLUS case, and no need
2788 to use scalar_initial_def here. Create an epilog adjustment only if
2789 scalar_initial_def is not NULL.
2790
759915ca 2791 (vectorizable_reduction): Remove assert.
429268fc 2792
eea1d14a
L
27932005-08-20 H.J. Lu <hongjiu.lu@intel.com>
2794
2795 PR target/23485
2796 * config/ia64/lib1funcs.asm (__divdi3): Check divide by zero.
2797 (__moddi3): Likewise.
2798 (__udivdi3): Likewise.
2799 (__umoddi3): Likewise.
2800 (__divsi3): Likewise.
2801 (__modsi3): Likewise.
2802 (__udivsi3): Likewise.
2803 (__umodsi3): Likewise.
2804
5e34206b
JJ
28052005-08-20 Jakub Jelinek <jakub@redhat.com>
2806
2807 * tree-pass.h (TDF_GRAPH): Define.
2808 * tree-dump.c (dump_options): Don't set TDF_GRAPH in "all".
2809 * passes.c (finish_optimization_passes): Only call
2810 finish_graph_dump_file if TDF_GRAPH is set.
2811 (execute_one_pass): Only call clean_graph_dump_file if dump_file !=
2812 NULL. Set TDF_GRAPH bit.
2813 (execute_todo): Call print_rtl_graph_with_bb if TDF_GRAPH is set.
2814
2591db65
RE
28152005-08-20 Richard Earnshaw <richard.earnshaw@arm.com>
2816
2817 * arm.h (arm_stack_offsets): Add locals_base field.
2818 * arm.c (arm_get_frame_offsets): Compute it.
2819 (thumb_compute_initial_elimination offset): Make the Thumb frame
2820 pointer point to the base of the local variables.
2821 (thumb_expand_prologue): Update accordingly.
2822 (thumb_expand_epilogue): Likewise.
2823
2824 * arm.md (thumb_movhi_clobber): Make this insn a define_expand. Change
2825 mode of clobbered scratch to DImode. Handle a case that's known to
2826 need this.
2827
fc437ce9
DE
28282005-08-19 David Edelsohn <edelsohn@gnu.org>
2829
2830 * config/rs6000/rs6000.md (gt0<mode>): Delete.
2831 (gt0<mode>_compare): Delete.
2832 (neg_gt0<mode>): Delete.
2833
c414ac1d
EC
28342005-08-19 Eric Christopher <echristo@apple.com>
2835
2836 * optabs.h: Change CTI_ to COI_.
2837 * optabs.c: Ditto.
2838
c8f27794
JW
28392005-08-19 James E Wilson <wilson@specifix.com>
2840
2841 * builtins.c (expand_builtin_return_addr): Set
2842 current_function_accesses_prior_frames when count != 0. Use
2843 frame_pointer_rtx when count == 0.
2844 * function.h (struct function): Add accesses_prior_frames field.
2845 (current_function_accesses_prior_frames): Define.
2846 * reload1.c (init_elim_table): Check
2847 current_function_accesses_prior_frames.
2848 * doc/tm.texi (INITIAL_FRAME_ADDRESS_RTX): Update docs.
2849
e3594cb3
DN
28502005-08-19 Diego Novillo <dnovillo@redhat.com>
2851
2852 * tree-cfgcleanup.c (cleanup_tree_cfg): Fix flowgraph change
2853 indicator. Return true if the flowgraph changed during
2854 cleanup.
2855
52270a3c
DN
28562005-08-19 Diego Novillo <dnovillo@redhat.com>
2857
2858 PR 23476
2859 * tree-cfgcleanup.c (cleanup_control_expr_graph): Fold the
2860 conditional expression before testing its value.
2861
5c1c631e
DN
28622005-08-19 Diego Novillo <dnovillo@redhat.com>
2863
2864 * doc/invoke.texi: Fix documentation for -ftree-dominator-opts.
2865
3d91803a
DP
28662005-08-19 Devang Patel <dpatel@apple.com>
2867
2868 PR tree-optimization/23048
2869 * tree-if-conv.c (if_convertible_bb_p): Supply basic_block as
2870 third parameter. Check whether latch is dominated by exit
2871 block or not.
2872 (if_convertible_loop_p): Supply exit block itself to
2873 if_convertible_bb_p.
c414ac1d 2874
e55ef7f4
RE
28752005-08-19 Richard Earnshaw <richard.earnshaw@arm.com>
2876
2877 PR target/23473
2878 * arm.md (arm_load_pic_register): Change argument to the mask of
c414ac1d 2879 saved registers. Call thumb_find_work_register if we need a
e55ef7f4 2880 scratch register on Thumb.
c414ac1d 2881 (arm_expand_prologue): Pass empty register set to
e55ef7f4
RE
2882 arm_load_pic_register.
2883 (thumb_expand_prologue): Pass live_regs_mask directly to
2884 arm_load_pic_register.
2885 * arm-protos.h (arm_load_pic_register): Update prototype.
2886
d102596b
JR
28872005-08-19 J"orn Rennecke <joern.rennecke@st.com>
2888
2889 * sh.c (find_sole_member): New function.
2890 (sh_gimplify_va_arg_expr): Use it. Allow RECORD_TYPE mode mismatch
2891 if the record's alignment is larger than the size of its only member.
2892
a132dad6
RE
28932005-08-19 Richard Earnshaw <richard.earnshaw@arm.com>
2894
2895 PR target/23436
2896 * arm.c (thumb_legitimize_reload_address): New function.
2897 * arm-protos.h (thumb_legitimize_reload_address): Add prototype.
2898 * arm.h (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Call it.
2899
4221d00a
PW
29002005-08-19 Paul Woegerer <paul.woegerer@nsc.com>
2901
2902 * config/crx/crx.c: Implement crx_decompose_address. Reject
2903 symbolic displacements since CRX register relative adressing
2904 mode can't handle unsigned 32-bit values as displacements.
2905 * config/crx/crx.h: Simplify definitions, remove redundant
2906 parenthesis and obsolete macros.
2907 * config/crx/crx.opt: Add new switch for debugging addresses.
2908 * config/crx/crx-protos.h: Add new declarations for above.
2909
1581a9a1
AP
29102005-08-19 Andrew Pinski <pinskia@physics.uc.edu>
2911
2912 PR middle-end/20624
2913 * gimple-low.c (block_may_fallthru): Handle CLEANUP_POINT_EXPR by
2914 looking past it.
2915
52a6edcc
KG
29162005-08-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2917
2918 * collect2.c (dup2): Delete.
2919 * configure.ac: Don't check for dup2.
2920
2921 * config.in, configure: Regenerate.
2922
8a2209bf
R
29232005-08-18 J"orn Rennecke <joern.rennecke@st.com>
2924
2925 * sh.c (sh_gimplify_va_arg_expr): Loop to substitute a RECORD_TYPE
2926 record with the type of its only member.
2927
1e24ce83
DE
29282005-08-18 David Edelsohn <edelsohn@gnu.org>
2929
2930 * config/rs6000/rs6000.md (ltu<mode>_compare): Convert to
2931 define_insn_and_split.
2932 (plus_ltu<mode>_compare): Same.
2933 (gtu<mode>_compare): Same.
2934 (plus_gtu<mode>_compare): Same.
2935
90ff949f
DN
29362005-08-18 Dorit Nuzman <dorit@il.ibm.com>
2937
2938 PR tree-optimization/22228
1e24ce83
DE
2939 * tree-ssa-loop (pass_vectorize): Add TODO_verify_loops to
2940 todo_flags_start.
90ff949f
DN
2941 * tree-vect-transform.c (vect_transform_loop): Mark the variables that
2942 are recorded in vect_vnames_to_rename for renaming.
2943 * tree-vectorizer.c (vect_vnames_to_rename): New global bitmap.
2944 (slpeel_update_phi_nodes_for_guard1): Record virtual vars for renaming
2945 in vect_vnames_to_rename.
2946 (vectorize_loops): Allocate and free the vect_vnames_to_rename bitmap.
2947 * tree-vectorizer.h (vect_vnames_to_rename): New extern variable.
2948
f17db6cd
JH
29492005-08-18 Jan Hubicka <jh@suse.cz>
2950
2951 PR c++/22034
2952 * cgraphunit.c (cgraph_varpool_assemble_pending_decls): Emit debug
2953 info only for local statics, not for member variables.
2954
4286d8ce
VR
29552005-08-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2956
2957 * tree-data-ref.c (analyze_siv_subscript_cst_affine): Fix comment typo.
2958
b06df647
VR
29592005-08-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2960
2961 * c-typeck.c (designator_errorneous): Rename to designator_erroneous.
2962
75634129
AP
29632005-08-18 Andrew Pinski <pinskia@physics.uc.edu>
2964
2965 PR middle-end/16045
2966 * builtins.c (fold_builtin): Create a new NOP_EXPR all the time.
2967
9bc2a5cb
JW
29682005-08-17 James E Wilson <wilson@specifix.com>
2969
2970 * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
2971 array size check.
2972
a2dba291
DE
29732005-08-17 David Edelsohn <edelsohn@gnu.org>
2974
2975 * config/rs6000/rs6000.md (leu<mode>): Convert to mode macro.
2976 (leu<mode>_compare): Same.
2977 (plus_leu<mode>): Same.
2978 (neg_leu<mode>): Same.
2979 (and_neg_leu<mode): Same.
2980 (ltu<mode>_compare): Same.
2981 (plus_ltu<mode>): Same.
2982 (geu<mode>): Same.
2983 (geu<mode>_compare): Same.
2984 (plus_geu<mode>): Same.
2985 (neg_geu<mode>): Same.
2986 (and_neg_geu<mode>): Same.
2987 (plus_gt<mode>): Same.
2988 (gtu<mode>_compare): Same.
2989 (plus_gtu<mode>): Same.
2990
aa29dfeb 29912005-08-17 Erik Christiansen <erik@dd.nec.com.au>
c414ac1d 2992
aa29dfeb
EC
2993 * config/v850/lib1funcs.asm (callt_save_interrupt): Fix comment typos.
2994 Move call_table_data to end. Delete spurious .text.
2995 (callt_save_all_interrupt): Fix comment typo.
2996
90e0c734
JW
29972005-08-17 James E Wilson <wilson@specifix.com>
2998 Kevin Winchester <winchester@amirix.com>
2999
3000 PR target/21684
3001 * config/mcore/mcore.h (SHIFT_COUNT_TRUNCATED): Define to 0.
3002
87bb8864
UB
30032005-08-17 Uros Bizjak <uros@kss-loka.si>
3004
3005 PR target/23268
3006 * config/i386/i386.md ("*fist<mode>2_1"): New pattern.
3007 ("lrint<mode>2"): Change expander to use "*fist<mode>2_1" pattern.
3008
dd0ae678
R
30092005-08-17 J"orn Rennecke <joern.rennecke@st.com>
3010
8a2209bf
R
3011 * sh.c (sh_gimplify_va_arg_expr): Don't substitute a RECORD_TYPE
3012 record with the type of its only member if the modes don't match.
3013
a2dba291 3014 * varasm.c (decode_reg_name): Skip empty additional register names.
dd0ae678 3015
d28cbb07
ZD
30162005-08-16 Zdenek Dvorak <dvorakz@suse.cz>
3017
3018 * tree-ssa-loop-im.c (MAX_LSM_NAME_LENGTH, lsm_tmp_name,
3019 lsm_tmp_name_length): New.
3020 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): New functions.
3021 (schedule_sm): Use get_lsm_tmp_name instead of "lsm_tmp".
3022
39bd07e8
UW
30232005-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3024 Andreas Krebbel <krebbel1@de.ibm.com>
3025
3026 * config.gcc: Added z9-109 switch.
3027 * config/s390/2084.md ("x_int", "x_agen", "x_lr", "x_la", "x_larl",
3028 "x_load", "x_store", "x_branch", "x_call", "x_mul_hi", "x_mul_sidi",
c414ac1d
EC
3029 "x_div", "x_sem", "x_cs", "x_vs", "x_stm", "x_lm", "x_other",
3030 "x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
39bd07e8
UW
3031 "x_floadsf", "x_fstore_df", "x_fstoresf", "x_ftoi", "x_itof"): Enable
3032 for "z9_109" cpu attribute.
3033 * config/s390/s390.c (z9_109_cost): New processor cost structure.
3034 (CONST_OK_FOR_Os, CONST_OK_FOR_Op, CONST_OK_FOR_On): New macros.
3035 (s390_handle_arch_option): Added z9-109 switch.
3036 (override_options): Set respective cost function for z9-109.
3037 (s390_const_ok_for_constraint_p): New constraints Os, Op, On.
3038 (legitimate_reload_constant_p): Accept extended immediates.
3039 (print_operand): Three new output modifiers added: k, m and o.
3040 (s390_adjust_priority, s390_issue_rate): Handle Z9_109 like Z990.
3041 (s390_output_mi_thunk): Use extended immediate when possible.
3042 * config/s390/s390.h (processor_flags): Added PF_EXTIMM.
3043 (TARGET_CPU_EXTIMM, TARGET_EXTIMM): New macros.
3044 (CONSTRAINT_LEN): Added length of O constraint.
3045 (CLZ_DEFINED_VALUE_AT_ZERO): Definition added.
3046 * config/s390/s390.md ("cpu"): New value z9_109 added.
c414ac1d 3047 ("*tstdi_extimm", "*tstdi_ccconly_extimm", "*tstsi_extimm",
39bd07e8
UW
3048 "*tstsi_cconly_extimm", "*movdi_64extimm", "*extendhidi2_extimm",
3049 "*extendqidi2_extimm", "*extendhisi2_extimm", "*extendqisi2_extimm",
3050 "*zero_extend<mode>si2_extimm", "*anddi3_extimm", "*iordi3_extimm",
3051 "*xordi3_extimm", "clzdi2", "clztidi2"): New patterns.
3052 ("*tstdi", "*tstsi", "*movdi_64", "*extendhisi2", "*extendqisi2",
3053 "*zero_extend<mode>si2_64", "zero_extendqihi2", "*zero_extendqihi2_64",
3054 "*anddi3", "*iordi3", "*xordi3"): Disable for TARGET_EXTIMM.
3055 ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs", "*cmpsi_ccs", "*cmpdi_ccu",
3056 "*cmpsi_ccu", "*movsi_zarch", "*adddi3_imm_cc", "*adddi3_carry1_cc",
3057 "*adddi3_carry2_cc", "*adddi3_cc", "*adddi3_64", "*addsi3_imm_cc",
3058 "*addsi3_carry1_cc", "*addsi3_carry2_cc", "*addsi3_cc", "addsi3",
3059 "*andsi3_cc", "*andsi3_cconly", "*andsi3_zarch", "*iorsi3_cc",
3060 "*iorsi3_cconly", "*iorsi3_zarch", "*xorsi3_cc", "*xorsi3_cconly",
c414ac1d 3061 "*xorsi3", "*xorhi3", "*xorqi3"): Added instruction using extended
39bd07e8
UW
3062 immediates.
3063 ("extend<mode>di2", "extend<mode>si2", "zero_extend<mode>di2",
3064 "zero_extend<mode>si2"): Allow memory operands and don't manually emit
3065 insns for TARGET_EXTIMM.
3066
33d2e547
AK
30672005-08-17 Andreas Krebbel <krebbel1@de.ibm.com>
3068
3069 * testsuite/gcc.dg/20020926-1.c: Added "-mesa" to dg-options.
3070
e5eb9a52
NC
30712005-08-17 Nick Clifton <nickc@redhat.com>
3072
3073 * config/stormy16/stormy16.c (xstormy16_encode_section_info):
3074 Call default_encode_section_info.
3075
a318e3ac
SB
30762005-08-17 Steven Bosscher <stevenb@suse.de>
3077
3078 PR tree-optimization/21574
3079 * tree-ssa-ccp.c (likely_value): If the right hand side is a
3080 constant, return CONSTANT.
3081 (ccp_lattice_meet): Use operand_equal_p instead of simple_cst_equal.
3082 (ccp_fold, visit_assignment): Likewise.
3083 (evaluate_stmt): Handle UNDEFINED and UNKNOWN_VAL the same way.
3084
00d1b1d6
JM
30852005-08-16 James A. Morrison <phython@gcc.gnu.org>
3086
3087 * c-typeck.c (build_function_call): Call fold_buildN_initializer or
3088 fold_buildN instead of buildN then fold_initializer or fold.
3089 (build_unary_op): Likewise.
3090 (build_binary_op): Likewise.
3091 * fold-const.c (fold_initializer): Remove.
3092 (fold_build1_initializer): New function.
3093 (fold_build2_initializer): New function.
3094 (fold_build3_initializer): New function.
3095 * tree.h (fold_initializer): Remove.
3096 (fold_build1_initializer): New function.
3097 (fold_build2_initializer): New function.
3098 (fold_build3_initializer): New function.
3099
f457cf40
JM
31002005-08-16 James A. Morrison <phython@gcc.gnu.org>
3101
3102 * fold-const.c (optimize_bit_field_compare): Remove extra fold call.
3103 (try_move_mult_to_index): Call fold_build2 instead of build2.
3104 (fold_binary): Don't call fold after calls to try_move_mult_to_index.
3105 * tree-ssa-loop-niter.c (inverse): Call int_const_binop instead of
3106 fold_binary_to_constant.
3107 (infer_loop_bounds_from_undefined): Call fold_build2 instead of
3108 fold (build.
3109 * tree-data-ref.c (tree_fold_divides_p): Use tree_int_cst_equal to
3110 check if A == gcd (A, B). Remove TYPE argument.
3111 (analyze_offset) Use fold_build2 instead of fold (build.
3112 (create_data_ref): Likewise.
3113 (analyze_siv_subscript_cst_affine): Update calls to tree_fold_divides_p.
3114 * tree-ssa-ccp.c (widen_bitfield): Call fold_build2 instead of build2
3115 then fold.
3116
4c617d12
KC
31172005-08-17 Kelley Cook <kcook@gcc.gnu.org>
3118
3119 * config/arm/unaligned-funcs.c,config/i386/crtfastmath.c,
3120 ipa-cp.c,ipa-prop.c,ipa-prop.h: Update FSF address.
3121
d06526b7
AP
31222005-08-16 Andrew Pinski <pinskia@physics.uc.edu>
3123
3124 PR tree-opt/23402
3125 * gimplify.c (zero_sized_type): New function.
3126 (gimplify_modify_expr_rhs): If we have a zero sized type,
3127 replace the statement with an empty statement.
3128
e9e68ae3
L
31292005-08-16 H.J. Lu <hongjiu.lu@intel.com>
3130
3131 * config/i386/crtfastmath.c (set_fast_math): Add "=m" for
3132 fxsave.
3133
e374d5c9
ILT
31342005-08-16 Ian Lance Taylor <ian@airs.com>
3135
3136 * doc/tm.texi (Label Output): Correct typo.
3137
f2dd440f
SB
31382005-08-16 Steven Bosscher <stevenb@suse.de>
3139
3140 PR target/23376
3141 * loop-unroll.c (analyze_insn_to_expand_var): Make sure that
3142 force_operand will work later on using have_insn_for.
3143
196f5a8d
VR
31442005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3145
3146 * fold-const.c (tree_expr_nonnegative_p): Regroup cases.
3147
cf0efa6a
ILT
31482005-08-16 Ian Lance Taylor <ian@airs.com>
3149
3150 PR c++/23337
3151 * gimplify.c (gimplify_init_ctor_eval): If we see an element of
3152 vector type, don't try to construct it element by element. Add an
3153 assertion that we use a FIELD_DECL when building a COMPONENT_REF.
3154
3a69437a
VR
31552005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3156
3157 * fold-const.c (fold_ternary): Simplify folding of a CALL_EXPR.
3158
17ccdd2c
GK
31592005-08-16 Geoffrey Keating <geoffk@apple.com>
3160
3161 * doc/invoke.texi (Precompiled Headers): Document some more options
3162 which are known to be safe.
3163
355a9e43
JW
31642005-08-16 James E Wilson <wilson@specifix.com>
3165
3166 PR tree-optimization/21105
3167 * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
3168 TREE_OVERFLOW check.
3169
ce45ef46
DE
31702005-08-16 David Edelsohn <edelsohn@gnu.org>
3171
3172 * config/rs6000/rs6000.md (ltu<mode>): Convert to mode macro.
3173 (neg_ltu<mode>): Same.
3174 (gtu<mode>): Same.
3175 (neg_gtu<mode>): Same.
3176
543e2cc3
VR
31772005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3178
3179 * builtins.c (expand_builtin_strcat): Remove superfluous call to fold.
3180 (fold_builtin_isdigit): Use fold_buildN.
3181 (build_function_call_expr): Likewise.
3182 * c-typeck.c (c_finish_loop): Likewise.
3183
28f52a4d 31842005-08-16 J"orn Rennecke <joern.rennecke@st.com>
85199961 3185 Richard Shann <rshann@superh.com>
28f52a4d
R
3186
3187 PR middle-end/20396:
3188 * optabs.c (expand_binop): Take TRULY_NOOP_TRUNCATION into account.
3189
546ad2d9
SP
31902005-08-16 Sebastian Pop <pop@cri.ensmp.fr>
3191
3192 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Reword a comment.
3193
39c39be0
RE
31942005-08-15 Richard Earnshaw <richard.earnshaw@arm.com>
3195
3196 PR target/23355
c414ac1d 3197 * arm.c (thumb_compute_save_reg_mask): Use similar logic to
39c39be0
RE
3198 arm_compure_save_reg0_reg12_mask to determine when the PIC register
3199 must be saved.
3200
f60c951c
JDA
32012005-08-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3202
3203 PR middle-end/23369
3204 * fold-const.c (build_range_check): Disable optimization for function
3205 pointer expressions on targets that require function pointer
3206 canonicalization.
3207
5b5dc475
UW
32082005-08-15 Ulrich Weigand <uweigand@de.ibm.com>
3209
3210 * simplify-rtx.c (simplify_const_relational_operation): When
3211 extracting arguments of a COMPARE, recompute the mode as well.
3212
1595ec20
ILT
32132005-08-15 Ian Lance Taylor <ian@airs.com>
3214
3215 * tree.c (build_string): Mark tree CONSTANT and INVARIANT.
3216
eb5f0c07
DD
32172005-08-15 DJ Delorie <dj@redhat.com>
3218
3219 * config/m32c/mov.md (movqi_op): Immediates can't be moved to
3220 the stack.
3221 (movsi_splittable): Allow, but split, moves to the stack.
3222 * config/m32c/m32c.c (m32c_split_move): Always split moves to the
3223 stack.
3224
06145cb9
KG
32252005-08-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3226
3227 * aclocal.m4 (gcc_AC_FUNC_PRINTF_PTR): Delete.
3228 * configure.ac: Don't call gcc_AC_FUNC_PRINTF_PTR.
3229 * system.h (HOST_PTR_PRINTF): Don't define, poison it.
c414ac1d 3230
06145cb9
KG
3231 * bitmap.c, c-decl.c, config/i386/i386-interix.h,
3232 config/iq2000/iq2000.c, mips-tfile.c, print-rtl.c, print-tree.c:
3233 Delete HOST_PTR_PRINTF.
3234
3235 * configure, config.in: Regenerate.
3236
b5568f07
DE
32372005-08-15 David Edelsohn <edelsohn@gnu.org>
3238
3239 * config/rs6000/rs6000.md (QHSI): New mode macro.
3240 (wd): Extend mode attr for QImode and HImode
3241 (dbits): New mode attr.
3242 (zero_extend<mode>di2): Convert to mode macro.
3243
a73035ae
SE
32442005-08-15 Steve Ellcey <sje@cup.hp.com>
3245
3246 PR target/21841
3247 * doc/invoke.texi (-mgnu-ld): Update description.
3248 (-mhp-ld): Ditto.
3249
7e0923cd
SP
32502005-08-15 Sebastian Pop <pop@cri.ensmp.fr>
3251
3252 PR 23391
3253 * Makefile.in (tree-chrec.o): Depends on real.h.
3254 * tree-chrec.c: Include real.h.
3255 (chrec_fold_plus_poly_poly, chrec_fold_multiply_poly_poly,
3256 chrec_fold_plus_1): Use build_real for SCALAR_FLOAT_TYPE_P.
3257 * tree-scalar-evolution.c (add_to_evolution_1,
3258 interpret_rhs_modify_expr): Ditto.
3259
852c19aa
SP
32602005-08-15 Sebastian Pop <pop@cri.ensmp.fr>
3261
3262 PR 23386
3263 * tree-data-ref.c (estimate_niter_from_size_of_data): When
3264 step is negative compute the estimation from init downwards to zero.
c414ac1d 3265
b23dce24
JM
32662005-08-14 James A. Morrison <phython@gcc.gnu.org>
3267
3268 * fold-const (fold_binary): Call fold_build2 instead of fold (build.
3269
11598938
UW
32702005-08-14 Ulrich Weigand <uweigand@de.ibm.com>
3271
3272 * config/s390/s390.c (s390_const_ok_for_constraint_p): Add 'P'
3273 constraint.
3274 (legitimate_reload_constant_p): Fix handling of lliXX operands.
3275 Accept double-word constants that can be split.
3276 * config/s390/s390.md ("movti"): Use 'P' constraint.
3277 ("*movdi_31", "*movdf_31"): Likewise.
3278
8971094d
DB
32792005-08-14 Daniel Berlin <dberlin@dberlin.org>
3280
3281 Fix PR tree-optimization/22615
c414ac1d 3282
8971094d 3283 * tree-ssa-structalias.c (solution_set_add): Handle
c414ac1d 3284 first_vi_for_offset returning NULL.
8971094d
DB
3285 (do_da_constraint): Ditto.
3286 (do_sd_constraint): Ditto.
3287 (do_ds_constraint): Ditto
3288 (find_func_aliases): Ditto.
3289 (build_constraint_graph): RHS is allowed be ANYTHING.
3290 (first_vi_for_offset): Return NULL if we couldn't find anything at
3291 the offset.
c414ac1d 3292
c5b2a111
UW
32932005-08-14 Ulrich Weigand <uweigand@de.ibm.com>
3294
3295 * config/s390/s390.c (s390_canonicalize_comparison): Prefer register
3296 over memory as first operand.
3297
adb7b764
L
32982005-08-14 H.J. Lu <hongjiu.lu@intel.com>
3299
3300 PR target/23360
3301 * config/i386/crtfastmath.c (set_fast_math): Check if DAZ is
3302 available for setting it.
3303
1f400bbb
IR
33042005-08-14 Ira Rosen <irar@il.ibm.com>
3305
3306 PR tree-optimization/23320
c414ac1d
EC
3307 * tree-data-ref.c (base_addr_differ_p): Add comment. Check
3308 data-refs' types instead of base object nullness. Add check for
3309 pointer type data-refs before first location comparison. Remove
1f400bbb
IR
3310 assert.
3311
db875b15
AS
33122005-08-14 Andreas Schwab <schwab@suse.de>
3313
3314 * doc/md.texi (Machine Constraints): Fix misplaced @end table.
3315
0aca9021
JW
33162005-08-13 James E Wilson <wilson@specifix.com>
3317
3318 * doc/cpp.texi (__SSP__, __SSP_ALL__): Document.
3319 * doc/invoke.texi (-Wstack-protector, -fstack-protector,
3320 -fstack-protector-all, --param ssp-buffer-size): Document.
3321 (-Wvariadic-macros): Alphabetize.
3322 (-fsched-stalled-insns-dep): Add missing 'f'.
3323
0ffb94cd
JW
3324 * c-cppbuiltin.c (c_cpp_builtins): Add comment for flag_stack_protect
3325 macros.
3326
3256a76e
DE
33272005-08-13 David Edelsohn <edelsohn@gnu.org>
3328
3329 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed
3330 or indirect address operand.
3331 (EXTRA_ADDRESS_CONSTRAINT): New.
3332 * config/rs6000/rs6000.md (prefetch): Change constraint "p" to "a".
3333
d7770457
SP
33342005-08-13 Sebastian Pop <pop@cri.ensmp.fr>
3335
3336 PR tree-optimization/22236
3337 * tree-cfg.c (print_pred_bbs, print_succ_bbs): Correctly print
3338 successors and predecessors.
3339 * tree-chrec.c (chrec_convert): Before converting, check that
3340 sequences don't wrap.
3341 * tree-data-ref.c (compute_estimated_nb_iterations): Moved ...
3342 (analyze_array): Extern.
3343 (find_data_references_in_loop): Remove call to
3344 compute_estimated_nb_iterations.
3345 * tree-data-ref.h (analyze_array): Declared.
3346 * tree-flow-inline.h (single_ssa_tree_operand, single_ssa_use_operand,
3347 single_ssa_def_operand, zero_ssa_operands): Fix documentation.
3348 * tree-flow.h (scev_probably_wraps_p): Declare with an extra parameter.
c414ac1d 3349 * tree-scalar-evolution.c (instantiate_parameters_1): Factor entry
d7770457
SP
3350 condition.
3351 * tree-ssa-loop-ivcanon.c: Fix documentation.
3352 * tree-ssa-loop-ivopts.c (idx_find_step): Add a fixme note.
3353 * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): ... here.
3354 (infer_loop_bounds_from_undefined): New.
3355 (estimate_numbers_of_iterations_loop): Use
3356 infer_loop_bounds_from_undefined.
3357 (used_in_pointer_arithmetic_p): New.
3358 (scev_probably_wraps_p): Pass an extra parameter. Call
3359 used_in_pointer_arithmetic_p. Check that AT_STMT is not null.
3360 (convert_step): Fix documentation.
3361 * tree-vrp.c (adjust_range_with_scev): Call instantiate_parameters.
3362 Use initial_condition_in_loop_num and evolution_part_in_loop_num
3363 instead of CHREC_LEFT and CHREC_RIGHT. Adjust the call to
3364 scev_probably_wraps_p.
3365
e2df5c1d
UW
33662005-08-13 Ulrich Weigand <uweigand@de.ibm.com>
3367
3368 * config/s390/s390.c (s390_split_branches): Revert 2005-08-12 change.
3369 (s390_register_info): Ignore clobbered_regs information for fixed
3370 registers, and only fixed registers.
3371 (s390_init_frame_layout): Remove redundant call.
3372
7cd5c075
GP
33732005-08-12 Gerald Pfeifer <gerald@pfeifer.com>
3374
c414ac1d 3375 * doc/invoke.texi (C++ Dialect Options): Add dynamic_cast to
7cd5c075
GP
3376 description of -Wold-style-casts.
3377
7b8acc34
AK
33782005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
3379 Jakub Jelinek <jakub@redhat.com>
3380
3381 * config/s390/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
3382 * config/s390/s390-protos.h (s390_get_thread_pointer): Prototype added.
3383 * config/s390/s390.c (print_operand): New output modifier 'G' added.
3384 (get_thread_pointer): Renamed to s390_get_thread_pointer.
3385 * config/s390/s390.md (stack_protect_set, stack_protect_test): If
3386 TARGET_THREAD_SSP_OFFSET is defined, change operands[1] to
3387 (MEM:P (PLUS:P (tp, TARGET_THREAD_SSP_OFFSET))).
3388 (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
3389 ("stack_protect_set", "stack_protect_test"): New expanders.
3390 ("stack_protect_setsi", "stack_protect_setdi", "stack_protect_testsi",
3391 "stack_protect_testdi"): New insn definitions.
3392
4700982d
AK
33932005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
3394
3395 * config/s390/s390.md ("*movdf_31"): Changed constraint from P to K.
3396
3c60bed5
PB
33972005-08-12 Paul Brook <paul@codesourcery.com>
3398
3399 * config/arm/lib1funcs.asm: Error if __ARM_ARCH__ not set.
3400
f83a336d
AK
34012005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
3402
3403 * config/s390/predicates.md (setmem_operand): New predicate.
3404 (shift_count_operand): Accept ANDs with special constants as
3405 operand.
3406 * config/s390/s390.c (print_shift_count_operand): Skip ANDs
3407 with special constants.
3408 * config/s390/s390.md ("setmem_long", "*setmem_long"): Replaced
3409 shift_count_operand with setmem_operand.
3410
c4d50129
AK
34112005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
3412
3413 * config/s390/s390.c (s390_extract_part, s390_single_part):
3414 Type cast added.
3415 (s390_const_ok_for_constraint_p): Added SImode to the N constraint.
3416 (s390_output_mi_thunk): Don't use lg on 31 bit.
3417 * config/s390/s390.md ("*movdi_31", "*movdf_31"): Added lmy and stmy.
3418 ("*llgt_sisi" and splitter): Replaced TARGET_64BIT with TARGET_ZARCH.
3419
b5c67a49
AK
34202005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
3421
3422 * config/s390/s390.c (CONST_OK_FOR_J, CONST_OK_FOR_K): New macros.
3423 (s390_select_ccmode, s390_rtx_costs, legitimate_reload_constant_p,
3424 s390_init_frame_layout, s390_emit_prologue, s390_emit_epilogue,
3425 s390_output_mi_thunk): Replaced uses of CONST_OK_FOR_CONSTRAINT_P
3426 with one of the new macros.
3427
dc4477f5
AK
34282005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
3429
c414ac1d 3430 * config/s390/s390.c (s390_split_branches, s390_init_frame_layout):
dc4477f5
AK
3431 Don't set save_return_addr_p.
3432 (s390_register_info): Make clobbered_regs not depending on
3433 save_return_addr_p.
3434
ec92bd4b
KK
34352005-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
3436
3437 * gcc.c (LINK_SSP_SPEC): Remove space before a trailing }.
3438 (LINK_COMMAND_SPEC): Add space after %(link_ssp).
3439
8c2efff7
JW
34402005-08-11 James E. Wilson <wilson@specifix.com>
3441
3442 * config/ia64/ia64.h (EXTRA_MEMORY_CONSTRAINT): New.
3443
ea93971a
JJ
34442005-08-11 Jakub Jelinek <jakub@redhat.com>
3445
86bd8ebf
JJ
3446 * dwarf2out.c (add_location_or_const_value_attribute): Prefer
3447 locations gathered by var-tracking in single entry loc_list
3448 over loc_descriptor_from_tree.
3449
ea93971a
JJ
3450 * dwarf2out.c (concat_loc_descriptor): Add can_use_fbreg argument,
3451 pass it down to loc_descriptor.
3452 (loc_descriptor): Pass can_use_fbreg to concat_loc_descriptor.
3453 (containing_function_has_frame_base): Move earlier in the file.
3454 (loc_descriptor_from_tree_1): Use containing_function_has_frame_base
3455 instead of always assuming fbreg can't be used.
3456
dec1f3aa
DE
34572005-08-11 David Edelsohn <edelsohn@gnu.org>
3458
3459 * config/rs6000/altivec.md: Change constraint "m" to "Z".
3460 * config/rs6000/predicates.md (indexed_or_indirect_operand):
3461 Accept address wrapped in AND for Altivec.
3462 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
3463 Strip AND wrapping offset address for Altivec.
3464
7fd6694b
RH
34652005-08-11 Richard Henderson <rth@redhat.com>
3466
3467 PR middle-end/23312
3468 * gimplify.c (gimplify_one_sizepos): Check for INTEGER_TYPE
3469 before using TYPE_IS_SIZETYPE.
3470
4ead2a39
RH
34712005-08-11 Richard Henderson <rth@redhat.com>
3472
3473 PR target/22225
3474 * config/alpha/alpha.c (alphaev4_insn_pipe): Add take pipes for
3475 insn types not present on ev4.
3476 (alphaev5_insn_pipe): Similarly.
3477
da8ce8be
RE
34782005-08-11 Richard Earnshaw <richard.earnshaw@arm.com>
3479
3480 PR target/23250
3481 * arm.c (arm_override_options): If the user has selected callee-super-
3482 interworking, then enable normal interworking.
3483
eb2b0cc0
RO
34842005-08-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3485
3486 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Undef before
3487 redefinition.
3488
b630e240
WZ
34892005-08-11 Wu Zhou <woodzltc@cn.ibm.com>
3490
3491 * doc/rtl.texi: Fix two typos.
3492
cac32996
RG
34932005-08-11 Richard Guenther <rguenther@suse.de>
3494
3495 PR target/23289
3496 * config/i386/i386.c (ix86_function_ok_for_sibcall): Handle
3497 cases where we call to/from functions returning void.
3498
a4faac50
JM
34992005-08-10 James A. Morrison <phython@gcc.gnu.org>
3500
3501 PR c++/23225
3502 * tree.c (build_pointer_type_for_mode): Robustify.
3503
907f033f
JW
35042005-08-10 James E Wilson <wilson@specifix.com>
3505
3506 * defaults.h, config/alpha/alpha.h, config/ia64/ia64.h
3507 (ASM_OUTPUT_ADDR_VEC_ELT): Delete.
3508
3509 * config/alpha/alpha.c (alpha_arg_partial_bytes): Change "(CUM)." to
3510 "cum->".
3511
bb8df8a6
EC
35122005-08-10 Eric Christopher <echristo@apple.com>
3513
3514 * config/rs6000/rs6000.c (mems_ok_for_quad_peep): Rewrite.
3515 * config/rs6000/rs6000.md (*lfq_power2, *stfq_power2): Use
3516 V2DFmode.
3517
4f8dbd34
AP
35182005-08-10 Andrew Pinski <pinskia@physics.uc.edu>
3519
ce31ea84 3520 PR target/21887
4f8dbd34
AP
3521 * config/darwin.c (machopic_indirect_data_reference): Use a new register
3522 for the high part when generating dynamic-no-pic code.
3523
d75e02d6
L
35242005-08-10 H.J. Lu <hongjiu.lu@intel.com>
3525
3526 * config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
3527 (x86_64-*-linux*): Likewise.
3528
3529 * config/i386/crtfastmath.c: New file.
3530 * config/i386/t-crtfm: Likewise.
3531
3532 * config/i386/linux.h (ENDFILE_SPEC): New.
3533 * config/i386/linux64.h (ENDFILE_SPEC): Likewise.
3534
3535 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
3536 crtfastmath.o.
3537
61abee65
DN
35382005-08-10 Dorit Nuzman <dorit@il.ibm.com>
3539
3540 * doc/md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
3541 (vec_shl, vec_shr): Document new operations.
3542 * tree.def (VEC_RSHIFT_EXPR, VEC_LSHIFT_EXPR): Fix comment.
3543
11aac14f
DE
35442005-08-10 David Edelsohn <edelsohn@gnu.org>
3545
3546 * config/rs6000/predicates.md (indexed_or_indirect_address): New.
3547 * config/rs6000/rs6000.md (prefetch): Remove operand 0 mode and
3548 change predicate to indexed_or_indirect_address.
3549
9bd05108
RS
35502005-08-10 Richard Sandiford <richard@codesourcery.com>
3551
3552 * config/arm/lib1funcs.asm (__aeabi_uidiv, __aeabi_idiv): New aliases.
3553 * config/arm/libgcc-bpabi.ver (GCC_3.5): Add __aeabi_idiv,
3554 __aeabi_uidiv, __aeabi_uread4, __aeabi_uread8, __aeabi_uwrite4
3555 and __aeabi_uwrite8.
3556 * config/arm/unaligned-funcs.c: New file.
3557 * config/arm/t-bpabi (LIB2FUNCS_EXTRA): Add unaligned-funcs.c.
3558
defb77dc
PB
35592005-08-09 Paolo Bonzini <bonzini@gnu.org>
3560
3561 * bb-reorder.c (pass_duplicate_computed_gotos, pass_partition_blocks):
3562 Add dump.
3563 * cfglayout.c (pass_insn_locators_initialize): Add dump.
3564 * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes):
3565 Add dump.
3566 * except.c (pass_convert_to_eh_region_ranges): Add dump.
3567 * final.c (pass_shorten_branches): Add dump.
3568 * flow.c (pass_recompute_reg_usage, pass_remove_death_notes): Add dump.
3569 (pass_life): Rename dump.
3570 (rest_of_handle_flow2): Remove initial verify_flow_info.
3571 * function.c (pass_instantiate_virtual_regs): Add dump.
3572 * integrate.c (pass_initial_value_sets): Add dump.
3573 * jump.c (pass_cleanup_barriers, pass_purge_lineno_notes): Add dump.
3574 * loop-init.c (pass_rtl_loop_init, pass_rtl_loop_done): Rename dump.
3575 (pass_rtl_move_loop_invariants, pass_rtl_unswitch, pass_rtl_doloop,
3576 pass_rtl_unroll_and_peel_loops): Rename dump and add gate.
3577 (gate_rtl_move_loop_invariants, gate_rtl_unswitch, gate_rtl_doloop,
3578 gate_rtl_unrool_and_peel_loops): New.
3579 (rtl_move_loop_invariants, rtl_unswitch, rtl_unrool_and_peel_loops,
3580 rtl_doloop): Do not look at flags.
3581 * mode-switching.c (pass_mode_switching): Add dump.
3582 * recog.c (pass_split_all_insns, pass_split_for_shorten_branches,
3583 pass_split_before_regstack): Add dump.
3584 * regmove.c (pass_stack_adjustments): Add dump.
3585 * tree-optimize.c (pass_fixup_cfg): Add dump.
3586
2a6a63c1
KI
35872005-08-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3588
3589 PR 23309
3590 * config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when
3591 deciding which instruction sequence to use.
3592
0ed414a4
DN
35932005-08-09 Dorit Nuzman <dorit@il.ibm.com>
3594
bb8df8a6 3595 * tree-vect-transform.c (vect_create_epilog_for_reduction): Set
0ed414a4
DN
3596 BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
3597
9bc15050
RG
35982005-08-09 Richard Guenther <rguenther@suse.de>
3599
3600 * c-common.c (builtin_function_2): Remove.
3601 (def_builtin_1): New function.
3602 (c_common_nodes_and_builtins): Use def_builtin_1 to
3603 build builtin functions.
3604
07da68fd
JZ
36052005-08-09 Jie Zhang <jie.zhang@analog.com>
3606
3607 * config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
3608 * config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
3609 * config/bfin/bfin.c (bfin_return_in_memory): Update to really match
3610 Visual DSP.
3611
2f133f46
JM
36122005-08-09 James A. Morrison <phython@gcc.gnu.org>
3613
3614 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
3615 fold_binary instead of fold_build2 since we don't care about the
3616 resulting tree.
3617 (loop_niter_by_eval): Likewise.
3618 (compare_trees): Likewise.
3619 (proved_non_wrapping_p): Likewise.
3620
f14e694e
JM
36212005-08-09 James A. Morrison <phython@gcc.gnu.org>
3622
3623 PR c/23161
3624 PR c/23165
3625 * c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
3626 if the if is really empty.
3627
2ef571e2
SB
36282005-08-09 Steven Bosscher <stevenb@suse.de>
3629
3630 PR tree-optimization/23234
3631 * tree-ssa-math-opts.c (place_reciprocal): New enum.
3632 (execute_cse_reciprocals_1): Replace the 'phi' argument with an
3633 argument of the new enum.
3634 (execute_cse_reciprocals): Add reciprocals for function arguments
3635 on the unique successor edge of the entry block. Update other calls
3636 to execute_cse_reciprocals_1.
3637
a9c5ddf9
RH
36382005-08-08 Richard Henderson <rth@redhat.com>
3639
3640 PR 22439
3641 * gimplify.c (gimplify_one_sizepos): Preserve the original type.
3642
22469409
BW
36432005-08-08 Bob Wilson <bob.wilson@acm.org>
3644
3645 * expr.c (write_complex_part): Return after handling MEM.
3646
2d88fcc2
JC
36472005-08-08 Josh Conner <jconner@apple.com>
3648
3649 PR rtl-optimization/23241
3650 * combine.c (simplify_comparison): Fix error in determining
3651 whether to lift a subreg from comparison.
3652
7a4eca66
DE
36532005-08-08 David Edelsohn <edelsohn@gnu.org>
3654
3655 PR target/18506
3656 * config/rs6000/altivec.md (vec_init<mode>): New.
3657 (vec_set<mode>): New.
3658 (vec_extract<mode>): New.
3659 * config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
3660 (rs6000_expand_vector_set): New.
3661 (rs6000_expand_vector_extract): New.
3662 (rs6000_legitimate_offset_address_p): Offset addresses are valid
3663 for Altivec modes before reload.
3664 (altivec_expand_vec_init_builtin): New.
3665 (get_element_number): New.
3666 (altivec_expand_vec_set_builtin): New.
3667 (altivec_expand_vec_ext_builtin): New.
3668 (altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
3669 builtins.
3670 (altivec_init_builtins): Init vec_init, vec_set, and vec_ext
3671 builtins.
3672 * config/rs6000/rs6000.h (rs6000_builtins): Add
3673 ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
3674 ALTIVEC_BUILTIN_VEC_EXT_<mode>.
3675 * config/rs6000/rs6000-protos.h: Declare new functions.
3676
47efdea4
JH
36772005-08-08 Jan Hubicka <jh@suse.cz>
3678
3679 * i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
3680 (legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
3681 * i386.md (movdi*): Use pic_32bit_operand.
3682 * predicates.md (pic_32bit_operand): New.
3683
f303a996
NS
36842005-08-08 Nathan Sidwell <nathan@codesourcery.com>
3685
3686 PR c++/21166
3687 * stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
3688
a5ad7269
JM
36892005-08-07 James A. Morrison <phython@gcc.gnu.org>
3690
3691 * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
3692 (test_for_singularity): Use fold_build2.
3693
914a6ee8
JDA
36942005-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3695
3696 * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
3697
f18faab7
DS
36982005-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3699
3700 * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
3701 (COMMON_ASM_OP) Define.
3702 * config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
3703 (ix86_encode_section_info): Likewise.
3704 (TARGET_ENCODE_SECTION_INFO): Conditionally define as
3705 SUBTARGET_ENCODE_SECTION_INFO.
3706
455c08cb
RH
37072005-08-06 Richard Henderson <rth@redhat.com>
3708
3709 PR 21894
3710 * tree-nested.c (convert_local_reference): Save and restore val_only
3711 around component_ref and friends. Clear walk_subtrees by default.
3712
3300bf07
PG
37132005-08-06 Peter O'Gorman <peter@pogma.com>
3714
3715 PR 21366
3716 * gcc.c (process_command): Check the argument to -b has a dash.
3717 * doc/invoke.texi: Update -b and -V docs.
3718
e2ba06d6
JW
37192005-08-06 James E Wilson <wilson@specifix.com>
3720
3721 * config/mips/cross64.h, config/mips/t-cross64: Delete.
3722
3e0a6ca6
MM
37232005-08-06 Michael Matz <matz@suse.de>
3724
3725 * genattrtab.c (write_attr_get, write_attr_case): Use insn_code
3726 member only if only one insn is associated with the value.
3727
2f806f3b
NC
37282005-08-06 Nick Clifton <nickc@redhat.com>
3729
3730 * config/stormy16/stormy16.h (SYMBOL_FLAG_XSTORMY16_BELOW100):
3731 New define.
3e0a6ca6 3732 (ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
2f806f3b
NC
3733 * config/stormy16/stormy16.c (xstormy16_below100_symbol):
3734 Check symbol flags instead of symbol name mangling.
3e0a6ca6 3735 (xstormy16_asm_output_aligned_common): Likewise. Also
2f806f3b
NC
3736 simplify code since the bss100_section cass is the only case
3737 where the below100 code will be triggered.
3e0a6ca6 3738 (xstormy16_encode_section_info): Encode below100 attribute
2f806f3b
NC
3739 using the SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling
3740 the name.
3e0a6ca6 3741 (xstormy16_strip_name_encoding): Delete - this function is no
2f806f3b 3742 longer needed.
3e0a6ca6 3743 (TARGET_STRIP_NAME_ENCODING): Undefine.
2f806f3b
NC
3744 * config/stormy16/stormy16-protos.h: Delete prototype for
3745 xstormy16_strip_name_encoding.
3746
a4d05547
KH
37472005-08-06 Kazu Hirata <kazu@codesourcery.com>
3748
3749 * Makefile.in, cfgexpand.c, cfgloop.h, cfgloopmanip.c,
3750 config.gcc, ipa-cp.c, ipa-prop.c, ipa-prop.h, reg-stack.c,
3751 tree-ssa-structalias.c, tree-vrp.c, value-prof.c, vec.h,
3752 config/linux.h, config/alpha/alpha.h, config/alpha/linux.h,
3753 config/alpha/predicates.md, config/arc/arc.h,
3754 config/arm/arm.h, config/arm/ieee754-df.S,
3755 config/arm/ieee754-sf.S, config/bfin/bfin.c,
3756 config/bfin/bfin.h, config/c4x/c4x.h, config/crx/crx.c,
3757 config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h,
3758 config/i386/i386.h, config/ia64/ia64.c, config/ia64/ia64.h,
3759 config/m68hc11/m68hc11.h, config/mips/mips.c,
3760 config/mips/mips.h, config/mips/openbsd.h,
3761 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.h,
3762 config/pdp11/pdp11.h, config/rs6000/linux-unwind.h,
3763 config/rs6000/rs6000.c, config/rs6000/rs6000.h,
3764 config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
3765 config/sparc/linux.h, config/sparc/linux64.h,
3766 config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h,
3767 doc/extend.texi, doc/gcov.texi, doc/install.texi,
3768 doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix comment/doc
3769 typos. Follow spelling conventions.
3770
591baeb0
JM
37712005-08-06 Joseph S. Myers <joseph@codesourcery.com>
3772
3773 PR c/23113
3774 * stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
3775 Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
3776 specially. Check for side effects only for COND_EXPR.
3777 * c-typeck.c (c_finish_stmt_expr): Mark statement expression
3778 return with TREE_NO_WARNING.
3779
f7a064b5
RS
37802005-08-06 Richard Sandiford <richard@codesourcery.com>
3781
3782 PR rtl-optimization/23233
3783 * loop.c (combine_movables): Require the modes to be the same.
3784 (move_movables): Remove handling of cases where the replacement
3785 had a different mode to the original.
3786
b17775ab
JM
37872005-08-05 James A. Morrison <phython@gcc.gnu.org>
3788
3789 PR tree-optimization/23128
3790 * tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
3791 subtraction wrap, and set TREE_OVERFLOW if they do.
3792
bb1ecfe8
RH
37932005-08-05 Richard Henderson <rth@redhat.com>
3794
3795 PR 21728
3796 * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into
3797 FORCED_LABEL labels.
3798
50aa8e71
R
37992005-08-05 J"orn Rennecke <joern.rennecke@st.com>
3800
3801 PR middle-end/23135
3802 * reload.c (find_reloads_subreg_address): Pass down TYPE
3803 unchanged. Change all callers except find_reloads_toplev.
3804
b01896cc
MM
38052005-08-05 Michael Matz <matz@suse.de>
3806
3807 * genattrtab.c (current_alternative_string): Remove.
3808 (SIMPLIFY_ALTERNATIVE): Ditto.
3809 (attr_alt_bit_p): Ditto.
3810 (alternative_name): Make const char *.
3811 (evaluate_eq_attr): Remove use of above things.
3812 (simplify_test_exp): Ditto.
3813 (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 .
3814 (simplify_test_exp <AND>): Correct typo (test 'right' not 'left').
3815
3f94bdec
JW
38162005-08-04 James E Wilson <wilson@specifix.com>
3817
3818 * config/ptx4.h, config/sol2.h, config/arm/freebsd.h,
3819 config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h,
3820 config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h,
3821 config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h
3822 (LINK_SPEC): Delete useless %{Wl,*:%*} item.
3823
460f84ed
RH
38242005-08-04 Richard Henderson <rth@redhat.com>
3825
3826 PR 21529
3827 * params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
3828 * params.h (SRA_MAX_STRUCTURE_COUNT): New.
3829 * tree-sra.c (decide_block_copy): Use it. Disable element copy
3830 if we'd have to instantiate too many members.
3831
5a910e43
RH
38322005-08-04 Richard Henderson <rth@redhat.com>
3833
3834 PR 21291
3835 * tree-outof-ssa.c (coalesce_asm_operands): New.
3836 (coalesce_ssa_name): Use it. Split out ...
3837 (coalesce_phi_operands, coalesce_result_decls): ... these.
3838
27c37000
PB
38392005-08-04 Paul Brook <paul@codesourcery.com>
3840
3841 * read-rtl.c (read_quoted_string): Break if EOF.
3842
5808968e
AP
38432005-08-04 Andrew Pinski <pinskia@physics.uc.edu>
3844
3845 * tree.h (fold_build1): Change to macro and call fold_build1_stat.
3846 (fold_build2): Likewise.
3847 (fold_build3): Likewise.
3848 (fold_build1_stat): New function prototype.
3849 (fold_build2_stat): Likewise.
3850 (fold_build3_stat): Likewise.
3851 * fold-const.c (fold_build1): Rename to ..
3852 (fold_build1_stat): this. Add MEM_STAT_DECL. Pass the mem stats
3853 through to build1_stat.
3854 (fold_build2): Rename to ..
3855 (fold_build2_stat): this. Add MEM_STAT_DECL. Pass the mem stats
3856 through to build2_stat.
3857 (fold_build3): Rename to ..
3858 (fold_build3_stat): this. Add MEM_STAT_DECL. Pass the mem stats
3859 through to build3_stat.
3860
d70eadf7 38612005-08-04 David Edelsohn <edelsohn@gnu.org>
6d62ac14 3862 Ian Lance Taylor <ian@airs.com>
d70eadf7
DE
3863
3864 * function.c (assign_stack_local_1): Do not correct stack slot
3865 address if allocation size is smaller than mode size.
3866
c4f548b8
DN
38672005-08-04 Diego Novillo <dnovillo@redhat.com>
3868
3869 PR 22037
3870 * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
3871 (tree_merge_blocks): Propagate anything allowed by
3872 may_propagate_copy.
3873 Clarify documentation.
3874 * passes.c (execute_todo): If cleanup_tree_cfg invalidated the
3875 SSA form, schedule an update if necessary.
3876
2b7c3273
GP
38772005-08-04 Gerald Pfeifer <gerald@pfeifer.com>
3878
3879 * doc/install.texi (Binaries): Remove broken link to
3880 Sinix/Reliant Unix binaries.
3881
b755446c
RH
38822005-08-03 Richard Henderson <rth@redhat.com>
3883
3884 PR 23221
3885 * function.c (stack_protect_epilogue): Export.
3886 * tree.h (stack_protect_epilogue): Declare.
3887 * calls.c (expand_call): Call it.
3888
7904f95f
EC
38892005-08-03 Eric Christopher <echristo@apple.com>
3890
3891 * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
3892 * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
3893 spec.
3894
d783b2a2
JH
38952005-08-04 Jan Hubicka <jh@suse.cz>
3896
3897 * profile.c (branch_prob): Split edges with goto locus on them
3898 to get proper line counts.
3899 * tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
3900
53366450
PB
39012005-08-03 Paul Brook <paul@codesourcery.com>
3902
3903 * function.c (assign_parms): Round current_function_args_size
3904 to PARM_BOUNDARY, not STACK_BOUNDARY.
3905
e81d37df
GK
39062005-08-03 Geoffrey Keating <geoffk@apple.com>
3907
3908 * config/i386/i386.c (x86_elf_aligned_common)
3909 (x86_output_aligned_bss): Don't try to use symbols that aren't defined.
3910
279072c8
ZD
39112005-08-03 Zdenek Dvorak <dvorakz@suse.cz>
3912
3913 PR tree-optimization/23157
3914 * tree-scalar-evolution.c (scev_const_prop): Unshare trees
3915 before emitting them.
3916
9d2b0e12
VR
39172005-08-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3918
3919 PR tree-optimization/19899
3920 * Makefile.in (tree-scalar-evolution.o): Add real.h.
3921 * tree-scalar-evolution.c: Include real.h.
3922 (add_to_evolution): Build constant -1 of correct type.
3923
178df94f
JH
39242005-08-03 Jan Hubicka <jh@suse.cz>
3925
3926 * cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
3927 * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case
3928 profile updating for complette unrolling.
3929 * loop-unroll.c (peel_loop_completely): Use it.
3930 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
3931 (tree_unroll_loops_completely): Disable code growing unrolling of cold
3932 loops.
3933
4164b2fb
PB
39342005-08-03 Paul Brook <paul@codesourcery.com>
3935
3936 * combine.c (can_change_dest_mode): New function.
3937 (try_combine, simplify_set): Use it.
3938
4e2b3c87
EB
39392005-08-03 Eric Botcazou <ebotcazou@adacore.com>
3940
3941 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force
3942 TFmode to BLKmode.
3943
1d7887ca
GP
39442005-08-03 Gerald Pfeifer <gerald@pfeifer.com>
3945
3946 * doc/install.texi (Specific): Adjust link to openavr.org.
3947 (Specific): Remove broken reference to GCC 2.8.1 for OS/2.
3948 (Binaries): Adjust HP-UX Porting Center link.
3949 (Binaries): Adjust Free Software Foundation ordering link.
1d7887ca 3950
c7f59e9c
AP
39512005-08-03 Andrew Pinski <pinskia@physics.uc.edu>
3952
3953 * convert.c (convert_to_integer): Use fold_build1 instead of
3954 build1 when converting an integer to an integer.
3955
65030b76
RH
39562005-08-02 Richard Henderson <rth@redhat.com>
3957
3958 * combine.c (combine_instructions): Don't use reg_equal/equiv
3959 results if the mode doesn't match.
3960
6d1ab63a
MM
39612005-08-02 Mark Mitchell <mark@codesourcery.com>
3962
3963 * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
3964 * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
3965
6d90db3a
RH
39662005-08-02 Richard Henderson <rth@redhat.com>
3967
3968 PR 23196
7904f95f 3969 * explow.c (memory_address): Remove special-case for
6d90db3a
RH
3970 virtual_stack_vars_rtx and virtual_incoming_args_rtx.
3971
78234a86
DN
39722005-08-02 Diego Novillo <dnovillo@redhat.com>
3973
3974 PR 23164
3975 * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
3976 number of calls to cleanup_tree_cfg_1.
3977
5a006700
MR
39782005-08-02 Martin Reinecke <martin@mpa-garching.mpg.de>
3979
3980 * doc/invoke.texi: document file extensions .F90 and .F95
3981
237504fc
RG
39822005-08-02 Richard Guenther <rguenther@suse.de>
3983
3984 * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
3985 positive if its first argument is positive.
3986
e63c84d8
RG
39872005-08-02 Richard Guenther <rguenther@suse.de>
3988
3989 PR tree-optimization/23177
3990 * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
3991 on TMR_TAG.
3992
08303d5b
JM
39932005-08-02 James A. Morrison <phython@gcc.gnu.org>
3994
3995 PR tree-optimization/23129
3996 * tree-vrp.c (extract_range_from_binary_expr): Set value range to
3997 varying for divisions with anti-ranges.
3998
5e5a504e
JH
39992005-08-02 Jan Hubicka <jh@suse.cz>
4000
4001 * tree-ssa-dom.c (thread_across_edge): Remove updating here.
4002 * tree-ssa-threadupdate.c (thread_block): Add it here.
4003
4dbdb061
JW
40042005-08-01 James E Wilson <wilson@specifix.com>
4005
4006 * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
4007 TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
4008 * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
4009 New.
4010 * config/mips/predicates.md (const_call_insn_operand): Add check for
4011 SYMBOL_REF_LONG_CALL_P.
4012 * doc/extend.texi (long_call): Document the new attribute.
4013
9e254451
ILT
40142005-08-01 Ian Lance Taylor <ian@airs.com>
4015 Richard Henderson <rth@redhat.com>
4016
4017 * Makefile.in (RTL_BASE_H): Add real.h.
4018 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
4019 instead of memcpy.
4020 * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
4021 directly.
4022 * rtl.c (rtl_check_failed_code_mode): New.
4023 * rtl.h (struct rtx_def): Add u.rv.
4024 (XCMWINT, XCNMPRV): New.
4025 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
4026 (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
4027
5671655e
RH
40282005-08-01 Richard Henderson <rth@redhat.com>
4029
75735872
RH
4030 * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
4031 with auto-inc codes.
4032
5671655e
RH
4033 * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
4034
72ce3d4a
JH
40352005-08-01 Jan Hubicka <jh@suse.cz>
4036
4037 * i386-protos.h (asm_preferred_eh_data_format): Declare.
4038 * i386.c: Include dwarf2.h
4039 (asm_preferred_eh_data_format): New.
4040 * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
4041
23d28bfe
ILT
40422005-08-01 Ian Lance Taylor <ian@airs.com>
4043
4044 * config/host-linux.c (linux_gt_pch_get_address): Add new name
4045 randomize_va_space for virtual address randomization control.
4046
d6e14e8f
SB
40472005-08-01 Steven Bosscher <stevenb@suse.de>
4048
4049 * common.opt (flag_ipa_cp): Put in right place to maintain
4050 alphabetic sort.
4051
5ded7254
JH
40522005-08-01 Jan Hubicka <jh@suse.cz>
4053
4054 * profile.c (compute_value_histograms): Fix thinko.
4055 * value-prof.c: Include toplev.h
4056 (check_counter): New function.
4057 (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
4058 tree_mod_subtract_transform): Add sanity check.
4059
a8f82ec4
RG
40602005-08-01 Richard Guenther <rguenther@suse.de>
4061
4062 PR tree-optimization/23133
4063 * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
4064 current functions parameter decls to find defs to cse
4065 reciprocals of.
4066
ac264fef
RG
40672005-08-01 Richard Guenther <rguenther@suse.de>
4068
4069 PR tree-optimization/23109
4070 * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
4071 If trapping math is in effect, use post-dominator information
4072 to check if we'd in any case reach a trapping point before
4073 doing the reciprocal insertion.
4074 (execute_cse_reciprocals): Compute post-dominators, if necessary.
4075 * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
4076 expressions are invariant only if trapping math is not in effect.
4077
57fb5341
RL
40782005-08-01 Razya Ladelsky <razya@il.ibm.com>
4079
5a006700
MR
4080 * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
4081 cgraph_function_versioning): New declarations.
4082 * cgraphunit.c: Add include to ipa-prop.h.
4083 (update_call_expr, cgraph_copy_node_for_versioning,
4084 cgraph_function_versioning): New functions.
4085 * integrate.c (copy_decl_for_inlining): Remove.
4086 * ipa-prop.h (ipa_replace_map): New struct.
4087 (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
4088 * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
4089 ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
4090 ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
4091 ipcp_iterate_stage, ipcp_method_scale_print,
4092 ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
4093 ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
4094 ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
4095 ipcp_update_bb_counts, ipcp_update_profiling,
4096 ipcp_update_edges_counts): New functions.
4097 (ipcp_method_cval_init): Remove restriction regarding local methods.
4098 (ipcp_init_stage): Add ipcp_method_compute_scale.
4099 (ipcp_insert_stage): Add versioning.
4100 (ipcp_structures_print): Add ipcp_method_scale_print.
4101 (ipcp_driver): Dump profiling info.
4102 * Makefile.in: Remove integrate.h dependency from tree-inline.o.
4103 Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
4104 * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
4105 (struct inline_data): Add versioning_p, ipa_info, new fields.
4106 (remap_decl, mark_local_for_remap_r, setup_one_parameter,
4107 declare_return_variable): Replace calls to copy_decl_for_inlining with
4108 copy_decl_for_dup.
4109 (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
4110 versioning support.
4111 (copy_decl_for_dup): Rename from copy_decl_for_inlining.
4112 Add argument VERSIONING.
4113 (copy_arguments_for_versioning, copy_static_chain,
4114 function_versionable_p, tree_versionable_function_p,
4115 tree_function_versioning, replace_ref_tree): New functions.
4116 * tree-inline.h: Include varray.h.
4117 (tree_versionable_function_p, tree_function_versioning,
4118 tree copy_decl_for_dup): New declarations.
57fb5341
RL
4119
41202005-08-01 Razya Ladelsky <razya@il.ibm.com>
4121
5a006700
MR
4122 * ipa-cp.c: New file. Contains IPCP specific functionality.
4123 * ipa-prop.h: New file. Contains structures/definitions that can be
4124 used by several interprocedural data flow optimizations (and also IPCP).
4125 * ipa-prop.c: New file.
4126 * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
4127 * common.opt: Add ipa-cp flag.
4128 * timevar.def: Add IPCP optimization.
4129 * tree-optimize.c (init_tree_optimization_passes): Schedule
4130 pass_ipa_cp.
4131 * tree-pass.h (pass_ipa_cp): Declare.
57fb5341 4132
569b7f6a
KH
41332005-08-01 Kazu Hirata <kazu@codesourcery.com>
4134
4135 * dwarf2out.c, fold-const.c, ipa-type-escape.c,
4136 loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
4137 tree-sra.c, config/arm/arm.c, config/crx/crx.c,
4138 config/i386/i386.c, config/mips/mips.h,
4139 config/rs6000/rs6000.h, config/sh/sh.c,
4140 config/stormy16/stormy16.c: Fix comment typos.
4141
5922c215
JM
41422005-08-01 Joseph S. Myers <joseph@codesourcery.com>
4143
4144 PR c/22311
4145 * c-typeck.c (build_binary_op): Use common_type wrapper on
4146 shortened types.
4147 (common_type): Update comment.
4148
a3f4b7d8
SB
41492005-07-31 Steven Bosscher <stevenb@suse.de>
4150
4151 PR target/23095
4152 * common.opt (flag_gcse_after_reload): Don't initialize to 2.
4153 (flag_rerun_cse_after_loop): Initialize this to 2 instead.
4154 * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
4155
baf7a0d3
JH
41562005-07-31 Jan Hubicka <jh@suse.cz>
4157
4158 * pretty-print.h (pp_widest_integer): New macro.
4159 * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
4160 counts.
4161
7dcbf659
JH
41622005-07-31 Jan Hubicka <jh@suse.cz>
4163
4164 * output.h (enum section_category): Export from varasm.c
4165 (categorize_decl_for_section): Likewise.
4166 * varasm.c (enum section_category): Kill.
4167 (categorize_decl_for_section): Make global.
4168 * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
4169 Declare.
4170 * i386.c (ix86_section_threshold): New static variable.
4171 (ix86_in_large_data_p, ix86_encode_section_info,
4172 x86_64_elf_unique_section,
4173 x86_64_elf_select_section): New functions.
4174 (TARGET_ENCODE_SECTION_INFO): Define
4175 (override_options): Enable medium model for PIC.
4176 (ix86_expand_prologue): Expand gen_set_got_rex64.
4177 (legitimate_constant_p): Handle new UNSPECs.
4178 (legitimate_pic_address_disp_p): Likewise.
4179 (legitimize_pic_address): Lower MEDIUM model addressing.
4180 * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
4181 (enum cmodel): Add MEDIUM_PIC.
4182 (SYMBOL_REF_FAR_ADDR_P): New macro.
4183 (SYMBOL_FLAG_FAR_ADDR): New flag.
4184 * i386.md (movdi): Support medium model.
4185 (set_got_rex64): New pattern.
4186 * i386.opt (mlarge-data-threshold): New flag.
4187 * predicates.md (zext_operand/sext_operand): Deal with medium model.
4188 * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
4189 (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
4190 TARGET_ASM_UNIQUE_SECTION): New.
4191
4192 * invoke.texi (-mlarge_data_threshold): Document
4193
0bde02b3
JH
41942005-07-31 Jan Hubicka <jh@suse.cz>
4195
4196 * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
4197 (coalesce_vars): Likewise.
4198 * tree-ssa-live.c (coalesce_cost): New.
4199 (build_tree_conflict_graph): Use coalesce_cost.
4200 * tree-ssa-live.h (coalesce_cost): Declare.
4201
a4ccc336
RE
42022005-07-30 Richard Earnshaw <richard.earnshaw@arm.com>
4203
4204 * arm.md (all peepholes for post-increment operations): Delete.
4205 (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
4206 (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
4207 (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
4208 (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
4209 (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
4210
06581725
JM
42112005-07-30 James A. Morrison <phython@gcc.gnu.org>
4212
4213 * fold-const.c (tree_expr_nonnegative_p): Always return true for
4214 non-integral types.
4215
0cbc4d77 42162005-07-29 Wolfgang Bangerth <bangerth@dealii.org>
d6e14e8f 4217
0cbc4d77
WB
4218 PR target/22582
4219 * doc/invoke.texi: Document -rdynamic.
d6e14e8f 4220
91d975b8
JM
42212005-07-30 Joseph S. Myers <joseph@codesourcery.com>
4222
4223 PR c/23143
4224 * c-parser.c (c_parser_parms_list_declarator): Call
4225 mark_forward_parm_decls.
4226 * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
4227 decls with visibility structure.
4228
f26b8ec9
PB
42292005-07-30 Paul Brook <paul@codesourcery.com>
4230
4231 * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
4232
a14b88bb
PB
42332005-07-30 Paul Brook <paul@codesourcery.com>
4234
4235 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
4236 prototype.
4237 * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
4238 value for mode.
4239 * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
4240
7c47d6e9
JM
42412005-07-29 Joseph S. Myers <joseph@codesourcery.com>
4242
4243 PR c/529
4244 * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
4245 nested function declarators.
4246 (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
4247 (grokparms): Call warn_if_shadowing for parameters used within the
4248 parameter list.
4249 (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
4250 not used within the parameter list.
4251 (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
4252
3bc751bd
JH
42532005-07-30 Jan Hubicka <jh@suse.cz>
4254
4255 * expr.c (expand_expr_real_1): Do not load mem targets into register.
4256 * i386.c (ix86_fixup_binary_operands): Likewise.
4257 (ix86_expand_unary_operator): Likewise.
4258 (ix86_expand_fp_absneg_operator): Likewise.
4259 * optabs.c (expand_vec_cond_expr): Validate dest.
4260
bc1594c1
JM
42612005-07-29 Joseph S. Myers <joseph@codesourcery.com>
4262
4263 PR c/21720
4264 * real.c (real_from_string): Also set last bit if there is a
4265 nonzero hex digit beyond GCC's internal precision after ".".
4266
3aca4bff
DE
42672005-07-29 David Edelsohn <edelsohn@gnu.org>
4268
4269 * config/rs6000/altivec.md: Convert UNSPEC numerical values to
4270 define_constants. Change duplicate values to unassigned numbers.
4271 Change UNSPEC_SUBS to UNSPEC_VSUBS.
4272 (*altivec_vspltsf): New.
4273 (altivec_vperm_v4sf): Delete.
4274 (altivec_vperm_<mode>): Use mode macro V.
4275 (altivec_vsldoi_<mode>): Convert to mode macro pattern.
4276 (altivec_predicate_v4sf): Delete.
4277 (altivec_predicate_<mode>): Use mode macro V.
4278 (*altivec_lvesfx): New.
4279 (*altivec_stvesfx): New.
4280 (vec_realign_load_v4sf): Delete.
4281 (vec_realign_load_<mode>): Use mode macro V.
4282 * config/rs6000/rs6000.c (generate_set_vrsave): Use
4283 UNSPECV_SET_VRSAVE.
4284
b28250ab
MM
42852005-07-29 Mark Mitchell <mark@codesourcery.com>
4286
4287 PR bootstrap/23131
4288 * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
7904f95f 4289 string.
b28250ab
MM
4290 * configure: Regenerated.
4291
eae50c87
PB
42922005-07-29 Paul Brook <paul@codesourcery.com>
4293
4294 * doc/install.texi: Add link to GFortran binaries wiki page.
4295
79dad081
DU
42962005-07-29 David Ung <davidu@mips.com>
4297
4298 * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
4299 (mips_rtx_cost_data): Add costs for 5kc and 5kf.
4300 * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
4301 * config/mips/mips.md (cpu): Add 5kf name.
4302 (includes): Includes 5k.md.
4303 * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
4304 * doc/invoke.texi (MIPS Options): Updated cpu name supported with
7904f95f 4305 -march flag.
79dad081 4306
89e80dd4
DN
43072005-07-29 Diego Novillo <dnovillo@redhat.com>
4308
4309 PR 22550
4310 * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
4311 (cleanup_tree_cfg): ... here.
4312 Call cleanup_tree_cfg_1 until there are no more cleanups to
4313 do.
4314
d2f3ffba
JM
43152005-07-29 James A. Morrison <phython@gcc.gnu.org>
4316
4317 * tree-vrp.c (compare_range_with_value): Return true or false
4318 for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
4319 EQ_EXPR respectively.
4320
536fa7b7
KH
43212005-07-29 Kazu Hirata <kazu@codesourcery.com>
4322
4323 * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
4324 Fix comment typos.
4325
6a2cf9dc
DN
43262005-07-29 Diego Novillo <dnovillo@redhat.com>
4327
4328 * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
4329 (tree_ssa_dominator_optimize): Increment it.
4330 (dump_dominator_optimization_stats): Print it.
4331
abf86bf2
RE
43322005-07-29 Richard Earnshaw <richard.earnshaw@arm.com>
4333 Steven Bosscher <stevenb@suse.de>
4334
4335 PR rtl-optimization/23117
4336 * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
4337 when head == tail. Tidy comment.
4338
37cf6116
RH
43392005-07-28 Richard Henderson <rth@redhat.com>
4340
4341 * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
4342 * cselib.c (rtx_equal_for_cselib_p): Likewise.
4343 * jump.c (rtx_renumbered_equal_p): Likewise.
4344 * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
4345 CONST_INT and CONST_DOUBLE.
4346 (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
4347 * reload.c (operands_match_p): Special case CONST_INT and
4348 CONST_DOUBLE; check mode earlier.
4349
13b22d3a
JM
43502005-07-29 Joseph S. Myers <joseph@codesourcery.com>
4351
4352 PR c/22240
4353 * c-typeck.c (convert_for_assignment): Do not check
4354 DECL_IN_SYSTEM_HEADER on NULL fundecl.
4355
ca8bdb78
JM
43562005-07-29 Joseph S. Myers <joseph@codesourcery.com>
4357
4358 PR c/22192
4359 * c-typeck.c (composite_type): Prefer constant size arrays to
4360 VLAs.
4361
b608d27a
JM
43622005-07-29 Joseph S. Myers <joseph@codesourcery.com>
4363
4364 PR c/21720
4365 * real.c (real_from_string): Set last bit if there is a nonzero
4366 hex digit beyond GCC's internal precision.
4367
a560c83a
RH
43682005-07-28 Richard Henderson <rth@redhat.com>
4369
4370 PR rtl-opt/22619
4371 * cfgcleanup.c (try_forward_edges): Watch out for end of
4372 insn chain.
4373
66f33c03
JW
43742005-07-28 James E Wilson <wilson@specifixinc.com>
4375
4376 PR c/23106
4377 * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
4378
c5a4444c
JH
43792005-07-28 Jan Hubicka <jh@suse.cz>
4380
8a76829c
JH
4381 * Makefile.in (rtl-profile.o): Kill all traces of it.
4382 * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
4383 * coverage.h (rtl_coverage_counter_ref): Kill.
4384 * opts.c (flag_speculative_prefetching_set): Kill.
4385 (flag_loop_optimize_set): New.
4386 (common_handle_option): Disable loop optimizer when profiling;
4387 do not handle speculative prefetching.
4388 * passes.c (init_optimization_passes): Replace pass_profiling combo
4389 by branch_prob pass.
4390 * profile.c (compute_value_histograms): Update for simplified value
4391 profiles.
4392 (rtl_register_profile_hooks): Kill.
4393 (pass_profiling): Kill.
4394 (rest_of_handle_branch_prob): Do not profile.
4395 * toplev.c (process_options): Remove speculative prefetching.
4396 * toplev.h (flag_tree_based_profiling): Kill.
4397 * tree-profile.c (prepare_instrumented_value,
4398 tree_gen_interval_profiler, tree_gen_pow2_profiler,
4399 tree_gen_one_value_profiler, do_tree_profiling): Update for
4400 simplified datastructures.
4401 * value-prof.c: Add comment that speculative prefetching was dropped;
4402 update rest of file for simplified datastructures.
4403 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
4404 rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
4405 find_mem_reference_1, find_mem_reference_2, find_mem_reference,
4406 rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
4407 rtl_mod_subtract, gen_speculative_prefetch,
4408 rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
4409 rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
4410 (gate_handle_value_profile_transformations,
4411 rest_of_handle_value_profile_transformations,
4412 pass_value_profile_transformations): Kill.
4413 * value-prof.h (histogram_value_t): Remove IL based unions.
4414 (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
4415 rtl_profile_hooks): Remove hooks.
4416
4417 * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
4418
c5a4444c
JH
4419 * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
4420 (cgraph_clone_node): Likewise.
4421 * cgraph.h (cgraph_clone_edge): Update prototype.
4422 (cgraph_clone_node): Likewise.
4423 * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
4424 cgraph_clone_node.
4425 (lookup_recursive_calls): Consider profile.
4426 (cgraph_decide_recursive_inlining): Fix updating; use new
4427 probability argument; use profile.
4428 * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
4429 * tree-inline.c (copy_bb): Update clal of clone_edge.
4430 * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
4431
4432 * invoke.texi (min-inline-recursive-probability): Document.
4433
ccf548a7
GP
44342005-07-28 Gerald Pfeifer <gerald@pfeifer.com>
4435
4436 * doc/install.texi (Configuration): Update Valgrind homepage.
4437
2c97f8e4
RH
44382005-07-28 Richard Henderson <rth@redhat.com>
4439
407ab83b 4440 PR middle-end/21362
2c97f8e4
RH
4441 * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
4442 labels we want to delete.
4443 (cfg_layout_merge_blocks): Likewise.
4444
b188ebb1
RH
44452005-07-28 Richard Henderson <rth@redhat.com>
4446
4447 PR target/17692
d6e14e8f
SB
4448 * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
4449 when expanding to nothing.
b188ebb1 4450
facc20ee
JC
44512005-07-28 Josh Conner <jconner@apple.com>
4452
4453 * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
4454 (cgraph_decide_inlining_of_small_functions): Likewise.
4455
9de21a23
JC
44562005-07-28 Josh Conner <jconner@apple.com>
4457
4458 * ipa-inline.c (cgraph_edge_badness): Update comments. Invert shift
4459 direction of badness if negative.
4460 (cgraph_default_inline_p): Add reason to parameters, and assign it
4461 a value.
4462 (cgraph_decide_inlining_of_small_functions): New parameter in call
4463 to cgraph_default_inline_p.
4464 (cgraph_decide_inlining_incrementally): Likewise.
4465 * cgraphunit.c (decide_is_function_needed): Likewise.
4466 * cgraph.h (cgraph_default_inline_p): Likewise.
4467
206048bd
VR
44682005-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
4469
4470 * builtins.c: Fix comment typo(s).
4471 * genautomata.c: Likewise.
4472 * gimplify.c: Likewise.
4473 * tree-dfa.c: Likewise.
4474 * tree-flow-inline.h: Likewise.
4475 * tree-into-ssa.c: Likewise.
4476 * tree-ssa-alias.c: Likewise.
4477 * tree-ssa-ccp.c: Likewise.
4478 * tree-ssa-copy.c: Likewise.
4479 * tree-ssa-dce.c: Likewise.
4480 * tree-ssa-dom.c: Likewise.
4481 * tree-ssa-operands.c: Likewise.
4482 * tree-tailcall.c: Likewise.
4483 * tree-vectorizer.c: Likewise.
4484 * tree-vrp.c: Likewise.
4485 * tree.c: Likewise.
4486
d579f20b
JL
44872005-07-28 Jeff Law <law@redhat.com>
4488
d6e14e8f
SB
4489 * tree-vrp.c (test_for_singularity): Extracted from ...
4490 (simplify_cond_using_ranges): Attempt to simplify a relational
4491 test to NE_EXPR. Dump information when a COND_EXPR is simplified.
d579f20b 4492
5bb1823d
DN
44932005-07-28 Dorit Nuzman <dorit@il.ibm.com>
4494
4495 PR tree-optimization/22506
4496 * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
4497 phis whose argument is constant.
4498
b92ba6ff
R
44992005-07-28 J"orn Rennecke <joern.rennecke@st.com>
4500
4501 PR rtl-optimization/18992
4502 Back out this patch:
4503 2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4504 PR optimization/12142
4505 * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
4506 uses of the register in the SET_SRC. Remove unnecessary argument.
4507
4508 Replace it with this:
4509 * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
4510 if flag_non_call_exceptions is set and the insn may trap, pass
4511 pc_rtx as dest for recursion.
4512 In SET_SRC part of SET case, if dest is already set, pass it down
4513 unchanged.
4514
09bac500
JH
45152005-07-28 Jan Hubicka <jh@suse.cz>
4516
4517 * cfg.c (update_bb_profile_for_threading): Use RDIV.
4518 (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
4519 (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
4520 roundoff errors.
4521 * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
4522 profile when available.
4523
45242005-07-28 Jan Beulich <jbeulich@novell.com>
a71aef0b
JB
4525
4526 * config/ia64/ia64.c (ia64_load_pair_ok): New.
4527 (ia64_print_operand): Describe and handle 'X'.
4528 (ia64_register_move_cost): Also handle FP_REGS.
4529 (ia64_preferred_reload_class): Likewise.
4530 (ia64_secondary_reload_class): Likewise.
4531 (ia64_dependencies_evaluation_hook): New local variable c. Initialize
4532 it. Also check for ITANIUM_CLASS_FLDP.
4533 * config/ia64/ia64.h (FP_REGNO_P): New.
4534 (HARD_REGNO_MODE_OK): Remove explusion of TImode.
4535 (reg_class): Add FP_REGS.
4536 (REG_CLASS_NAMES): Adjust for it.
4537 (REG_CLASS_CONTENTS): Likewise.
4538 (REGNO_REG_CLASS): Use FP_REGS where appropriate.
4539 (REG_CLASS_FROM_LETTER): Handle 'x'.
4540 (CLASS_MAX_NREGS): Handle FP_REGS.
4541 (MEMORY_MOVE_COST): Likewise.
4542 * config/ia64/ia64.md (itanium_class): Add fldp.
4543 (type): Handle fldp.
4544 (movti_internal): More allowable operand combinations. Use ldfp8 when
4545 splitting unnecessary. Remove predicable attribute. Adjust
4546 itanium_class attribute.
4547 (smuldi3_highpart): Remove outdated comment.
4548 (mulditi3, umulditi3, rotlti3): New expanders.
4549 (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
4550 (absti2): Disabled new insn for future reference.
4551 Respective new splitters.
4552 * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
4553 * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
4554 * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
4555
77d1d8e0
JM
45562005-07-25 James A. Morrison <phython@gcc.gnu.org>
4557
4558 PR rtl-optimization/23047
4559 * simplify-rtx.c (simplify_const_relational_operation): Respect
4560 flag_wrapv for comparisons with ABS.
4561
ff08cbee
JM
45622005-07-27 James A. Morrison <phython@gcc.gnu.org>
4563
4564 PR tree-optimization/22493
4565 * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
4566 VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
4567
38c28a25
AH
45682005-07-27 Aldy Hernandez <aldyh@redhat.com>
4569
4570 * config/frv/frv.opt (moptimize-membar): New.
4571
4572 * doc/invoke.texi: Document -moptimize-membar and its inverse.
4573
4574 * config/frv/frv.h: Remove machine_function definition.
4575
d6e14e8f
SB
4576 * config/frv/frv.c (struct frv_io): New.
4577 (struct machine_function): Moved from frv.h. Add has_membar_p.
4578 (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
4579 (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
4580 (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
4581 (frv_optimize_membar_global, frv_optimize_membar): New functions.
4582 (frv_reorg): Call frv_optimize_membar when appropriate.
4583 (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
4584 (frv_expand_builtin): Adjust calls accordingly.
4585 (frv_io_address_cookie): New function.
4586 (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
4587 load or store rather than a special insn. Add ccnstant address and
4588 io-type operands to the membar.
38c28a25
AH
4589 (frv_ifcvt_modify_tests): Unsign regno.
4590 (frv_ifcvt_modify_tests): Same.
4591
4592 * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}. Change
4593 UNSPEC_OPTIONAL_MEMBAR constant.
4594 (builtin_read_<mode>): Delete.
4595 (builtin_write_<mode>): Delete.
4596 ("optional_membar_<mode>"): Add operand.
4597
4598 * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
4599 * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
4600 * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
4601 * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
4602 * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
4603 * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
4604 * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
4605 * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
4606 * testsuite/gcc.target/frv/all-read-write-1.c: New.
4607
47c504ea
KK
46082005-07-28 Kaz Kojima <kkojima@gcc.gnu.org>
4609
4610 * df.c (df_uses_record): Handle SCRATCH.
4611
ef11c839
SB
46122005-07-28 Steven Bosscher <stevenb@suse.de>
4613
4614 PR debug/20161
4615 * passes.c (rest_of_decl_compilation): If decl is a type and
4616 we have encountered errors, don't emit debug information.
4617
1eb68dca 46182005-07-27 Kenneth Zadeck <zadeck@naturalbridge.com>
ef11c839 4619
1eb68dca 4620 * params.def: Fixed comment.
7904f95f 4621
10252a62
BH
46222005-07-27 Bjoern Haase <bjoern.m.haase@web.de>
4623
4624 PR target/19885
4625 * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
4626 (TARGET_ASM_UNALIGNED_HI_OP): Add.
4627 (TARGET_ASM_UNALIGNED_SI_OP): Add.
4628
e4598783
SB
46292005-07-27 Steven Bosscher <stevenb@suse.de>
4630
4631 PR c++/22003
4632 * varasm.c (assemble_start_function): Don't do anything that may
4633 require a CFG if the current function is a thunk.
4634
a9fdd472
GK
46352005-07-25 Geoffrey Keating <geoffk@apple.com>
4636
4637 * doc/install.texi (Prerequisites): Mention that perl is needed
4638 to do export control in libstdc++ targetting Darwin.
4639
2bd1e239
SB
46402005-07-27 Steven Bosscher <stevenb@suse.de>
4641
4642 PR rtl-optimization/17808
4643 * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
4644 (sched_insns_conditions_mutex_p): Split out from...
4645 (add_dependence): ...here. But don't call it from here.
4646 (add_dependence_list): Check sched_insns_conditions_mutex_p
4647 before calling add_dependence.
4648 (add_dependence_list_and_free): Likewise.
4649 (fixup_sched_groups): Likewise.
4650 (sched_analyze_1): Likewise.
4651 (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
4652 (sched_analyze): Likewise.
4653 (sched_analyze_insn): Likewise.
4654 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
4655 * sched-rgn.c (add_branch_dependences): Likewise. Also, add
4656 dependencies on all COND_EXEC insns to jumps ending basic blocks
4657 when doing intrablock scheduling.
4658 * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
4659
880031e1
JL
46602005-07-27 Jeff Law <law@redhat.com>
4661
4662 * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
4663 meeting a VR_ANTI_RANGE with a VR_RANGE. When intersecting
4664 equivalency sets, correctly handle the case were vr0 has an
4665 equivalency set, but vr1 does not.
4666
b940ce0e
DN
46672005-07-27 Dorit Nuzman <dorit@il.ibm.com>
4668
4669 PR tree-optimization/23073
7904f95f 4670 * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
b940ce0e
DN
4671 vect_print_dump_info before fprintf.
4672
26c40640
ZD
46732005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
4674
4675 PR tree-optimize/22348
4676 * tree-ssa-loop-niter.c (number_of_iterations_cond):
4677 Fold the partial computation.
4678
3ac01fde
ZD
46792005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
4680
4681 PR tree-optimization/22325
4682 * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
4683 Declare.
4684 * tree-scalar-evolution.c (scev_const_prop): Add generic final
4685 value replacement.
4686 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
4687 (force_var_cost): ... this function.
4688 (compute_phi_arg_on_exit): Export.
4689
77fcaf4b
ZD
46902005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
4691
4692 PR tree-optimization/20773
4693 * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
4694 edge.
4695
c11b0231
RG
46962005-07-27 Richard Guenther <rguenther@suse.de>
4697
4698 * tree-ssa-structalias.c (push_fields_onto_fieldstack):
4699 Avoid pushing again if current struct contains only
4700 fields we decomposed.
4701
57a73709
JH
47022005-07-27 Jan Hubicka <jh@suse.cz>
4703
093c2329
JH
4704 PR tree-optimization/22574
4705 * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
4706 not available.
4707
23504559
JH
4708 * tree-tailcall.c (decrease_profile): New function.
4709 (eliminate_tail_call): Use it.
4710
57a73709
JH
4711 * cgraphunit.c (cgraph_function_and_variable_visibility): Set
4712 visibility flags correctly in whole program mode.
4713
b5395c33
SE
47142005-07-26 Steve Ellcey <sje@cup.hp.com>
4715
4716 PR rtl-optimization/22472
4717 * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
4718
86979811
SB
47192005-07-26 Steven Bosscher <stevenb@suse.de>
4720
4721 PR tree-optimization/22504
4722 * tree-complex.c (expand_complex_addition): Use 'code' instead
4723 of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
4724
faf9ab98
AH
47252005-07-26 Aldy Hernandez <aldyh@redhat.com>
4726
4727 * config.gcc (cpu_type): Add frv case.
4728 (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
4729 (supported_defaults): Add fr550 case.
4730
31521cd4
DN
47312005-07-26 Diego Novillo <dnovillo@redhat.com>
4732
4733 PR 22591
4734 * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
4735 whether a pointer of type T * may point to objects of type T *.
4736
45499411
DD
47372005-07-26 DJ Delorie <dj@redhat.com>
4738
4739 * configure: Regenerate.
4740
576a4795
DJ
47412005-07-26 Dale Johannesen <dalej@apple.com>
4742
4743 * postreload-gcse.c (alloc_mem): Start CUID numbering at 1.
4744
526635cb
MM
47452005-07-26 Mark Mitchell <mark@codesourcery.com>
4746
4747 * doc/install.texi (--with-build-sysroot): Fix grammatical error.
4748 Clarify use of "build" in name.
4749
c14ff86e
AH
47502005-07-26 Aldy Hernandez <aldyh@redhat.com>
4751
4752 * doc/extend.texi (Raw read/write Functions): New section.
4753 * testsuite/gcc.target/frv/all-builtin-read8.c: New.
4754 * testsuite/gcc.target/frv/all-builtin-read16.c: New.
4755 * testsuite/gcc.target/frv/all-builtin-read32.c: New.
4756 * testsuite/gcc.target/frv/all-builtin-read64.c: New.
4757 * testsuite/gcc.target/frv/all-builtin-write8.c: New.
4758 * testsuite/gcc.target/frv/all-builtin-write16.c: New.
4759 * testsuite/gcc.target/frv/all-builtin-write32.c: New.
4760 * testsuite/gcc.target/frv/all-builtin-write64.c: New.
4761 * config/frv/frv.c: Add bdesc_loads global.
4762 Add bdesc_stores global.
4763 (frv_init_builtins): Add support for __builtin_{read/write}*.
4764 (frv_volatile_memref): New.
4765 (frv_expand_load_builtin): New.
4766 (frv_expand_store_builtin): New.
4767 * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
4768 FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
4769 FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
4770 FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
4771 * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
4772 UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
4773 (builtin_read_<mode>): New.
4774 (builtin_write_<mode>): New.
4775 (builtin_write64): New.
4776 (optional_membar_<mode>): New.
4777
db487452
R
47782005-07-26 J"orn Rennecke <joern.rennecke@st.com>
4779
4780 * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
4781 (rather than units) against HOST_BITS_PER_WIDE_INT.
4782
783455db
KH
47832005-07-26 Kazu Hirata <kazu@codesourcery.com>
4784
4785 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
4786 ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
4787 ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
4788 config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
4789 FSF address.
4790
a4174ebf
KH
4791 * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
4792 tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
4793 config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
4794 comment typos.
4795 * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
4796
46c0a59d
RG
47972005-07-26 Richard Guenther <rguenther@suse.de>
4798
4799 PR tree-optimization/22486
4800 * fold-const.c (fold_unary): Fold away useless component
4801 references of the form (T *)&T.x, if the address
4802 doesn't change.
4803
3e2844cb
JW
48042005-07-25 James E Wilson <wilson@specifixinc.com>
4805
4806 * dwarf2out.c (add_call_src_coords_attributes): New.
4807 (gen_inlined_subroutine_die): Call it.
4808 (maybe_emit_file, init_file_table): Add comments.
4809 (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
4810 maybe_emit_file.
4811 * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
4812 (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
4813 * tree.h (BLOCK_SOURCE_LOCATION): New.
4814 (struct tree_block): New field locus.
4815
9275de65
AS
48162005-07-26 Andreas Schwab <schwab@suse.de>
4817
4818 PR rtl-optimization/23043
4819 * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
4820 when allocating a struct unoccr.
4821
5306ec31
RH
48222005-07-25 Richard Henderson <rth@redhat.com>
4823
4824 PR 22626
4825 * tree-complex.c (gate_no_optimization): True if errors.
4826 * Makefile.in (tree-complex.o): Update dependencies.
4827
bfa653b3
AH
48282005-07-25 Aldy Hernandez <aldyh@redhat.com>
4829
4830 * config/frv/predicates.md (integer_register_operand): Use
4831 GPR_AP_OR_PSEUDO_P.
4832
43e364dd
AP
48332005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
4834
4835 PR tree-opt/22484
4836 * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
4837 after fold.
4838 * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
4839
c72f711f
AP
48402005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
4841
4842 * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
4843 types when flag_unsafe_math_optimizations is true.
4844
160633c6
MM
48452005-07-25 Mark Mitchell <mark@codesourcery.com>
4846
4847 * gcc.c (option_map): Add --sysroot.
4848 (process_command): Handle --sysroot.
4849 (display_help): Document it.
4850 * doc/cppopts.tex (-isysroot): Document.
4851 * doc/invoke.texi (--sysroot): Document.
4852 * doc/install.texi (--with-build-sysroot): Document.
4853
4854 * Makefile.in (inhibit_libc): New variable.
4855 (INHIBIT_LIBC_CFLAGS): Likewise.
4856 (LIBGCC2_CFLAGS): Include
4857 $(INHIBIT_LIBC_CFLAGS).
4858 (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
4859 ($(T)crtbegin.o): Do not use @inhibit_libc@.
4860 ($(T)crtend.o): Likewise.
4861 ($(T)crtbeginS.o): Do not use @inhibit_libc@.
4862 ($(T)crtendS.o): Likewise.
4863 ($(T)crtbeginT.o): Do not use @inhibit_libc@.
4864 ($(T)crtendT.o): Likewise.
4865 (stmp-fixinc): Do not complain about missing headers if
4866 inhibit_libc.
4867 * configure.ac (inhibit_libc): Set it to true/false.
4868 (--with-build-sysroot): New option. Use it to set
7904f95f 4869 SYSTEM_HEADER_DIR.
160633c6
MM
4870 * configure: Regenerated.
4871
1490f93a
MH
48722005-07-25 Manfred Hollstein <mh@suse.com>
4873
4874 * calls.c (store_one_arg): Fix unsigned comparison warning.
4875
76e20664
SB
48762005-07-25 Serge Belyshev <belyshev@depni.sinp.msu.ru>
4877
4878 PR other/22337
4879 * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
4880 (ggc_print_statistics): Initialize variable before use.
4881
5c97e2de
RG
48822005-07-25 Richard Guenther <rguenther@suse.de>
4883
4884 * tree-dfa.c (mark_new_vars_to_rename): Protect against
4885 calling with a PHI_NODE argument.
4886
4887 * tree-flow-inline.h (overlap_subvar): Protect against
4888 possible overflow.
4889
7fefc172
PB
48902005-07-25 Paolo Bonzini <bonzini@gnu.org>
4891
4892 * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
4893 * configure: Regenerate.
4894
86a07404
IR
48952005-07-25 Ira Rosen <irar@il.ibm.com>
4896
4897 * expr.c (highest_pow2_factor): Make extern.
4898 * tree-data-ref.c (ptr_decl_may_alias_p): New function.
4899 (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
4900 record_array_differ_p, array_ptr_differ_p): Likewise.
4901 (base_object_differ_p): Rename (from array_base_name_differ_p). Support
4902 additional cases. Call the above functions.
4903 (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
4904 base_object_differ_p when there are two base objects. Otherwise, compare
4905 base address and offset. Call may_alias_p.
4906 (dump_data_reference): Use a correct field name.
4907 (analyze_array): Make static. Initialize new data-ref fields.
4908 (analyze_indirect_ref): New function.
7904f95f
EC
4909 (init_data_ref): Initialize new data-ref fields.
4910 (strip_conversion): Moved from tree-vect-analyze.c.
7fefc172
PB
4911 (analyze_offset_expr, get_ptr_offset, address_analysis,
4912 object_analysis): Likewise.
86a07404 4913 (analyze_offset): New function.
86979811 4914 (create_data_ref): Likewise.
86a07404
IR
4915 (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
4916 dimensions for ARRAY_REFs only.
4917 (build_classic_dist_vector): Make static.
4918 (access_functions_are_affine_or_constant_p): Call macro to get the
4919 address of access functions.
4920 (compute_all_dependences): Add new parameter
7904f95f 4921 compute_self_and_read_read_dependences. Compute self and read-read
86a07404
IR
4922 dependences if it is true.
4923 (find_data_references_in_loop): Call create_data_ref. Initialize new
4924 data-ref fields.
4925 (compute_data_dependences_for_loop): Add new parameter
4926 compute_self_and_read_read_dependences. Remove parameter nb_loops,
7fefc172
PB
4927 compute nb_loops. Call compute_all_dependences,
4928 build_classic_dist_vector and build_classic_dir_vector with correct
4929 parameters.
4930 (analyze_all_data_dependences): Call compute_data_dependences_for_loop
4931 with correct parameters. Compare dimensions for ARRAY_REFs only.
86a07404
IR
4932 (free_data_refs): Call macro to free access functions.
4933 * tree-data-ref.h (struct first_location_in_loop): New structure. Move
4934 fields from stmt_vinfo.
4935 (struct base_object_info): New structure.
7904f95f 4936 (struct data_reference): Move fields to base_object_info. Add fields
86a07404 4937 first_location and object_info for above structures. Move fields from
7fefc172
PB
4938 stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
4939 aligned_to. Add macros to access the new fields.
86a07404
IR
4940 Update functions declarations.
4941 * tree-flow.h (is_aliased_with): Declare.
4942 * tree-loop-linear.c (linear_transform_loops): Call
4943 compute_data_dependences_for_loop with correct parameters.
4944 * tree-ssa-alias.c (is_aliased_with): New function.
86979811 4945 * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
86a07404
IR
4946 (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
4947 (vect_analyze_data_ref_dependence): Get ddr. Remove call to
4948 vect_base_addr_differ_p, compute_subscript_distance and
4949 build_classic_dist_vector. Add printings. Check absolute value of
4950 distance.
7fefc172
PB
4951 (vect_analyze_data_ref_dependences): Go through ddrs instead of
4952 data-refs.
86a07404
IR
4953 (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
4954 stmt. Check aligned_to. Check if the base is aligned. Remove conversion
4955 to bytes. Add printing.
7fefc172
PB
4956 (vect_compute_data_refs_alignment): Go through loads and stores in one
4957 loop.
86a07404
IR
4958 (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
4959 vect_analyze_data_ref_access): Likewise.
4960 (vect_analyze_pointer_ref_access): Remove.
4961 (vect_address_analysis, vect_object_analysis): Likewise.
4962 (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
4963 and analyze data-refs in the loop.
7fefc172
PB
4964 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
4965 fields of data-ref instead of stmt. Add init to the offset from the
4966 base.
86a07404
IR
4967 (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
4968 (vect_update_init_of_dr): Likewise.
4969 (vect_update_inits_of_drs): Go through loads and stores in one loop.
7fefc172
PB
4970 * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
4971 removed fields.
86a07404
IR
4972 (new_loop_vec_info): Initialize new fields.
4973 (destroy_loop_vec_info): Free new fields.
4974 (vect_strip_conversion): Remove.
4975 * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
4976 (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
7904f95f 4977 datarefs. Add new field ddrs.
86a07404
IR
4978 Add macros for the new fields access.
4979 (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
4980 base_aligned_p, misalignment, memtag, ptr_info and subvars.
4981 Remove their macros.
4982 * tree.h (highest_pow2_factor): Declare.
4983
0dc42b03
JJ
49842005-07-25 Jakub Jelinek <jakub@redhat.com>
4985
4986 * calls.c (store_one_arg): Check for sibling call MEM arguments
4987 from already clobbered incoming argument area.
4988
104f8784
KG
49892005-07-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4990
4991 * c-common.c (check_missing_format_attribute): New.
4992 * c-common.h (check_missing_format_attribute): Likewise.
4993 * c-typeck.c (convert_for_assignment): Use it.
4994
1b8452d0
AS
49952005-07-24 Andreas Schwab <schwab@suse.de>
4996
4997 * config/m68k/m68k.md ("extendqidi2"): When source is an address
4998 register use a word move. Correct operand of ext.w in 68000 code.
4999
2b402955
MM
50002005-07-23 Mark Mitchell <mark@codesourcery.com>
5001
5002 * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
5003 variables as declarations, rather than definitions.
5004
c8af1197
IR
50052005-07-24 Ira Rosen <irar@il.ibm.com>
5006
86979811
SB
5007 PR tree-optimization/22526
5008 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
5009 of the zero node.
c8af1197 5010
1b135aa5
FXC
50112005-07-24 Francois-Xavier Coudert <coudert@clipper.ens.fr>
5012
5013 * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
5014 that C99 reserve for future use. Use it to define clog10,
5015 clog10f and clog10l.
5016
ac0f3f39
KG
50172005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5018
5019 * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
5020 * configure.ac: Check for -Wmissing-format-attribute.
7904f95f 5021
ac0f3f39
KG
5022 * configure: Regenerate.
5023
db753fa1
RH
50242005-07-23 Richard Henderson <rth@redhat.com>
5025
5026 PR tree-optimization/22623
5027 * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
5028
28f155be
GB
50292005-07-23 Giovanni Bajo <giovannibajo@libero.it>
5030
5031 PR target/22577
5032 * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
5033
db857e7d
KG
50342005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5035
5036 * Makefile.in (C_TREE_H): Update dependencies.
5037 * c-tree.h: Include toplev.h.
5038 * diagnostic.h (diagnostic_set_info): Add format attribute.
5039 * rtl-error.c (diagnostic_for_asm): Likewise.
5040
118ea793
CF
50412005-07-23 Chao-ying Fu <fu@mips.com>
5042
5043 * config/mips/mips-dsp.md: New file.
5044 * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
5045 * config/mips/mips.c (mips_function_type): Add types for DSP builtin
5046 functions.
5047 (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
5048 MIPS_BUILTIN_BPOSGE32.
5049 (mips_expand_builtin_direct): Add one parameter to indicate that
5050 builtin functions need to return a value.
5051 (mips_expand_builtin_bposge): New for expanding "bposge" builtin
5052 functions.
5053 (mips_regno_to_class): Add classes for 12 new DSP registers.
5054 (mips_subword): Change to check four HI registers.
5055 (mips_output_move): Output move to and from 6 new DSP accumulators.
5056 (override_options): Make sure -mdsp and -mips16 are not used together.
5057 Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS. Enable DSP accumulators
5058 for machine modes.
5059 (mips_conditional_register_usage): Disable 6 new DSP accumulators
5060 when !TARGET_DSP.
5061 (print_operand): Add 'q' for printing DSP accumulators.
5062 (mips_cannot_change_mode_class): Check ACC_REGS.
5063 (mips_secondary_reload_class): Check ACC_REGS.
5064 (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
5065 (mips_register_move_cost): Check ACC_REGS.
5066 (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
5067 (CODE_FOR_mips_subu_qb): New code-aliasing macros.
5068 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
5069 (dsp_bdesc): New array.
5070 (bdesc_arrays): Add DSP builtin function table.
5071 (mips_prepare_builtin_arg): Check predicate again after
5072 copy_to_mode_reg.
5073 (mips_expand_builtin): Add one more parameter to
5074 mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
5075 MIPS_BUILTIN_BPOSGE32.
5076 (mips_init_builtins): Initialize new function types.
5077 (mips_expand_builtin_direct): Check if builtin functions need to
5078 return a value and pass operands properly.
5079 (mips_expand_builtin_bposge): New function.
5080 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
5081 (ASM_SPEC): Map -mdsp to -mdsp in GAS.
5082 (FIRST_PSEUDO_REGISTER): Increase to 188.
5083 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
5084 Update for 12 new DSP registers.
5085 (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
5086 (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
5087 (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
5088 (reg_class): Add DSP_ACC_REGS and ACC_REGS.
5089 (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
5090 (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
5091 (REG_ALLOC_ORDER): Update for 12 new DSP registers.
5092 (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
5093 (UIMM6_OPERAND, IMM10_OPERAND): New macros.
5094 (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
5095 (REGISTER_NAMES): Add names for 12 new DSP registers.
5096 * config/mips/mips.md: Include mips-dsp.md.
5097 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
5098 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
5099 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
5100 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
5101 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
5102 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
5103 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
5104 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
5105 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
5106 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
5107 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
5108 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
5109 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
5110 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
5111 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
5112 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
5113 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
5114 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
5115 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
5116 (UNSPEC_RDDSP): New constants.
5117 (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
5118 (*movsi_internal): Change 'x' to 'a' for ACC_REGS. Add an
5119 A<-d alternative.
5120 * config/mips/mips.opt (-mdsp): New option.
5121 * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
5122 (reg_imm10_operand): New predicates.
5123 * doc/extend.texi (MIPS DSP Built-in Functions): New section.
5124 * doc/invoke.texi (-mdsp): Document new option.
5125
d2fcbf6f
DD
51262005-07-22 DJ Delorie <dj@redhat.com>
5127
5128 * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
5129 to warning calls.
5130 * tree-inline.c (inlinable_function_p): Likewise.
5131
9881e3e5
MM
51322005-07-22 Mark Mitchell <mark@codesourcery.com>
5133
5134 PR debug/21828
5135 * toplev.c (check_global_declarations): Do not mark undefined
5136 variables as DECL_IGNORED_P.
5137 * varasm.c (first_global_object_name): GTY it.
5138 (weak_global_object_name): Likewise.
5139 (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
5140 a string to go into {weak,first}_global_object_name.
5141
1a8d0d41
DD
51422005-07-22 DJ Delorie <dj@redhat.com>
5143
5144 * c-format.c (check_function_format): Change warning control
5145 option from OPT_Wattribute to OPT_Wmissing_format_attribute.
5146
17c7e33e
DN
51472005-07-22 Diego Novillo <dnovillo@redhat.com>
5148
5149 * tree-ssa-alias.c (count_ptr_derefs): Do not consider
5150 &PTR->FLD a dereference of PTR.
5151 * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
5152 a potential dereference of PTR.
5153
45002e59
R
51542005-07-22 J"orn Rennecke <joern.rennecke@st.com>
5155
191e1ff2
R
5156 PR rtl-optimization/20370
5157 * ifcvt.c (dead_or_predicable): Before calling propagate_block,
5158 call allocate_reg_info if necessary.
5159
475a3eef
R
5160 PR rtl-optimization/21848
5161 * calls.c (emit_library_call_value_1): For const functions, add
5162 USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
5163
29c1846b
R
5164 PR rtl-optimization/22445
5165 * cselib.c (target.h): Include.
5166 (rtx_equal_for_cselib_p): Allow commutative matches.
5167 (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
5168 Remove MODE parameter. Changed all callers.
5169
45002e59
R
5170 PR rtl-optimization/22258
5171 * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
5172 New functions.
5173 (try_combine): Use likely_spilled_retval_p.
5174
db869733
PW
51752005-07-22 Paul Woegerer <paul.woegerer@nsc.com>
5176
5177 * config.gcc: Add crx-elf support.
5178
5179 * doc/contrib.texi: Mention crx.
5180 * doc/extend.texi: Document crx extensions.
5181 * doc/install.texi: Document crx install.
5182 * doc/invoke.texi: Document crx options.
5183 * doc/md.texi: Document crx constraints.
5184
5185 * config/crx/crx-protos.h: New file.
5186 * config/crx/crx.c: New file.
5187 * config/crx/crx.h: New file.
5188 * config/crx/crx.md: New file.
5189 * config/crx/crx.opt: New file.
5190 * config/crx/t-crx: New file.
7904f95f 5191
32cafd73
MH
51922005-07-22 Manfred Hollstein <mh@suse.com>
5193
5194 * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
5195 warnings.
5196 (int_add_graph_edge): Likewise.
5197 (collapse_nodes): Likewise.
5198 (process_unification_queue): Likewise.
5199
ee184c4d 52002005-07-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
86979811 5201 Laurent GUERBY <laurent@guerby.net>
ee184c4d 5202
86979811 5203 PR tree-optimization/22336
7904f95f 5204 * function.c (record_block_change): Check for
86979811 5205 cfun->ib_boundaries_block.
7904f95f 5206
b49ceb45
JM
52072005-07-21 James A. Morrison <phython@gcc.gnu.org>
5208
5209 * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
5210 (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
5211
30c54de9
DD
52122005-07-21 DJ Delorie <dj@redhat.com>
5213
5214 * toplev.c (warn_deprecated_use): Add warning control to warning
5215 call.
c303630a
DD
5216 * c-typeck.c (parser_build_binary_op): Likewise.
5217 (c_finish_if_stmt): Likewise.
30480ec4
DD
5218 * c-common.c (check_function_sentinel): Likewise.
5219 (check_nonnull_arg): Likewise.
30c54de9 5220
95a8c155
RH
52212005-07-21 Richard Henderson <rth@redhat.com>
5222
5223 PR tree-opt/22504
5224 * tree-complex.c (complex_ssa_name_components): New.
5225 (cvc_lookup): Allow entry not found.
5226 (create_components): Remove.
5227 (create_one_component_var, get_component_var): New.
5228 (get_component_ssa_name, set_component_ssa_name): New.
5229 (extract_component): Use get_component_ssa_name.
5230 (update_complex_components): Use set_component_ssa_name.
5231 (update_complex_components_on_edge): Likewise.
5232 (update_phi_components): Create new PHI nodes directly, instead
5233 of adding insns to edges.
5234 (tree_lower_complex): Allocate and free complex_variable_components
5235 and complex_ssa_name_components here.
5236
c05a0766 52372005-07-20 Daniel Berlin <dberlin@dberlin.org>
7904f95f 5238
c05a0766
DB
5239 * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
5240 revert to returning false.
5241
de343c8d
UB
52422005-07-21 Uros Bizjak <uros@kss-loka.si>
5243
86979811
SB
5244 PR target/21149
5245 * config/i386/i386.md (sse_movhlps): Fix vec_select values.
de343c8d 5246
5acc26ef
UB
52472005-07-21 Uros Bizjak <uros@kss-loka.si>
5248
5249 PR target/22576
5250 * config/i386/i386.md (cmpxf): Change operand constraints
5251 to "nonmemory_operand".
5252
61cb44fe
AP
52532005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
5254
5255 * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
5256
e2fe73f6
AP
52572005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
5258
5259 PR middle-end/21180
5260 * fold-const.c (fold_build1): Add checksum for the operands.
7904f95f 5261 (fold_build2): Likewise.
e2fe73f6
AP
5262 (fold_build3): Likewise.
5263
9d24eb54
AP
52642005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
5265
5266 PR middle-end/19055
5267 * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
5268
b2e0afa0
PB
52692005-07-21 Paolo Bonzini <bonzini@gnu.org>
5270
5271 * common.opt (-fforward-propagate): Committed by mistake,
5272 removed.
5273
2e48874f
VR
52742005-07-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
5275
5276 * reg-stack.c: Fix comment typo(s).
5277 * tree-ssa-operands.c: Likewise.
5278 * tree-vectorizer: Likewise.
5279
889d8465
NC
52802005-07-21 Nick Clifton <nickc@redhat.com>
5281
5282 * config/sh/symbian.c: Replace C++ style line comments with C
5283 style line comments.
86979811 5284 (symbian_add_attribute): Do not use a ? operator on the LHS of
889d8465 5285 an assignment.
86979811 5286 (sh_symbian_handle_dll_attribute): Change the type of the
889d8465
NC
5287 method vector to "VEC(tree,gc)*" and use vector accessor
5288 macros to walk over the elements.
86979811
SB
5289 (symbian_export_vtable_and_rtti_p): Likewise.
5290 (symbian_class_needs_attribute_p): Likewise.
889d8465 5291
2fab365e
PB
52922005-07-21 Paolo Bonzini <bonzini@gnu.org>
5293
5294 PR target/22085
5295 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
5296 initialize targetm.resolve_overloaded_builtin here.
5297 (altivec_expand_overloaded_builtin): Make it non-static.
5298 * config/rs6000/rs6000-protos.h
5299 (altivec_expand_overloaded_builtin): New prototype.
5300 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
5301 targetm.resolve_overloaded_builtin here.
5302 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
5303
f9cc1a70 53042005-07-21 Paolo Bonzini <bonzini@gnu.org>
86979811 5305 Zdenek Dvorak <dvorakz@suse.cz>
f9cc1a70
PB
5306
5307 PR tree-optimization/19210
5308 * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
5309 New.
5310 * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
5311 * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
5312 rely on unproven assumptions.
5313 * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
5314 * tree-flow.h (number_of_iterations_exit): Add final parameter.
5315 * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
5316 to number_of_iterations_exit.
5317 * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
5318 * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
5319 * tree-ssa-loop-niter.c (find_loop_niter,
5320 estimate_numbers_of_iterations_loop): Likewise.
5321 (number_of_iterations_exit): Honor the new options.
5322 * doc/invoke.texi (Wunsafe-loop-optimizations,
5323 funsafe-loop-optimizations): Document them.
5324
cb83c2ec
RS
53252005-07-21 Richard Sandiford <richard@codesourcery.com>
5326
5327 PR rtl-optimization/22167
5328 * gcse.c (hoist_code): Fix hoist_exprs[] check.
5329
5e5cbbfb
AN
53302005-07-20 Adam Nemet <anemet@lnxw.com>
5331
5332 * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
5333 __do_global_dtors_aux longcall.
5334
c2acaf06
KH
53352005-07-20 Kazu Hirata <kazu@cs.umass.edu>
5336
5337 * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
5338 (old_special_pred_table): Don't reference
5339 SPECIAL_MODE_PREDICATES.
5340 * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
5341 * config/arc/arc.h: Don't mention PREDICATE_CODES.
5342 * config/sh/predicates.h: Don't mention
5343 SPECIAL_MODE_PREDICATES.
5344 * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
5345 Remove.
5346
38b2d076
DD
53472005-07-20 DJ Delorie <dj@redhat.com>
5348
5349 * config.gcc: Add m32c-elf support.
5350
5351 * doc/contrib.texi: Mention m32c.
5352 * doc/extend.texi: Document m32c extensions.
5353 * doc/install.texi: Mention m32c.
5354 * doc/invoke.texi: Document m32c options.
5355 * doc/md.texi: Document m32c constraints.
5356
5357 * config/m32c/addsub.md: New file.
5358 * config/m32c/bitops.md: New file.
5359 * config/m32c/cond.md: New file.
5360 * config/m32c/jump.md: New file.
5361 * config/m32c/m32c-lib1.S: New file.
5362 * config/m32c/m32c-lib2.c: New file.
5363 * config/m32c/m32c-modes.def: New file.
5364 * config/m32c/m32c-pragma.c: New file.
5365 * config/m32c/m32c-protos.h: New file.
5366 * config/m32c/m32c.abi: New file.
5367 * config/m32c/m32c.c: New file.
5368 * config/m32c/m32c.h: New file.
5369 * config/m32c/m32c.md: New file.
5370 * config/m32c/m32c.opt: New file.
5371 * config/m32c/minmax.md: New file.
5372 * config/m32c/mov.md: New file.
5373 * config/m32c/muldiv.md: New file.
5374 * config/m32c/predicates.md: New file.
5375 * config/m32c/prologue.md: New file.
5376 * config/m32c/shift.md: New file.
5377 * config/m32c/t-m32c: New file.
5378
50b69666
KK
53792005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
5380
5381 * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
5382 (stack_protect_set, stack_protect_test): New expanders.
86979811 5383 (stack_protect_set_si, stack_protect_set_si_media,
50b69666 5384 stack_protect_set_di_media, stack_protect_test_si,
86979811 5385 stack_protect_test_si_media, stack_protect_test_di_media):
50b69666
KK
5386 New insns.
5387
71b50543
AP
53882005-07-20 Andrew Pinski <pinskia@physics.uc.edu>
5389
5390 * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
5391
4db8040c
JM
53922005-07-20 James A. Morrison <phython@gcc.gnu.org>
5393
5394 * tree.h (tree_expr_nonzero_p): Export.
5395 * fold-const.c (tree_expr_nonzero_p): Likewise.
5396 Return true for CALL_EXPRs that are alloca calls.
5397 (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
5398 against zero.
5399 * tree-flow.h (expr_computes_nonzero): Remove.
5400 * tree-vrp.c (expr_computes_nonzero): Remove.
86979811 5401 (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
4db8040c
JM
5402 (extract_range_from_unary_expr): Likewise.
5403 * tree-ssa-dom.c (record_equivalences_from_stmt): Use
5404 tree_expr_nonzero_p.
5405
6d459e2b
BS
54062005-07-20 Bernd Schmidt <bernd.schmidt@analog.com>
5407
09350e36
BS
5408 * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
5409 * config/bfin/bfin.c (legitimize_pic_address): Now static. Take
5410 extra arg "picreg" and use it instead of pic_offset_table_rtx.
5411 All callers changed.
5412 (frame_related_constant_load): New arg "related" which controls
5413 setting of RTX_FRAME_RELATED_P. All callers changed.
5414 (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
5415 (bfin_expand_prologue): Add stack limit checking.
5416 * config/bfin/bfin.md (trapifcc): New pattern.
5417
05905337
BS
5418 * config/bfin/bfin.c: Include "langhooks.h".
5419 (def_builtin): Go through lang_hooks to call builtin_function.
5420
6d459e2b
BS
5421 * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
5422 * config/bfin/predicates.md (symbol_ref_operand): New.
5423 (call_insn_operand): Delete. All callers changed to use
5424 register_no_elim_operand.
5425 * config/bfin/bfin.c (init_cumulative_args): Initialize the new
5426 call_cookie field.
5427 (function_arg): Use it to generate the call's operand 2.
5428 (bfin_longcall_p): New function.
5429 (bfin_expand_call): Extra arg "cookie". All callers and declaration
5430 changed. Emit extra USE in the pattern. Use bfin_longcall_p to
5431 determine if the address needs to be in a REG.
5432 (bfin_handle_longcall_attribute): New function.
5433 (bfin_attribute_table): Add "longcall" and "shortcall".
5434 * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
5435 (CUMULATIVE_ARGS): New member call_cookie.
5436 (PREDICATE_CODES): Add symbol_ref_operand.
5437 * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
5438 extra USE to the pattern.
5439 (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
5440 New patterns, split off call_insn, sibcall_insn, call_value_insn and
5441 sibcall_value_insn; now the new patterns handle direct calls and the
5442 old ones indirect calls.
5443 * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
5444
67135ef4
ZD
54452005-07-20 Zdenek Dvorak <dvorakz@suse.cz>
5446
5447 * doc/trouble.texi: Update section on handling of empty loops.
5448
fdda361d
KH
54492005-07-20 Kazu Hirata <kazu@codesourcery.com>
5450
5451 * config.gcc: Remove support for sparc-*-openbsd*,
5452 i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
5453 ns32k-*-netbsd*.
5454 * config.host: Remove support for i860-*-sysv4* as a host.
5455 * config/i860/*, config/ip2k/*, config/ns32k/*,
5456 config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
5457 * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
5458 mention obsolete ports.
5459
96a2347e
KK
54602005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
5461
5462 * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
5463 soft frame pointer.
5464 (sh_expand_prologue): Use hard_frame_pointer_rtx instead
5465 of frame_pointer_rtx.
5466 (sh_expand_epilogue): Likewise.
5467 (sh_set_return_address): Likewise.
5468 (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
5469 instead of FRAME_POINTER_REGNUM if needed. Add elimination
5470 offsets from FRAME_POINTER_REGNUM.
5471 * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
5472 (sh_register_names): Add initializer for sfp.
5473 (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
5474 (VALID_REGISTER_P): Likewise.
5475 (FIRST_PSEUDO_REGISTER): Update.
5476 (DWARF_FRAME_REGISTERS): Define.
5477 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
5478 (HARD_FRAME_POINTER_REGNUM): Define.
5479 (FRAME_POINTER_REGNUM): Redefine.
5480 (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
5481 but HARD_FRAME_POINTER_REGNUM instead. Add eliminations
5482 from FRAME_POINTER_REGNUM.
5483 (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
5484 FRAME_POINTER_REGNUM.
5485 (REG_CLASS_CONTENTS): Add sfp.
5486 (REG_ALLOC_ORDER): Likewise.
5487 (FRAME_GROWS_DOWNWARD): Set to 1. Update comment.
5488 (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
5489 of frame_pointer_rtx.
5490 (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
5491
1ade5842
JM
54922005-07-19 James A. Morrison <phython@gcc.gnu.org>
5493
5494 * fold-const.c (tree_expr_nonnegative_p): Only return true for
5495 ABS_EXPR when flag_wrapv is false because of INT_MIN.
5496 (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
5497 of an ABS_EXPR.
5498 (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
5499 ABS_EXPR<x>.
5500
4038c495
GB
55012005-07-20 Giovanni Bajo <giovannibajo@libero.it>
5502
5503 Make CONSTRUCTOR use VEC to store initializers.
5504 * c-common.c (complete_array_type): Update to cope with VEC in
5505 CONSTRUCTOR_ELTS.
5506 * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
5507 (pp_c_constructor_elts): New function.
5508 * c-pretty-print.h (pp_c_constructor_elts): Declare.
5509 * c-typeck.c (build_function_call, build_c_cast, digest_init,
5510 struct constructor_stack, struct initializer_stack,
5511 constructor_elements, push_init_level, pop_init_level,
5512 add_pending_init, find_init_member, output_init_element): Update to
5513 cope with VEC in CONSTRUCTOR_ELTS.
5514 * coverage.c (build_fn_info_value, build_ctr_info_value,
5515 build_gcov_info): Likewise.
5516 * expr.c (categorize_ctor_elements_1, store_constructor,
5517 expand_expr_real_1): Likewise.
5518 * fold-const.c (fold_ternary): Likewise.
5519 * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
5520 gimplify_init_constructor, gimplify_expr): Likewise.
5521 * tree-dump.c (dequeue_and_dump): Likewise.
5522 * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
5523 node.
5524 * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
5525 CONSTRUCTOR_ELTS.
5526 * tree-sra.c (generate_element_init_1): Likewise.
5527 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
5528 * tree-ssa-operands.c (get_expr_operands): Likewise.
5529 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
5530 * tree-vect-transform.c (vect_get_vec_def_for_operand):
5531 (get_initial_def_for_reduction): Likewise.
5532 * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
5533 value handle in annotations.
5534 * tree.c (tree_node_kind, tree_code_size, make_node_stat,
5535 tree_node_structure): Add support for constr_kind.
5536 (build_vector_from_ctor, build_constructor_single,
5537 build_constructor_from_list): New functions.
5538 (build_constructor): Update to take a VEC instead of a TREE_LIST.
5539 (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
5540 Update to cope with VEC in CONSTRUCTOR_ELTS.
5541 * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
5542 * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
5543 CONSTRUCTOR_APPEND_ELT): New macros.
5544 (struct constructor_elt, struct tree_constructor): New data types.
5545 (union tree_node): Add tree_constructor field.
5546 * treestruct.def: Define TS_CONSTRUCTOR.
5547 * varasm.c (const_hash_1, compare_constant, copy_constant,
5548 compute_reloc_for_constant, output_addressed_constants,
5549 initializer_constant_valid_p, output_constant,
5550 array_size_for_constructor, output_constructor): Update to cope with
5551 VEC in CONSTRUCTOR_ELTS.
5552 * vec.h (VEC_empty, VEC_copy): New macros.
5553
f37d7c60
DP
55542005-07-19 Devang Patel <dpatel@apple.com>
5555
5556 * dbxout.c (dbxout_type): Check Objective-C++ lang.
7904f95f 5557
af62f6f9
RH
55582005-07-19 Richard Henderson <rth@redhat.com>
5559
5560 PR tree-opt/22278
5561 * gimplify.c (gimplify_expr): Use main variant type for the temp
5562 destination for a discarded volatile read.
5563 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
5564 casts between non-void types that change volatility.
5565
b9b8dde3
DD
55662005-07-15 DJ Delorie <dj@redhat.com>
5567
5568 * toplev.h: Add comment about the first parameter for warning().
5569 * errors.h: Likewise.
5570
5571 * c.opt (Wpragmas): New.
5572 * doc/invoke.texi: Document it.
7904f95f 5573
b9b8dde3
DD
5574 * function.c (do_warn_unused_parameter): Add warning control to
5575 warning call.
5576 * c-decl.c (warn_if_shadowing): Likewise.
5577 * c-lex.c (cb_def_pragma): Likewise.
5578 * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
5579 (pop_alignment): Likewise.
5580 (handle_pragma_pack): Likewise.
5581 (apply_pragma_weak): Likewise.
5582 (handle_pragma_weak): Likewise.
5583 (handle_pragma_redefine_extname): Likewise.
5584 (add_to_renaming_pragma_list): Likewise.
5585 (handle_pragma_extern_prefix): Likewise.
5586 (maybe_apply_renaming_pragma): Likewise.
5587 (handle_pragma_visibility): Likewise.
7904f95f 5588
b9b8dde3
DD
5589 * config/c4x/c4x-c.c (BAD): Likewise.
5590 (c4x_parse_pragma): Likewise.
5591 * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
5592 * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
5593 (rs6000_pragma_longcall): Likewise.
5594 * config/v850/v850-c.c (pop_data_area): Likewise.
5595 (ghs_pragma_section): Likewise.
5596 (ghs_pragma_section): Likewise.
5597 (ghs_pragma_interrupt): Likewise.
5598 (ghs_pragma_starttda): Likewise.
5599 (ghs_pragma_startsda): Likewise.
5600 (ghs_pragma_startzda): Likewise.
5601 (ghs_pragma_endtda): Likewise.
5602 (ghs_pragma_endsda): Likewise.
5603 (ghs_pragma_endzda): Likewise.
5604
6a9a79a8
DB
56052005-07-19 Danny Berlin <dberlin@dberlin.org>
5606 Kenneth Zadeck <zadeck@naturalbridge.com>
5607
5608 * Makefile.in: Removed tree-promote-statics.c
5609 * tree-promote-statics.c: Removed.
5610 * common.opt: Removed flag-promote-statics.
5611 * opts.c: Ditto.
7904f95f 5612 * passes.c: Removed tree-promote-statics pass.
6a9a79a8
DB
5613 * tree-pass.h: Ditto.
5614 * timevar.def: Removed TV_PROMOTE_STATICS.
5615
5616
0219cf3d
GP
56172005-07-19 Gerald Pfeifer <gerald@pfeifer.com>
5618
5619 * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
5620 and *-*-freebsd9.
5621 * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
7904f95f 5622
7876a414
KG
56232005-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5624
5625 PR c/22476
5626 * c-common.c (check_function_arguments): Call
5627 'check_function_format' if either -Wformat or
5628 -Wmissing-format-attribute are specified.
5629 * c-format.c (check_function_format): Check -Wformat before
5630 calling 'check_format_info'.
5631 * c-opts.c (c_common_post_options): Don't warn for
5632 -Wmissing-format-attribute without -Wformat.
5633 * c-typeck.c (convert_for_assignment): Detect additional cases for
5634 -Wmissing-format-attribute.
5635 * doc/invoke.texi (-Wmissing-format-attribute): Document new
5636 behavior.
5637
98ea7437
RG
56382005-07-19 Richard Guenther <rguenther@suse.de>
5639
5640 * config/i386/i386.md (lrint<mode>2): Use temporary
5641 instead of clobbering non-existent memory.
5642
89a0b917
NC
56432005-07-19 Nick Clifton <nickc@redhat.com>
5644
5645 * config/avr/avr.c (legitimate_address_p): Fix debugging print
5646 statement to avoid displaying ASCII control characters.
5647
dfea6c85
BE
56482005-07-19 Ben Elliston <bje@au.ibm.com>
5649
5650 * bt-load.c (link_btr_uses): Fix uninitialised warnings.
5651 * cfganal.c (find_edge_index): Ditto.
5652 * combine.c (combine_instructions): Ditto.
5653 * ddg.c (create_scc): Ditto.
5654 (find_successors): Ditto.
5655 (find_predecessors): Ditto.
5656 (find_nodes_on_paths): Ditto.
5657 (longest_simple_path): Ditto.
5658 * flow.c (update_life_info): Ditto.
5659 (count_or_remove_death_notes): Ditto.
5660 (clear_log_links): Ditto.
5661 * modulo-sched.c (generate_reg_moves): Ditto.
5662 (find_max_asap): Ditto.
5663 (find_max_hv_min_mob): Ditto.
5664 (find_max_dv_min_mob): Ditto.
5665 * sbitmap.c (sbitmap_first_set_bit): Ditto.
5666 * sched-rgn.c (extract_edgelst): Ditto.
5667 * tree-into-ssa.c (prepare_names_to_update): Ditto.
5668 (dump_update_ssa): Ditto.
5669 (ssa_names_to_replace) Ditto.
5670 (switch_virtuals_to_full_rewrite): Ditto.
5671 (update_ssa): Ditto.
5672 * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
5673
b9d33488
DB
56742005-07-18 Daniel Berlin <dberlin@dberlin.org>
5675
5676 Fix PR tree-optimization/22483
7904f95f 5677
b9d33488
DB
5678 * tree-complex.c (create_components): Use
5679 safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
5680 * tree-flow-inline.h (fill_referenced_var_vec): New function.
5681 * tree-flow.h (safe_referenced_var_iterator): New structure.
5682 (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
5683 * tree-ssa-alias.c (setup_pointers_and_addressables): Use
5684 safe_referenced_var iterator.
5685 (add_type_alias): Ditto.
5686
9fa26457
SB
56872005-07-19 Steven Bosscher <stevenb@suse.de>
5688
5689 * loop-init.c (rest_of_handle_loop2): Remove.
5690 (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
5691 rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
5692 (pass_rtl_loop_init, pass_rtl_loop_done,
5693 pass_rtl_move_loop_invariants, pass_rtl_unswitch,
5694 pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
5695 * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
5696 pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
5697 pass_tree_loop_done, and pass_tree_unswitch.
5698 (gate_loop): Rename to gate_tree_loop.
5699 * passes.c (init_optimization_passes): Update for renamed tree
5700 loop passes. Add the new loop2 passes as subpasses of loop2.
5701 * tree-pass.h: Add extern declarations for the new loop2 subpasses.
5702 Update for the renamed tree loop passes.
5703
7825308e
ILT
57042005-07-18 Ian Lance Taylor <ian@airs.com>
5705
5706 PR middle-end/22057
5707 * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
5708 blocks when optimizing.
5709
2928d0f8
SE
57102005-07-18 Steve Ellcey <sje@cup.hp.com>
5711
5712 * common.opt (frename-registers): Initialize to 2.
5713 (fweb): Ditto.
5714 (fgcse-after-reload): Ditto.
5715 * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
5716 (process_options): Only change flag_web, flag_rename_registers,
5717 and flag_rerun_cse_after_loop if not explicitly set by user.
5718
28356f52
JB
57192005-07-18 Jan Beulich <jbeulich@novell.com>
5720
5721 * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
5722 ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
5723 in 64-bit mode the same as DImode in 32-bit mode.
5724 (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
5725 ix86_split_lshr): Likewise. Rename to no longer refer to a specific
7904f95f 5726 mode. Add new mode parameter.
28356f52
JB
5727 * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
5728 * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
5729 x86_64_shift_adj): New expanders.
5730 (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
5731 *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
5732 insns.
5733 Respective new splitters. Use renamed shift splitter helpers in 32-bit
5734 DImode shift splitters.
5735 * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
5736 ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
5737 mode parameter.
5738
422edd6f
JB
57392005-07-18 Jan Beulich <jbeulich@novell.com>
5740
5741 * i386.md (movdi_extzv_1): New.
5742 (zero_extendhidi2): Combine alternatives and never force use of
5743 REX64 prefix.
5744 (zero_extendqidi2): Likewise. Don't restrict input selection.
5745
c625053b
DB
57462005-07-17 Daniel Berlin <dberlin@dberlin.org>
5747
5748 Fix PR tree-optimization/22531
5749 * tree-ssa-pre.c (do_eustores): Make sure LHS is a decl for the
5750 moment.
5751
3b1355f3
DB
57522005-07-17 Daniel Berlin <dberlin@dberlin.org>
5753
5754 * tree-promote-statics.c (pass_promote_statics): Change dump file
5755 name.
5756
57572005-07-17 Daniel Berlin <dberlin@dberlin.org>
45159bf6
DB
5758
5759 * tree-optimize.c (init_tree_optimization_passes): Add
5760 pass_eliminate_useless_stores pass.
5761 * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
5762 * tree-ssa-pre.c (is_copy_stmt): New function.
5763 (follow_copies_till_vuse): Ditto.
5764 (do_eustores): Ditto.
7904f95f
EC
5765 (gate_eustores): Ditto.
5766
7544a87f
RH
57672005-07-16 Richard Henderson <rth@redhat.com>
5768
5769 * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
5770
bf0d50f1
KZ
57712005-07-16 Danny Berlin <dberlin@dberlin.org>
5772 Kenneth Zadeck <zadeck@naturalbridge.com>
5773
5774 * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
5775 ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
5776 ipa-type-escape.h, tree-promote-statics.c
5777 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
7904f95f 5778 ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
bf0d50f1
KZ
5779 tree-promote-statics.c: new files.
5780 * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
5781 nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
5782 int nonlocal_set_p, mark_constant_function): Deleted.
7904f95f 5783 (rest_of_handle_cfg): Removed call to mark_constant_function.
86979811 5784 (nonoverlapping_component_refs_p): Added calls to support
7904f95f 5785 type based aliasing.
86979811 5786 * tree-ssa-alias.c (may_alias_p,
bf0d50f1
KZ
5787 compute_flow_insensitive_aliasing): Ditto.
5788 * calls.c (flags_from_decl_or_type): Removed reference to
7904f95f 5789 cgraph_rtl_info.
86979811 5790 * c-typeck.c (convert_arguments): Make builtins tolerant of having
bf0d50f1
KZ
5791 too many arguments. This is necessary for Spec 2000.
5792 * cgraph.h (const_function, pure_function): Removed.
7904f95f 5793 * common.opt: Added "fipa-pure-const", "fipa-reference",
bf0d50f1
KZ
5794 "fipa-type-escape", and "ftree-promote-static".
5795 * opts.c: Ditto.
7904f95f 5796 * passes.c: Added ipa and tree-promote-statics passes.
bf0d50f1
KZ
5797 * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
5798 TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
bf0d50f1 5799 * tree-dfa.c (referenced_var_lookup_if_exists): New function.
7904f95f 5800 * tree-flow.h: Added exposed sra calls and addition of
bf0d50f1
KZ
5801 reference_vars_info field for FUNCTION_DECLS.
5802 * tree-pass.h: Added passes.
5803 * tree-sra.c: (sra_init_cache): New function.
5804 (sra_insert_before, sra_insert_after) Made public.
5805 (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
5806 and made public.
5807 * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
5808 aliasing. (may_alias_p): Added code to use type escape analysis to
5809 improve alias sets.
5810 * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
5811 code to prune clobbers of static variables based on information
5812 produced in ipa-reference pass. Changed call clobbering so that
5813 statics are not marked as clobbered if the call does not clobber
5814 them.
5815
b6e0bdbd
DB
58162005-07-16 Daniel Berlin <dberlin@dberlin.org>
5817
5818 * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
5819 too.
5820
ff8f80f2 58212005-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
2c00bd42
EB
5822
5823 * doc/install.texi (*-*-solaris2*): Document recommended version
5824 of GNU binutils and mention GNU linker problem on Solaris 10.
5825
0b359b01
JM
58262005-07-16 Joseph S. Myers <joseph@codesourcery.com>
5827
5828 PR c/22421
5829 * c-decl.c (c_build_bitfield_integer_type): New function.
5830 (finish_struct): Call it.
5831 * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
5832
8fcef540
KG
58332005-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5834
5835 * c-typeck.c (digest_init): Call 'convert_for_assignment'
5836 before returning.
5837
84fc24e8
JH
58382005-07-16 Jan Hubicka <jh@suse.cz>
5839
5840 * cfg.c (update_bb_profile_for_threading): Fix profile updating.
5841 (scale_bbs_frequencies_int): Watch roundoff errors.
5842 * predict.c (return_prediction): Initialize return_stmt.
5843
3258272f
JH
58442005-07-16 Jan Hubicka <jh@suse.cz>
5845
5846 * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
5847 after RTL profiling.
5848
01c0a9fa
AP
58492005-07-11 Andrew Pinski <pinskia@physics.uc.edu>
5850
5851 PR middle-end/22398
5852 * fold-const.c (build_range_check): Convert high/low to etype
5853 if we are only comparing against exp.
5854
27811bfe
DB
58552005-07-13 Daniel Berlin <dberlin@dberlin.org>
5856
5857 Fix PR tree-optimization/22376
5858 * tree-ssa-structalias.c (build_constraint_graph): We really meant
5859 special var here.
5860 (need_to_solve): New function.
5861 (compute_points_to_sets): Use it.
7904f95f 5862
2b151cb2
JH
58632005-07-15 Jan Hubicka <jh@suse.cz>
5864
5865 * cfg.c (update_bb_profile_for_threading): More diagnostic.
5866 * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
5867
0691d1d4
RG
58682005-07-15 Richard Guenther <rguenther@suse.de>
5869
5870 * c-common.c (handle_flatten_attribute): New function.
5871 Add flatten function attribute.
5872 * doc/extend.texi: Document flatten function attribute.
5873 * Makefile.in (ipa-inline.o): Depend on hashtab.h.
5874 * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
5875 New functions.
5876 (cgraph_decide_inlining): Handle functions with flatten
5877 attribute.
5878
9f0076e5
DE
58792005-07-14 David Edelsohn <edelsohn@gnu.org>
5880
5881 * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
5882 UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
5883 UNSPEC_XCHG, UNSPEC_AND): New.
5884 (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
5885 UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
5886 * config/rs6000/sync.md (FETCHOP): New code macro.
5887 (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
5888 New code attrs.
5889 (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
5890 (sync_compare_and_swap<mode>): Same.
5891 (sync_lock_test_and_set<mode>): Same.
5892 (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
5893 for QImode and HImode, and not PPC405.
5894 (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
5895 (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
5896 (sync_<fetchop>{si,di}_internal): New.
5897 (sync_nand{si,di}_internal): New.
5898 (sync_old_<fetchop>{si,di}_internal): New.
5899 (sync_old_nand{si,di}_internal): New
5900 (sync_new_<fetchop>{si,di}_internal): New.
5901 (sync_new_nand{si,di}_internal): New.
5902 (atomic_and{si,di}): New.
5903 (sync_new_nand{si,di}_internal): New.
5904 (atomic_and{si,di}): New.
5905 (sync_add<mode>_internal): Delete.
5906 (sync_addshort_internal): Use unspec instead of unspec_volatile.
5907 (sync_sub<mode>_internal): Delte.
5908 (sync_subshort_internal): New.
5909 (sync_andsi_internal): Use unspec instead of unspec_volatile.
5910 (sync_anddi_internal): Delete.
5911 (sync_boolsi_internal): Use unspec instead of unspec_volatile.
5912 (sync_booldi_internal): Delete.
5913 (sync_boolc<mode>_internal): Delete.
5914 (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
5915 (sync_boolc<mode>_internal2): Delete.
5916 (sync_boolcc<mode>_internal): Delete.
5917 (isync, lwsync): Use unspec instead of unspec_volatile.
5918 * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
5919 Revert UNSPEC_VOLATILE.
5920 (rs6000_split_atomic_op): New.
5921 * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
5922
06277571
EC
59232005-07-14 Eric Christopher <echristo@redhat.com>
5924
5925 * config/mips/mips.c (mips_canonicalize_comparison): Cast
5926 argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
5927
b838c72b
EC
59282005-07-14 Eric Christopher <echristo@redhat.com>
5929
5930 * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
5931
3c341936
SB
59322005-07-14 Steven Bosscher <stevenb@suse.de>
5933
5934 PR tree-optimization/22230
5935 * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
5936 the computation of the four cross productions for "range op range".
5937
704b6cb5 59382005-07-14 Alexandre Oliva <aoliva@redhat.com>
86979811 5939 Ulrich Weigand <uweigand@de.ibm.com>
704b6cb5
AO
5940
5941 PR target/20126
5942 * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
5943 in some insn.
5944
a771c4b3
UW
59452005-07-14 Ulrich Weigand <uweigand@de.ibm.com>
5946
5947 * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
5948
6f3113ed
SE
59492005-07-14 Steve Ellcey <sje@cup.hp.com>
5950
5951 * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
5952
cb1119b7
RG
59532005-07-14 Richard Guenther <rguenther@suse.de>
5954
5955 PR middle-end/22347
5956 * config/i386/i386-protos.h (ix86_function_value): Change
5957 prototype to match new target hook.
5958 * config/i386/i386.c (ix86_value_regno): Change prototype
5959 to take extra type argument.
5960 (TARGET_FUNCTION_VALUE): Define.
5961 (ix86_function_ok_for_sibcall): Pass extra argument to
5962 ix86_value_regno, check return slot rtx for exact match.
5963 (ix86_function_value): Take extra parameter. Dispatch to
5964 ix86_value_regno with fndecl/fntype as provided.
5965 (ix86_value_regno): Handle extra type argument.
5966 * config/i386/i386.h (FUNCTION_VALUE): No longer define.
5967
5968 * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
5969 * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
5970 * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
5971 * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
5972 * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
5973
1d636cc6
RG
59742005-07-14 Richard Guenther <rguenther@suse.de>
5975
5976 * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
5977 * calls.c (expand_call): Pass fntype to hard_function_value.
5978 (emit_library_call_value_1): Likewise.
5979 * explow.c: Include target.h.
5980 (hard_function_value): Take extra argument, the fntype.
5981 Use new target hook for function_value.
5982 * expr.h (hard_function_value): Change prototype.
5983 * function.c (aggregate_value_p): Pass 0 as fntype to
5984 hard_function_value.
5985 (assign_parms): Use new target hook for function_value.
5986 Pass 0 as fntype to hard_function_value.
5987 (expand_function_end): Likewise.
5988 * reg-stack.c: Include target.h.
5989 (stack_result): Use new target hook for function_value.
5990 * target-def.h: New target hook function_value.
5991 * target.h: Likewise.
5992 * targhooks.c (default_function_value): New function.
5993 * targhooks.h (default_function_value): Declare.
5994
09d8cc0e
ILT
59952005-07-13 Ian Lance Taylor <ian@airs.com>
5996
5997 * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
5998
df1f6f31
JH
59992005-07-14 Jan Hubicka <jh@suse.cz>
6000
6001 * tree-dfa.c (dump_variable): Use default_def function.
6002 * tree-ssa-alias.c (dump_points_to_info): Likewise.
6003 * tree-ssa.c (verify_use): Likewise.
6004 * tree-ssanames.c (release_ssa_name): Likewise.
6005 * tree-tailcall.c (eliminate_tail_call): Likewise.
6006 (tree_optimize_tail_calls_1): Likewise.
6007 * tree-vrp.c (get_value_range): Likewise.
6008
9ef0b1bd
BE
60092005-07-14 Ben Elliston <bje@au.ibm.com>
6010
6011 * gcc.c (main): Compare language[0] with '*' when iterating over
6012 the infiles.
6013
69950452
AS
6014