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