]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
re PR preprocessor/20348 (File not included when file with same name is included...
[gcc.git] / gcc / ChangeLog
CommitLineData
57247f4b
AP
12005-08-18 Andrew Pinski <pinskia@physics.uc.edu>
2
3 PR middle-end/23408
4 * ipa-inline.c (cgraph_decide_inlining_incrementally): Remove the
5 call to ggc_collect.
6
3a6ebcdc
PB
72005-08-18 Paolo Bonzini <bonzini@gnu.org>
8
9 PR bootstrap/21268
10 * Makefile.in (ALL_CPPFLAGS): Include $(INCLUDES) at the
11 beginning. Remove $(INCLUDES) from all the rules, if following
12 $(ALL_CPPFLAGS) or $(BUILD_CPPFLAGS).
13
f28d3046
JJ
142005-08-29 Jakub Jelinek <jakub@redhat.com>
15
16 PR middle-end/23484
17 * builtins.c (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
18 fold_builtin_strncpy_chk, fold_builtin_snprintf_chk): If len is
19 not constant, but maxlen is, don't set len to maxlen, rather
20 set maxlen to len if len is a constant.
21
37261a5c
ZD
222005-08-29 Zdenek Dvorak <dvorakz@suse.cz>
23
24 PR tree-optimization/23475
25 * tree-ssa-loop-ivcanon.c (remove_empty_loop): Update frequencies
26 and counts.
27
46c5394b
DB
282005-08-28 Daniel Berlin <dberlin@dberlin.org>
29
30 Fix PR middle-end/22455
31
32 * fold-const.c (fold_checksum_tree): Adjust for now-largest tree size.
33 Checksum only the parts of the tree that exist for the tree code.
34
ea407814
DJ
352005-08-28 Dale Johannesen <dalej@apple.com>
36
37 * config/i386/i386.c (nocona_cost): Increase MOVE_RATIO.
38
87e71ff4
AP
392005-08-28 Andrew Pinski <pinskia@physics.uc.edu>
40
41 * tree-vrp.c: Remove obsolete comment in front of vrp_initialize.
42
490272b4
RH
432005-08-28 Richard Henderson <rth@redhat.com>
44
45 * stor-layout.c (finalize_type_size): Revert workaround from 08-26.
46 * tree.c (make_node_stat): Use BITS_PER_UNIT instead of alignment
47 of char_type_node.
48
a6017253
JJ
492005-08-28 Jakub Jelinek <jakub@redhat.com>
50
51 PR ada/23593
52 * builtins.c (get_memory_rtx): Don't strip nops
53 in between COMPONENT_REFs.
54
412f8986
AP
552005-08-27 Andrew Pinski <pinskia@physics.uc.edu>
56
57 PR middle-end/23463
58 * gimplify.c (gimplify_modify_expr_rhs): Remove check for zero sized
59 types.
60 (gimplify_modify_expr): Check for zero sized types and gimplify the
61 rhs and lhs as statements.
62
147a8fb1
JDA
632005-08-27 John David Anglin <dave.anflin@nrc-cnrc.gc.ca>
64
65 PR libgcj/23508
66 * pa/linux-unwind.h (pa32_fallback_frame_state): Use r0 slot in frame
67 state for return address column of signal frames.
68
ec53fc93
DE
692005-08-27 David Edelsohn <edelsohn@gnu.org>
70
71 PR target/23539
72 * config/rs6000/rs6000.c (expand_block_clear): Use HImode when
73 bytes >= 2 not bytes == 2.
74 (expand_block_move): Same.
75
f013cadc
RG
762005-08-27 Richard Guenther <rguenther@suse.de>
77
78 PR target/23575
79 * config/i386/sse.md (sse2_movsd): Add missing closing
80 braces.
81
0cd6c85a
PB
822005-08-27 Paul Brook <paul@codesourcery.com>
83
84 * genrecog.c (enum decision_type): Add DT_num_insns.
85 (struct decision_test): Add u.num_insns.
86 (add_to_sequence): Add DT_num_insns test.
87 (maybe_both_true_2, nodes_identical_1): Handle DT_num_insns.
88 (write_cond, debug_decision_2): Ditto.
89 (change_state): Assume peep2_next_insn never fails.
90 Remove "afterward" argument.
91 (write afterward, write_tree): Update to match.
92 * recog.c (peep2_current_count): New variable.
93 (peep2_next_insn): Check it.
94 (peephole2_optimize): Set peep2_current_count.
95 * recog.h (peep2_current_count): Declare.
96
1b0d2d17
JC
972005-08-26 Josh Conner <jconner@apple.com>
98
99 PR middle-end/23584
100 * ipa-pure-const.c (check_tree): Check for volatile-ness
101 when considering a dereference.
102
24b7d7c3
JJ
1032005-08-27 Jakub Jelinek <jakub@redhat.com>
104
105 * rtl.h (MEM_IN_STRUCT_P): Fix comment typo.
106
435bb2a1
JJ
1072005-08-26 Jakub Jelinek <jakub@redhat.com>
108
109 PR rtl-optimization/23561
110 * builtins.c (get_memory_rtx): Add LEN argument. If MEM_EXPR is
111 a COMPONENT_REF, remove all COMPONENT_REF from MEM_EXPR unless
112 at most LEN bytes long memory fits into the field.
113 (expand_builtin_memcpy, expand_builtin_mempcpy, expand_movstr,
114 expand_builtin_strncpy, expand_builtin_memset, expand_builtin_memcmp,
115 expand_builtin_strcmp, expand_builtin_strncmp): Adjust callers.
116
52e772ba
RH
1172005-08-26 Richard Henderson <rth@redhat.com>
118
119 PR rtl-opt/23560
120 * loop.c (biased_biv_may_wrap_p): New.
121 (maybe_eliminate_biv_1): Use it to suppress non-equality
122 comparison transformations. Delete disabled code.
123
8f34bde6
ILT
1242005-08-26 Ian Lance Taylor <ian@airs.com>
125
126 * combine.c (make_extraction): Avoid reference outside object.
127
d6cde480
R
1282005-08-26 J"orn Rennecke <joern.rennecke@st.com>
129
130 * stor-layout.c (finalize_type_size): Restore behaviour for
131 non-aggregate types to the status quo ante of the patch for
132 pr 23467. Document why it matters.
133
39627fed
JJ
1342005-08-26 Jakub Jelinek <jakub@redhat.com>
135
136 PR c/23506
137 * c-common.c (c_common_nodes_and_builtins): Increase builtin_types
138 array by one element, initialize the BT_LAST element with NULL.
139
297abd0d
DE
1402005-08-26 David Edelsohn <edelsohn@gnu.org>
141
142 * config/rs6000/rs6000.md (eq<mode>_compare): Only enable when
143 optimizing for size.
144 (plus_eqsi): Same.
145 (compare_plus_eqsi): Same.
146 (plus_eqsi_compare): Same.
147 (neg_eq0<mode>): Same.
148 (neg_eq<mode>): Same.
149
150 * config/rs6000/aix52.h (PROCESSOR_DEFAULT): Change to
151 PROCESSOR_POWER4.
152
2ec6cd51
NC
1532005-08-26 Nick Clifton <nickc@redhat.com>
154
155 * config/v850/v850.c (ep_memory_operand): Return FALSE if
156 TARGET_EP is not defined.
157 * config/v850/c850.h (TARGET_CPU_CPP_BUILTINS): Define __EP__ if
158 TARGET_EP is enabled.
159 (OPTIMIZATION_OPTIONS): Do not define MASK_EP when optimizing.
160 * config/v850/v850.md (save_all_interrupt): Only use the EP
161 register if TARGET_EP is defined.
162 (restore_all_interrupt): Likewise.
163 * config/v850/lib1funcs.asm: Update functions so that the EP
164 register is only used if __EP__ is defined.
165
e296c00c
DU
1662005-08-26 David Ung <davidu@mips.com>
167
168 * config/mips/mips.c (mips_expand_prologue): Handle case when
169 generating for MIPS16 and the outgoing argument area is more than
170 SMALL_OPERAND. Use the frame pointer as temporary to generate the
171 add instruction.
172
55d61dba
PW
1732005-08-26 Paul Woegerer <paul.woegerer@nsc.com>
174
175 * config/crx/crx.md: Make doloop_end pattern usage controllable
176 via mloop-nesting=<max-nesting> command line switch. Make sure
177 the combiner cannot use doloop_end_<mode> in an illegal way.
178 * config/crx/crx.c: Use regs up to r6 for argument passing.
179 Refine crx_address_cost (non cst4 displacements are expensive).
180 * config/crx/crx.opt: Add switch for mloop-nesting=.
181
742090fc
AS
1822005-08-26 Adrian Straetling <straetling@de.ibm.com>
183
184 * config/s390/s390.md: ("movstr", "*movstr"): Add patterns.
185 (UNSPEC_MVST): New constant.
186
db21e1d0
AK
1872005-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
188
189 * config/s390/predicates.md ("shift_count_operand", "setmem_operand"):
190 Reject operands containing eliminable registers.
191 * testsuite/gcc.dg/20050825-1.c: New testcase.
192
0621d71a
PB
1932005-08-24 Paolo Bonzini <bonzini@gnu.org>
194 Jan Hubicka <jh@suse.cz>
195
196 * regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.
197
e2889823
PB
1982005-08-24 Paolo Bonzini <bonzini@gnu.org>
199
200 PR tree-optimization/23546
201 * tree-ssa-loop-im.c (for_each_index): Handle INTEGER_CST
202 and REAL_CST nodes.
203
6f48c21a
PS
2042005-08-24 Pete Steinmetz <steinmtz@us.ibm.com>
205
206 * params.def (PARAM_MIN_SPEC_PROB): New.
207 * sched-rgn.c (MIN_PROBABILITY): Delete.
208 (compute_trg_info): Convert to PARAM_VALUE.
209 * doc/invoke.texi (param): Document min-spec-prob.
210
1a1e6a9d
FJ
2112005-08-24 Fariborz Jahanian <fjahanian@apple.com>
212
213 * config/darwin.h: define __PIC__
214 * config/rs6000/darwin.h: Add SUBTARGET_OS_CPP_BUILTINS to
215 TARGET_OS_CPP_BUILTINS macro.
216
130869aa
PB
2172005-08-24 Paolo Bonzini <bonzini@gnu.org>
218
219 * config/rs6000/rs6000.md: Fix thinko in the peephole2 I added
220 yesterday.
221
b9a66240
ZD
2222005-08-24 Zdenek Dvorak <dvorakz@suse.cz>
223
224 * bb-reorder.c (copy_bb, duplicate_computed_gotos): Add argument
225 to duplicate_block.
226 * cfghooks.c (duplicate_block): Added position where to place
227 new block as argument.
228 * cfghooks.h (duplicate_block): Declaration changed.
229 * cfglayout.c (copy_bbs): Add argument after. Pass it to
230 duplicate_block.
231 * cfglayout.h (copy_bbs): Declaration changed.
232 * cfgloop.h (loop_version): Declaration changed.
233 * cfgloopmanip.c (duplicate_loop_to_header_edge): Pass
234 position to copy_bbs.
235 (loop_version): Pass position to duplicate_loop_to_header_edge.
236 Add place_after argument and position new blocks according to
237 it.
238 * modulo-sched.c (sms_schedule): Pass place_after argument
239 to loop_version.
240 * tracer.c (tail_duplicate): Pass argument to duplicate_block.
241 * tree-cfg.c (split_edge_bb_loc): New function.
242 (tree_split_edge, tree_duplicate_sese_region): Use split_edge_bb_loc
243 to determine position of new blocks.
244 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass argument
245 to loop_version.
246 * tree-ssa-threadupdate.c (create_block_for_threading): Pass
247 argument to duplicate_block.
248 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg):
249 Pass position to copy_bbs.
250
87de2376
ZD
2512005-08-24 Zdenek Dvorak <dvorakz@suse.cz>
252
253 * fold-const.c (ptr_difference_const): Use
254 cst_and_fits_in_hwi instead of host_integerp.
255
14a07c92
PB
2562005-08-24 Paolo Bonzini <bonzini@gnu.org>
257
258 * config/darwin.c (gen_pic_offset): New.
259 (machopic_indirect_data_reference, machopic_legitimize_pic_address):
260 Use it.
261
d49195a3
ZD
2622005-08-23 Zdenek Dvorak <dvorakz@suse.cz>
263
264 PR tree-optimization/23486
265 * tree-ssa-loop.c (pass_scev_cprop): Add TODO_update_ssa_only_virtuals.
266
2eab15c9
PE
2672005-08-23 Phil Edwards <phil@codesourcery.com>
268
269 * config.gcc (*-*-vxworks*): Update tm_file, add extra_options,
270 remove use_collect2.
271 (powerpc-wrs-vxworks): Update, split out *-*-vxworksae target.
272
273 * target-def.h (TARGET_HAVE_CTORS_DTORS): Allow target
274 configuration files to override the default value.
275
276 * config/t-vxworks: Remove INSTALL_ASSERT_H. Define STMP_FIXPROTO,
277 EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS.
278 * config/vx-common.h: New file, split out from...
279 * config/vxworks.h: here. Update for VxWorks 6.x and RTP mode.
280 * config/vxworksae.h: New file, for VxWorks AE.
281 * config/vxworks.opt: New file.
282 * config/vxlib.c: Update for VxWorks 6.
283
284 * config/rs6000/t-vxworks (MULTILIB_OPTIONS): New list. Adjust
285 other MULTILIB_* variables appropriately.
286 (LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS): Correct from t-ppccomm.
287 * config/rs6000/t-vxworksae: New file, adjust multilibs for AE.
288 * config/rs6000/vxworks.h: Update for VxWorks 6.
289 * config/rs6000/vxworksae.h: New file, mostly placeholder for now.
290
2501b167
AP
2912005-08-23 Andrew Pinski <pinskia@physics.uc.edu>
292
293 PR target/20799
294 * config/darwin.c (machopic_select_section): Remove the hack to
295 mark "::operator new" and "::operator delete" for coalescing
296 even though they are not weak.
297
d82bf747
AM
2982005-08-24 Alan Modra <amodra@bigpond.net.au>
299
300 * configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
301 * configure: Regenerate.
302
4d3c798d
PB
3032005-08-23 Paolo Bonzini <bonzini@gnu.org>
304
305 PR middle-end/23517
306 * fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert
307 between vectors.
308 * convert.c (convert_to_integer, convert_to_vector): Likewise.
309 * tree-vect-generic.c (tree_vec_extract, expand_vector_operations_1):
310 Likewise.
311
28d0e143
PB
3122005-08-23 Paolo Bonzini <bonzini@gnu.org>
313
314 * config/rs6000/predicates.md (equality_operator): New.
315 * config/rs6000/rs6000.md: Rewrite as a peephole2 the split for
316 comparison with a large constant.
317
6194fd98
MM
3182005-08-23 Mark Mitchell <mark@codesourcery.com>
319
320 * hwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.
321
39d67d5b
R
3222005-08-23 J"orn Rennecke <joern.rennecke@st.com>
323
a11c004b
R
324 * sh.c (sh_builtin_saveregs): If the number of to-be-saved fp
325 registers is even, and we have a hardware double precision fp,
326 align the buffer.
327 (sh_gimplify_va_arg_expr): For floating point arguments, consider
328 size of current argument when checking if argument was passed in
329 registers.
330
331 * sh.c (sh_attr_renesas_p): Handle error_mark_node.
332
39d67d5b
R
333 PR middle-end/23467
334 * stor-layout.c (finalize_type_size): Dont override
335 existing alignment with a smaller alignment from the mode.
336
37b8a73b
SP
3372005-08-23 Sebastian Pop <pop@cri.ensmp.fr>
338
339 * lambda-code.c (lambda_vector_lexico_pos): Moved...
340 * lambda.h (lambda_vector_lexico_pos): ... here.
341 * tree-data-ref.c (build_classic_dist_vector): Return false when
342 the distance vector is lexicographically negative.
343
ce8f9416
SP
3442005-08-23 Sebastian Pop <pop@cri.ensmp.fr>
345
346 PR tree-optimization/23511
347 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Don't
348 handle cases where TYPE_MIN_VALUE or TYPE_MAX_VALUE are NULL_TREE.
349
73ed17ff
JJ
3502005-08-23 Jakub Jelinek <jakub@redhat.com>
351
352 PR tree-optimization/22043
353 * tree.h (count_type_elements): Add ALLOW_FLEXARR argument.
354 * expr.c (count_type_elements): Add ALLOW_FLEXARR argument.
355 If ALLOW_FLEXARR, handle types ending with flexible array member.
356 Pass false as second argument to recursive count_type_elements calls.
357 (categorize_ctor_elements_1, mostly_zeros_p): Pass false as second
358 argument to count_type_elements call.
359 * tree-sra.c (decide_block_copy): Likewise.
360 * gimplify.c (gimplify_init_constructor): If num_type_elements < 0
361 for a constant-sized object, set cleared as well. Pass true as
362 second argument to count_type_elements call.
363
18b10a72
AM
3642005-08-23 Alan Modra <amodra@bigpond.net.au>
365
366 PR target/21571
367 * config/rs6000/rs6000.c (rs6000_legitimate_small_data_p): Rename
368 from legitimate_small_data_p, and make global. Update use.
369 Remove forward declaration.
370 * config/rs6000/rs6000-protos.h (rs6000_legitimate_small_data_p):
371 Declare.
372 * config/rs6000/rs6000.md (movdf_hardfloat32): Allow small data mems.
373
d0515b39
DE
3742005-08-23 David Edelsohn <edelsohn@gnu.org>
375
376 * config/rs6000/rs6000.md (eq<mode>): Use output operand instead
377 of scratch intermediates.
378 (eq<mode>_compare): Same.
379 (neg_eq0<mode>): New.
380 (neg_eq<mode>): Convert to define_insn_and_split.
381
c1fa753e
AM
3822005-08-23 Alan Modra <amodra@bigpond.net.au>
383
384 PR target/23070
385 * config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to
386 stdarg functions, set/clear the fp marker even when no variable
387 args are passed.
388 * config/rs6000/sysv4.opt (mprototype): Describe.
389
27004606
JJ
3902005-08-22 Jakub Jelinek <jakub@redhat.com>
391
392 PR rtl-optimization/23478
393 * regs.h (reg_info): Add throw_calls_crossed.
394 (REG_N_THROWING_CALLS_CROSSED): Define.
395 * flow.c (allocate_reg_life_data): Initialize
396 REG_N_THROWING_CALLS_CROSSED.
397 (propagate_one_insn, attempt_auto_inc): Update
398 REG_N_THROWING_CALLS_CROSSED.
399 * global.c (global_alloc): Don't allocate pseudos across
400 calls that may throw.
401
201ae393
AP
4022005-08-22 Andrew Pinski <pinskia@physics.uc.edu>
403
404 PR c/18715
405 * c-common.c (c_do_switch_warnings): Look for a node where the enum's
406 value is inbetween the range if we did not find an exact match.
407
c85ba4fb
AH
4082005-08-22 Aldy Hernandez <aldyh@redhat.com>
409
410 * doc/invoke.texi (Option Summary): Add ms1 options.
411 * doc/extend.texi: Document interrupt handler attribute for ms1.
412 * doc/md.texi: Document ms1 constraints.
413 * config.gcc: Add ms1-*-elf.
414 * config/ms1/ms1.h: New.
415 * config/ms1/ms1.c: New.
416 * config/ms1/ms1.md: New.
417 * config/ms1/ms1-protos.h: New.
418 * config/ms1/ABI.txt: New.
419 * config/ms1/crti.asm: New.
420 * config/ms1/crtn.asm: New.
421 * config/ms1/lib2extra-funcs.c: New.
422 * config/ms1/t-ms1: New.
423 * config/ms1/ms1.opt: New.
424
70a39602
IR
4252005-08-22 Ira Rosen <irar@il.ibm.com>
426
427 * config/rs6000/altivec.md (xorv4sf3): New.
428 (negv4sf2, neg<mode>2): Likewise.
429
85199961
L
4302005-08-21 H.J. Lu <hongjiu.lu@intel.com>
431
432 PR target/23485
433 * config/ia64/ia64.md (divsi3): Check divide by zero.
434 (udivsi3): Likewise.
435 (divdi3): Likewise.
436 (udivdi3): Likewise.
437
1125164c
JJ
4382005-08-21 Jakub Jelinek <jakub@redhat.com>
439
440 * simplify-rtx.c (simplify_immed_subreg) <case CONST_DOUBLE>: Only clear
441 up to elem_bitsize bits, not max_bitsize.
442
3c0c8f9d
SP
4432005-08-21 Sebastian Pop <pop@cri.ensmp.fr>
444
445 PR tree-optimization/23433
85199961
L
446 * tree-chrec.c (chrec_apply): Translate INTEGER_CST to a
447 REAL_CST when the type is SCALAR_FLOAT_TYPE_P.
3c0c8f9d 448
a1596edc
SP
4492005-08-21 Sebastian Pop <pop@cri.ensmp.fr>
450
451 PR tree-optimization/23434
85199961
L
452 * tree-ssa-loop-niter.c (proved_non_wrapping_p): Give up when
453 the iteration bound is not an INTEGER_CST.
a1596edc 454
429268fc
DN
4552005-08-21 Dorit Nuzman <dorit@il.ibm.com>
456
457 * tree-vect-transform.c (get_initial_def_for_reduction): Set
458 need_epilog_adjust back to false for MIN/MAX case. Set *scalar_def to
459 NULL if need_epilog_adjust is false.
460 (vect_create_epilog_for_reduction): Variable adjust_in_epilog removed.
461 Case 3 always peels first itration, not just for PLUS case, and no need
462 to use scalar_initial_def here. Create an epilog adjustment only if
463 scalar_initial_def is not NULL.
464
465 (vectorizable_reduction): Remove assert.
466
eea1d14a
L
4672005-08-20 H.J. Lu <hongjiu.lu@intel.com>
468
469 PR target/23485
470 * config/ia64/lib1funcs.asm (__divdi3): Check divide by zero.
471 (__moddi3): Likewise.
472 (__udivdi3): Likewise.
473 (__umoddi3): Likewise.
474 (__divsi3): Likewise.
475 (__modsi3): Likewise.
476 (__udivsi3): Likewise.
477 (__umodsi3): Likewise.
478
5e34206b
JJ
4792005-08-20 Jakub Jelinek <jakub@redhat.com>
480
481 * tree-pass.h (TDF_GRAPH): Define.
482 * tree-dump.c (dump_options): Don't set TDF_GRAPH in "all".
483 * passes.c (finish_optimization_passes): Only call
484 finish_graph_dump_file if TDF_GRAPH is set.
485 (execute_one_pass): Only call clean_graph_dump_file if dump_file !=
486 NULL. Set TDF_GRAPH bit.
487 (execute_todo): Call print_rtl_graph_with_bb if TDF_GRAPH is set.
488
2591db65
RE
4892005-08-20 Richard Earnshaw <richard.earnshaw@arm.com>
490
491 * arm.h (arm_stack_offsets): Add locals_base field.
492 * arm.c (arm_get_frame_offsets): Compute it.
493 (thumb_compute_initial_elimination offset): Make the Thumb frame
494 pointer point to the base of the local variables.
495 (thumb_expand_prologue): Update accordingly.
496 (thumb_expand_epilogue): Likewise.
497
498 * arm.md (thumb_movhi_clobber): Make this insn a define_expand. Change
499 mode of clobbered scratch to DImode. Handle a case that's known to
500 need this.
501
fc437ce9
DE
5022005-08-19 David Edelsohn <edelsohn@gnu.org>
503
504 * config/rs6000/rs6000.md (gt0<mode>): Delete.
505 (gt0<mode>_compare): Delete.
506 (neg_gt0<mode>): Delete.
507
c414ac1d
EC
5082005-08-19 Eric Christopher <echristo@apple.com>
509
510 * optabs.h: Change CTI_ to COI_.
511 * optabs.c: Ditto.
512
c8f27794
JW
5132005-08-19 James E Wilson <wilson@specifix.com>
514
515 * builtins.c (expand_builtin_return_addr): Set
516 current_function_accesses_prior_frames when count != 0. Use
517 frame_pointer_rtx when count == 0.
518 * function.h (struct function): Add accesses_prior_frames field.
519 (current_function_accesses_prior_frames): Define.
520 * reload1.c (init_elim_table): Check
521 current_function_accesses_prior_frames.
522 * doc/tm.texi (INITIAL_FRAME_ADDRESS_RTX): Update docs.
523
e3594cb3
DN
5242005-08-19 Diego Novillo <dnovillo@redhat.com>
525
526 * tree-cfgcleanup.c (cleanup_tree_cfg): Fix flowgraph change
527 indicator. Return true if the flowgraph changed during
528 cleanup.
529
52270a3c
DN
5302005-08-19 Diego Novillo <dnovillo@redhat.com>
531
532 PR 23476
533 * tree-cfgcleanup.c (cleanup_control_expr_graph): Fold the
534 conditional expression before testing its value.
535
5c1c631e
DN
5362005-08-19 Diego Novillo <dnovillo@redhat.com>
537
538 * doc/invoke.texi: Fix documentation for -ftree-dominator-opts.
539
3d91803a
DP
5402005-08-19 Devang Patel <dpatel@apple.com>
541
542 PR tree-optimization/23048
543 * tree-if-conv.c (if_convertible_bb_p): Supply basic_block as
544 third parameter. Check whether latch is dominated by exit
545 block or not.
546 (if_convertible_loop_p): Supply exit block itself to
547 if_convertible_bb_p.
c414ac1d 548
e55ef7f4
RE
5492005-08-19 Richard Earnshaw <richard.earnshaw@arm.com>
550
551 PR target/23473
552 * arm.md (arm_load_pic_register): Change argument to the mask of
c414ac1d 553 saved registers. Call thumb_find_work_register if we need a
e55ef7f4 554 scratch register on Thumb.
c414ac1d 555 (arm_expand_prologue): Pass empty register set to
e55ef7f4
RE
556 arm_load_pic_register.
557 (thumb_expand_prologue): Pass live_regs_mask directly to
558 arm_load_pic_register.
559 * arm-protos.h (arm_load_pic_register): Update prototype.
560
d102596b
JR
5612005-08-19 J"orn Rennecke <joern.rennecke@st.com>
562
563 * sh.c (find_sole_member): New function.
564 (sh_gimplify_va_arg_expr): Use it. Allow RECORD_TYPE mode mismatch
565 if the record's alignment is larger than the size of its only member.
566
a132dad6
RE
5672005-08-19 Richard Earnshaw <richard.earnshaw@arm.com>
568
569 PR target/23436
570 * arm.c (thumb_legitimize_reload_address): New function.
571 * arm-protos.h (thumb_legitimize_reload_address): Add prototype.
572 * arm.h (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Call it.
573
4221d00a
PW
5742005-08-19 Paul Woegerer <paul.woegerer@nsc.com>
575
576 * config/crx/crx.c: Implement crx_decompose_address. Reject
577 symbolic displacements since CRX register relative adressing
578 mode can't handle unsigned 32-bit values as displacements.
579 * config/crx/crx.h: Simplify definitions, remove redundant
580 parenthesis and obsolete macros.
581 * config/crx/crx.opt: Add new switch for debugging addresses.
582 * config/crx/crx-protos.h: Add new declarations for above.
583
1581a9a1
AP
5842005-08-19 Andrew Pinski <pinskia@physics.uc.edu>
585
586 PR middle-end/20624
587 * gimple-low.c (block_may_fallthru): Handle CLEANUP_POINT_EXPR by
588 looking past it.
589
52a6edcc
KG
5902005-08-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
591
592 * collect2.c (dup2): Delete.
593 * configure.ac: Don't check for dup2.
594
595 * config.in, configure: Regenerate.
596
8a2209bf
R
5972005-08-18 J"orn Rennecke <joern.rennecke@st.com>
598
599 * sh.c (sh_gimplify_va_arg_expr): Loop to substitute a RECORD_TYPE
600 record with the type of its only member.
601
1e24ce83
DE
6022005-08-18 David Edelsohn <edelsohn@gnu.org>
603
604 * config/rs6000/rs6000.md (ltu<mode>_compare): Convert to
605 define_insn_and_split.
606 (plus_ltu<mode>_compare): Same.
607 (gtu<mode>_compare): Same.
608 (plus_gtu<mode>_compare): Same.
609
90ff949f
DN
6102005-08-18 Dorit Nuzman <dorit@il.ibm.com>
611
612 PR tree-optimization/22228
1e24ce83
DE
613 * tree-ssa-loop (pass_vectorize): Add TODO_verify_loops to
614 todo_flags_start.
90ff949f
DN
615 * tree-vect-transform.c (vect_transform_loop): Mark the variables that
616 are recorded in vect_vnames_to_rename for renaming.
617 * tree-vectorizer.c (vect_vnames_to_rename): New global bitmap.
618 (slpeel_update_phi_nodes_for_guard1): Record virtual vars for renaming
619 in vect_vnames_to_rename.
620 (vectorize_loops): Allocate and free the vect_vnames_to_rename bitmap.
621 * tree-vectorizer.h (vect_vnames_to_rename): New extern variable.
622
f17db6cd
JH
6232005-08-18 Jan Hubicka <jh@suse.cz>
624
625 PR c++/22034
626 * cgraphunit.c (cgraph_varpool_assemble_pending_decls): Emit debug
627 info only for local statics, not for member variables.
628
4286d8ce
VR
6292005-08-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
630
631 * tree-data-ref.c (analyze_siv_subscript_cst_affine): Fix comment typo.
632
b06df647
VR
6332005-08-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
634
635 * c-typeck.c (designator_errorneous): Rename to designator_erroneous.
636
75634129
AP
6372005-08-18 Andrew Pinski <pinskia@physics.uc.edu>
638
639 PR middle-end/16045
640 * builtins.c (fold_builtin): Create a new NOP_EXPR all the time.
641
9bc2a5cb
JW
6422005-08-17 James E Wilson <wilson@specifix.com>
643
644 * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
645 array size check.
646
a2dba291
DE
6472005-08-17 David Edelsohn <edelsohn@gnu.org>
648
649 * config/rs6000/rs6000.md (leu<mode>): Convert to mode macro.
650 (leu<mode>_compare): Same.
651 (plus_leu<mode>): Same.
652 (neg_leu<mode>): Same.
653 (and_neg_leu<mode): Same.
654 (ltu<mode>_compare): Same.
655 (plus_ltu<mode>): Same.
656 (geu<mode>): Same.
657 (geu<mode>_compare): Same.
658 (plus_geu<mode>): Same.
659 (neg_geu<mode>): Same.
660 (and_neg_geu<mode>): Same.
661 (plus_gt<mode>): Same.
662 (gtu<mode>_compare): Same.
663 (plus_gtu<mode>): Same.
664
aa29dfeb 6652005-08-17 Erik Christiansen <erik@dd.nec.com.au>
c414ac1d 666
aa29dfeb
EC
667 * config/v850/lib1funcs.asm (callt_save_interrupt): Fix comment typos.
668 Move call_table_data to end. Delete spurious .text.
669 (callt_save_all_interrupt): Fix comment typo.
670
90e0c734
JW
6712005-08-17 James E Wilson <wilson@specifix.com>
672 Kevin Winchester <winchester@amirix.com>
673
674 PR target/21684
675 * config/mcore/mcore.h (SHIFT_COUNT_TRUNCATED): Define to 0.
676
87bb8864
UB
6772005-08-17 Uros Bizjak <uros@kss-loka.si>
678
679 PR target/23268
680 * config/i386/i386.md ("*fist<mode>2_1"): New pattern.
681 ("lrint<mode>2"): Change expander to use "*fist<mode>2_1" pattern.
682
dd0ae678
R
6832005-08-17 J"orn Rennecke <joern.rennecke@st.com>
684
8a2209bf
R
685 * sh.c (sh_gimplify_va_arg_expr): Don't substitute a RECORD_TYPE
686 record with the type of its only member if the modes don't match.
687
a2dba291 688 * varasm.c (decode_reg_name): Skip empty additional register names.
dd0ae678 689
d28cbb07
ZD
6902005-08-16 Zdenek Dvorak <dvorakz@suse.cz>
691
692 * tree-ssa-loop-im.c (MAX_LSM_NAME_LENGTH, lsm_tmp_name,
693 lsm_tmp_name_length): New.
694 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): New functions.
695 (schedule_sm): Use get_lsm_tmp_name instead of "lsm_tmp".
696
39bd07e8
UW
6972005-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
698 Andreas Krebbel <krebbel1@de.ibm.com>
699
700 * config.gcc: Added z9-109 switch.
701 * config/s390/2084.md ("x_int", "x_agen", "x_lr", "x_la", "x_larl",
702 "x_load", "x_store", "x_branch", "x_call", "x_mul_hi", "x_mul_sidi",
c414ac1d
EC
703 "x_div", "x_sem", "x_cs", "x_vs", "x_stm", "x_lm", "x_other",
704 "x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
39bd07e8
UW
705 "x_floadsf", "x_fstore_df", "x_fstoresf", "x_ftoi", "x_itof"): Enable
706 for "z9_109" cpu attribute.
707 * config/s390/s390.c (z9_109_cost): New processor cost structure.
708 (CONST_OK_FOR_Os, CONST_OK_FOR_Op, CONST_OK_FOR_On): New macros.
709 (s390_handle_arch_option): Added z9-109 switch.
710 (override_options): Set respective cost function for z9-109.
711 (s390_const_ok_for_constraint_p): New constraints Os, Op, On.
712 (legitimate_reload_constant_p): Accept extended immediates.
713 (print_operand): Three new output modifiers added: k, m and o.
714 (s390_adjust_priority, s390_issue_rate): Handle Z9_109 like Z990.
715 (s390_output_mi_thunk): Use extended immediate when possible.
716 * config/s390/s390.h (processor_flags): Added PF_EXTIMM.
717 (TARGET_CPU_EXTIMM, TARGET_EXTIMM): New macros.
718 (CONSTRAINT_LEN): Added length of O constraint.
719 (CLZ_DEFINED_VALUE_AT_ZERO): Definition added.
720 * config/s390/s390.md ("cpu"): New value z9_109 added.
c414ac1d 721 ("*tstdi_extimm", "*tstdi_ccconly_extimm", "*tstsi_extimm",
39bd07e8
UW
722 "*tstsi_cconly_extimm", "*movdi_64extimm", "*extendhidi2_extimm",
723 "*extendqidi2_extimm", "*extendhisi2_extimm", "*extendqisi2_extimm",
724 "*zero_extend<mode>si2_extimm", "*anddi3_extimm", "*iordi3_extimm",
725 "*xordi3_extimm", "clzdi2", "clztidi2"): New patterns.
726 ("*tstdi", "*tstsi", "*movdi_64", "*extendhisi2", "*extendqisi2",
727 "*zero_extend<mode>si2_64", "zero_extendqihi2", "*zero_extendqihi2_64",
728 "*anddi3", "*iordi3", "*xordi3"): Disable for TARGET_EXTIMM.
729 ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs", "*cmpsi_ccs", "*cmpdi_ccu",
730 "*cmpsi_ccu", "*movsi_zarch", "*adddi3_imm_cc", "*adddi3_carry1_cc",
731 "*adddi3_carry2_cc", "*adddi3_cc", "*adddi3_64", "*addsi3_imm_cc",
732 "*addsi3_carry1_cc", "*addsi3_carry2_cc", "*addsi3_cc", "addsi3",
733 "*andsi3_cc", "*andsi3_cconly", "*andsi3_zarch", "*iorsi3_cc",
734 "*iorsi3_cconly", "*iorsi3_zarch", "*xorsi3_cc", "*xorsi3_cconly",
c414ac1d 735 "*xorsi3", "*xorhi3", "*xorqi3"): Added instruction using extended
39bd07e8
UW
736 immediates.
737 ("extend<mode>di2", "extend<mode>si2", "zero_extend<mode>di2",
738 "zero_extend<mode>si2"): Allow memory operands and don't manually emit
739 insns for TARGET_EXTIMM.
740
33d2e547
AK
7412005-08-17 Andreas Krebbel <krebbel1@de.ibm.com>
742
743 * testsuite/gcc.dg/20020926-1.c: Added "-mesa" to dg-options.
744
e5eb9a52
NC
7452005-08-17 Nick Clifton <nickc@redhat.com>
746
747 * config/stormy16/stormy16.c (xstormy16_encode_section_info):
748 Call default_encode_section_info.
749
a318e3ac
SB
7502005-08-17 Steven Bosscher <stevenb@suse.de>
751
752 PR tree-optimization/21574
753 * tree-ssa-ccp.c (likely_value): If the right hand side is a
754 constant, return CONSTANT.
755 (ccp_lattice_meet): Use operand_equal_p instead of simple_cst_equal.
756 (ccp_fold, visit_assignment): Likewise.
757 (evaluate_stmt): Handle UNDEFINED and UNKNOWN_VAL the same way.
758
00d1b1d6
JM
7592005-08-16 James A. Morrison <phython@gcc.gnu.org>
760
761 * c-typeck.c (build_function_call): Call fold_buildN_initializer or
762 fold_buildN instead of buildN then fold_initializer or fold.
763 (build_unary_op): Likewise.
764 (build_binary_op): Likewise.
765 * fold-const.c (fold_initializer): Remove.
766 (fold_build1_initializer): New function.
767 (fold_build2_initializer): New function.
768 (fold_build3_initializer): New function.
769 * tree.h (fold_initializer): Remove.
770 (fold_build1_initializer): New function.
771 (fold_build2_initializer): New function.
772 (fold_build3_initializer): New function.
773
f457cf40
JM
7742005-08-16 James A. Morrison <phython@gcc.gnu.org>
775
776 * fold-const.c (optimize_bit_field_compare): Remove extra fold call.
777 (try_move_mult_to_index): Call fold_build2 instead of build2.
778 (fold_binary): Don't call fold after calls to try_move_mult_to_index.
779 * tree-ssa-loop-niter.c (inverse): Call int_const_binop instead of
780 fold_binary_to_constant.
781 (infer_loop_bounds_from_undefined): Call fold_build2 instead of
782 fold (build.
783 * tree-data-ref.c (tree_fold_divides_p): Use tree_int_cst_equal to
784 check if A == gcd (A, B). Remove TYPE argument.
785 (analyze_offset) Use fold_build2 instead of fold (build.
786 (create_data_ref): Likewise.
787 (analyze_siv_subscript_cst_affine): Update calls to tree_fold_divides_p.
788 * tree-ssa-ccp.c (widen_bitfield): Call fold_build2 instead of build2
789 then fold.
790
4c617d12
KC
7912005-08-17 Kelley Cook <kcook@gcc.gnu.org>
792
793 * config/arm/unaligned-funcs.c,config/i386/crtfastmath.c,
794 ipa-cp.c,ipa-prop.c,ipa-prop.h: Update FSF address.
795
d06526b7
AP
7962005-08-16 Andrew Pinski <pinskia@physics.uc.edu>
797
798 PR tree-opt/23402
799 * gimplify.c (zero_sized_type): New function.
800 (gimplify_modify_expr_rhs): If we have a zero sized type,
801 replace the statement with an empty statement.
802
e9e68ae3
L
8032005-08-16 H.J. Lu <hongjiu.lu@intel.com>
804
805 * config/i386/crtfastmath.c (set_fast_math): Add "=m" for
806 fxsave.
807
e374d5c9
ILT
8082005-08-16 Ian Lance Taylor <ian@airs.com>
809
810 * doc/tm.texi (Label Output): Correct typo.
811
f2dd440f
SB
8122005-08-16 Steven Bosscher <stevenb@suse.de>
813
814 PR target/23376
815 * loop-unroll.c (analyze_insn_to_expand_var): Make sure that
816 force_operand will work later on using have_insn_for.
817
196f5a8d
VR
8182005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
819
820 * fold-const.c (tree_expr_nonnegative_p): Regroup cases.
821
cf0efa6a
ILT
8222005-08-16 Ian Lance Taylor <ian@airs.com>
823
824 PR c++/23337
825 * gimplify.c (gimplify_init_ctor_eval): If we see an element of
826 vector type, don't try to construct it element by element. Add an
827 assertion that we use a FIELD_DECL when building a COMPONENT_REF.
828
3a69437a
VR
8292005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
830
831 * fold-const.c (fold_ternary): Simplify folding of a CALL_EXPR.
832
17ccdd2c
GK
8332005-08-16 Geoffrey Keating <geoffk@apple.com>
834
835 * doc/invoke.texi (Precompiled Headers): Document some more options
836 which are known to be safe.
837
355a9e43
JW
8382005-08-16 James E Wilson <wilson@specifix.com>
839
840 PR tree-optimization/21105
841 * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
842 TREE_OVERFLOW check.
843
ce45ef46
DE
8442005-08-16 David Edelsohn <edelsohn@gnu.org>
845
846 * config/rs6000/rs6000.md (ltu<mode>): Convert to mode macro.
847 (neg_ltu<mode>): Same.
848 (gtu<mode>): Same.
849 (neg_gtu<mode>): Same.
850
543e2cc3
VR
8512005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
852
853 * builtins.c (expand_builtin_strcat): Remove superfluous call to fold.
854 (fold_builtin_isdigit): Use fold_buildN.
855 (build_function_call_expr): Likewise.
856 * c-typeck.c (c_finish_loop): Likewise.
857
28f52a4d 8582005-08-16 J"orn Rennecke <joern.rennecke@st.com>
85199961 859 Richard Shann <rshann@superh.com>
28f52a4d
R
860
861 PR middle-end/20396:
862 * optabs.c (expand_binop): Take TRULY_NOOP_TRUNCATION into account.
863
546ad2d9
SP
8642005-08-16 Sebastian Pop <pop@cri.ensmp.fr>
865
866 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Reword a comment.
867
39c39be0
RE
8682005-08-15 Richard Earnshaw <richard.earnshaw@arm.com>
869
870 PR target/23355
c414ac1d 871 * arm.c (thumb_compute_save_reg_mask): Use similar logic to
39c39be0
RE
872 arm_compure_save_reg0_reg12_mask to determine when the PIC register
873 must be saved.
874
f60c951c
JDA
8752005-08-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
876
877 PR middle-end/23369
878 * fold-const.c (build_range_check): Disable optimization for function
879 pointer expressions on targets that require function pointer
880 canonicalization.
881
5b5dc475
UW
8822005-08-15 Ulrich Weigand <uweigand@de.ibm.com>
883
884 * simplify-rtx.c (simplify_const_relational_operation): When
885 extracting arguments of a COMPARE, recompute the mode as well.
886
1595ec20
ILT
8872005-08-15 Ian Lance Taylor <ian@airs.com>
888
889 * tree.c (build_string): Mark tree CONSTANT and INVARIANT.
890
eb5f0c07
DD
8912005-08-15 DJ Delorie <dj@redhat.com>
892
893 * config/m32c/mov.md (movqi_op): Immediates can't be moved to
894 the stack.
895 (movsi_splittable): Allow, but split, moves to the stack.
896 * config/m32c/m32c.c (m32c_split_move): Always split moves to the
897 stack.
898
06145cb9
KG
8992005-08-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
900
901 * aclocal.m4 (gcc_AC_FUNC_PRINTF_PTR): Delete.
902 * configure.ac: Don't call gcc_AC_FUNC_PRINTF_PTR.
903 * system.h (HOST_PTR_PRINTF): Don't define, poison it.
c414ac1d 904
06145cb9
KG
905 * bitmap.c, c-decl.c, config/i386/i386-interix.h,
906 config/iq2000/iq2000.c, mips-tfile.c, print-rtl.c, print-tree.c:
907 Delete HOST_PTR_PRINTF.
908
909 * configure, config.in: Regenerate.
910
b5568f07
DE
9112005-08-15 David Edelsohn <edelsohn@gnu.org>
912
913 * config/rs6000/rs6000.md (QHSI): New mode macro.
914 (wd): Extend mode attr for QImode and HImode
915 (dbits): New mode attr.
916 (zero_extend<mode>di2): Convert to mode macro.
917
a73035ae
SE
9182005-08-15 Steve Ellcey <sje@cup.hp.com>
919
920 PR target/21841
921 * doc/invoke.texi (-mgnu-ld): Update description.
922 (-mhp-ld): Ditto.
923
7e0923cd
SP
9242005-08-15 Sebastian Pop <pop@cri.ensmp.fr>
925
926 PR 23391
927 * Makefile.in (tree-chrec.o): Depends on real.h.
928 * tree-chrec.c: Include real.h.
929 (chrec_fold_plus_poly_poly, chrec_fold_multiply_poly_poly,
930 chrec_fold_plus_1): Use build_real for SCALAR_FLOAT_TYPE_P.
931 * tree-scalar-evolution.c (add_to_evolution_1,
932 interpret_rhs_modify_expr): Ditto.
933
852c19aa
SP
9342005-08-15 Sebastian Pop <pop@cri.ensmp.fr>
935
936 PR 23386
937 * tree-data-ref.c (estimate_niter_from_size_of_data): When
938 step is negative compute the estimation from init downwards to zero.
c414ac1d 939
b23dce24
JM
9402005-08-14 James A. Morrison <phython@gcc.gnu.org>
941
942 * fold-const (fold_binary): Call fold_build2 instead of fold (build.
943
11598938
UW
9442005-08-14 Ulrich Weigand <uweigand@de.ibm.com>
945
946 * config/s390/s390.c (s390_const_ok_for_constraint_p): Add 'P'
947 constraint.
948 (legitimate_reload_constant_p): Fix handling of lliXX operands.
949 Accept double-word constants that can be split.
950 * config/s390/s390.md ("movti"): Use 'P' constraint.
951 ("*movdi_31", "*movdf_31"): Likewise.
952
8971094d
DB
9532005-08-14 Daniel Berlin <dberlin@dberlin.org>
954
955 Fix PR tree-optimization/22615
c414ac1d 956
8971094d 957 * tree-ssa-structalias.c (solution_set_add): Handle
c414ac1d 958 first_vi_for_offset returning NULL.
8971094d
DB
959 (do_da_constraint): Ditto.
960 (do_sd_constraint): Ditto.
961 (do_ds_constraint): Ditto
962 (find_func_aliases): Ditto.
963 (build_constraint_graph): RHS is allowed be ANYTHING.
964 (first_vi_for_offset): Return NULL if we couldn't find anything at
965 the offset.
c414ac1d 966
c5b2a111
UW
9672005-08-14 Ulrich Weigand <uweigand@de.ibm.com>
968
969 * config/s390/s390.c (s390_canonicalize_comparison): Prefer register
970 over memory as first operand.
971
adb7b764
L
9722005-08-14 H.J. Lu <hongjiu.lu@intel.com>
973
974 PR target/23360
975 * config/i386/crtfastmath.c (set_fast_math): Check if DAZ is
976 available for setting it.
977
1f400bbb
IR
9782005-08-14 Ira Rosen <irar@il.ibm.com>
979
980 PR tree-optimization/23320
c414ac1d
EC
981 * tree-data-ref.c (base_addr_differ_p): Add comment. Check
982 data-refs' types instead of base object nullness. Add check for
983 pointer type data-refs before first location comparison. Remove
1f400bbb
IR
984 assert.
985
db875b15
AS
9862005-08-14 Andreas Schwab <schwab@suse.de>
987
988 * doc/md.texi (Machine Constraints): Fix misplaced @end table.
989
0aca9021
JW
9902005-08-13 James E Wilson <wilson@specifix.com>
991
992 * doc/cpp.texi (__SSP__, __SSP_ALL__): Document.
993 * doc/invoke.texi (-Wstack-protector, -fstack-protector,
994 -fstack-protector-all, --param ssp-buffer-size): Document.
995 (-Wvariadic-macros): Alphabetize.
996 (-fsched-stalled-insns-dep): Add missing 'f'.
997
0ffb94cd
JW
998 * c-cppbuiltin.c (c_cpp_builtins): Add comment for flag_stack_protect
999 macros.
1000
3256a76e
DE
10012005-08-13 David Edelsohn <edelsohn@gnu.org>
1002
1003 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed
1004 or indirect address operand.
1005 (EXTRA_ADDRESS_CONSTRAINT): New.
1006 * config/rs6000/rs6000.md (prefetch): Change constraint "p" to "a".
1007
d7770457
SP
10082005-08-13 Sebastian Pop <pop@cri.ensmp.fr>
1009
1010 PR tree-optimization/22236
1011 * tree-cfg.c (print_pred_bbs, print_succ_bbs): Correctly print
1012 successors and predecessors.
1013 * tree-chrec.c (chrec_convert): Before converting, check that
1014 sequences don't wrap.
1015 * tree-data-ref.c (compute_estimated_nb_iterations): Moved ...
1016 (analyze_array): Extern.
1017 (find_data_references_in_loop): Remove call to
1018 compute_estimated_nb_iterations.
1019 * tree-data-ref.h (analyze_array): Declared.
1020 * tree-flow-inline.h (single_ssa_tree_operand, single_ssa_use_operand,
1021 single_ssa_def_operand, zero_ssa_operands): Fix documentation.
1022 * tree-flow.h (scev_probably_wraps_p): Declare with an extra parameter.
c414ac1d 1023 * tree-scalar-evolution.c (instantiate_parameters_1): Factor entry
d7770457
SP
1024 condition.
1025 * tree-ssa-loop-ivcanon.c: Fix documentation.
1026 * tree-ssa-loop-ivopts.c (idx_find_step): Add a fixme note.
1027 * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): ... here.
1028 (infer_loop_bounds_from_undefined): New.
1029 (estimate_numbers_of_iterations_loop): Use
1030 infer_loop_bounds_from_undefined.
1031 (used_in_pointer_arithmetic_p): New.
1032 (scev_probably_wraps_p): Pass an extra parameter. Call
1033 used_in_pointer_arithmetic_p. Check that AT_STMT is not null.
1034 (convert_step): Fix documentation.
1035 * tree-vrp.c (adjust_range_with_scev): Call instantiate_parameters.
1036 Use initial_condition_in_loop_num and evolution_part_in_loop_num
1037 instead of CHREC_LEFT and CHREC_RIGHT. Adjust the call to
1038 scev_probably_wraps_p.
1039
e2df5c1d
UW
10402005-08-13 Ulrich Weigand <uweigand@de.ibm.com>
1041
1042 * config/s390/s390.c (s390_split_branches): Revert 2005-08-12 change.
1043 (s390_register_info): Ignore clobbered_regs information for fixed
1044 registers, and only fixed registers.
1045 (s390_init_frame_layout): Remove redundant call.
1046
7cd5c075
GP
10472005-08-12 Gerald Pfeifer <gerald@pfeifer.com>
1048
c414ac1d 1049 * doc/invoke.texi (C++ Dialect Options): Add dynamic_cast to
7cd5c075
GP
1050 description of -Wold-style-casts.
1051
7b8acc34
AK
10522005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
1053 Jakub Jelinek <jakub@redhat.com>
1054
1055 * config/s390/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
1056 * config/s390/s390-protos.h (s390_get_thread_pointer): Prototype added.
1057 * config/s390/s390.c (print_operand): New output modifier 'G' added.
1058 (get_thread_pointer): Renamed to s390_get_thread_pointer.
1059 * config/s390/s390.md (stack_protect_set, stack_protect_test): If
1060 TARGET_THREAD_SSP_OFFSET is defined, change operands[1] to
1061 (MEM:P (PLUS:P (tp, TARGET_THREAD_SSP_OFFSET))).
1062 (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
1063 ("stack_protect_set", "stack_protect_test"): New expanders.
1064 ("stack_protect_setsi", "stack_protect_setdi", "stack_protect_testsi",
1065 "stack_protect_testdi"): New insn definitions.
1066
4700982d
AK
10672005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
1068
1069 * config/s390/s390.md ("*movdf_31"): Changed constraint from P to K.
1070
3c60bed5
PB
10712005-08-12 Paul Brook <paul@codesourcery.com>
1072
1073 * config/arm/lib1funcs.asm: Error if __ARM_ARCH__ not set.
1074
f83a336d
AK
10752005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
1076
1077 * config/s390/predicates.md (setmem_operand): New predicate.
1078 (shift_count_operand): Accept ANDs with special constants as
1079 operand.
1080 * config/s390/s390.c (print_shift_count_operand): Skip ANDs
1081 with special constants.
1082 * config/s390/s390.md ("setmem_long", "*setmem_long"): Replaced
1083 shift_count_operand with setmem_operand.
1084
c4d50129
AK
10852005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
1086
1087 * config/s390/s390.c (s390_extract_part, s390_single_part):
1088 Type cast added.
1089 (s390_const_ok_for_constraint_p): Added SImode to the N constraint.
1090 (s390_output_mi_thunk): Don't use lg on 31 bit.
1091 * config/s390/s390.md ("*movdi_31", "*movdf_31"): Added lmy and stmy.
1092 ("*llgt_sisi" and splitter): Replaced TARGET_64BIT with TARGET_ZARCH.
1093
b5c67a49
AK
10942005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
1095
1096 * config/s390/s390.c (CONST_OK_FOR_J, CONST_OK_FOR_K): New macros.
1097 (s390_select_ccmode, s390_rtx_costs, legitimate_reload_constant_p,
1098 s390_init_frame_layout, s390_emit_prologue, s390_emit_epilogue,
1099 s390_output_mi_thunk): Replaced uses of CONST_OK_FOR_CONSTRAINT_P
1100 with one of the new macros.
1101
dc4477f5
AK
11022005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
1103
c414ac1d 1104 * config/s390/s390.c (s390_split_branches, s390_init_frame_layout):
dc4477f5
AK
1105 Don't set save_return_addr_p.
1106 (s390_register_info): Make clobbered_regs not depending on
1107 save_return_addr_p.
1108
ec92bd4b
KK
11092005-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
1110
1111 * gcc.c (LINK_SSP_SPEC): Remove space before a trailing }.
1112 (LINK_COMMAND_SPEC): Add space after %(link_ssp).
1113
8c2efff7
JW
11142005-08-11 James E. Wilson <wilson@specifix.com>
1115
1116 * config/ia64/ia64.h (EXTRA_MEMORY_CONSTRAINT): New.
1117
ea93971a
JJ
11182005-08-11 Jakub Jelinek <jakub@redhat.com>
1119
86bd8ebf
JJ
1120 * dwarf2out.c (add_location_or_const_value_attribute): Prefer
1121 locations gathered by var-tracking in single entry loc_list
1122 over loc_descriptor_from_tree.
1123
ea93971a
JJ
1124 * dwarf2out.c (concat_loc_descriptor): Add can_use_fbreg argument,
1125 pass it down to loc_descriptor.
1126 (loc_descriptor): Pass can_use_fbreg to concat_loc_descriptor.
1127 (containing_function_has_frame_base): Move earlier in the file.
1128 (loc_descriptor_from_tree_1): Use containing_function_has_frame_base
1129 instead of always assuming fbreg can't be used.
1130
dec1f3aa
DE
11312005-08-11 David Edelsohn <edelsohn@gnu.org>
1132
1133 * config/rs6000/altivec.md: Change constraint "m" to "Z".
1134 * config/rs6000/predicates.md (indexed_or_indirect_operand):
1135 Accept address wrapped in AND for Altivec.
1136 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
1137 Strip AND wrapping offset address for Altivec.
1138
7fd6694b
RH
11392005-08-11 Richard Henderson <rth@redhat.com>
1140
1141 PR middle-end/23312
1142 * gimplify.c (gimplify_one_sizepos): Check for INTEGER_TYPE
1143 before using TYPE_IS_SIZETYPE.
1144
4ead2a39
RH
11452005-08-11 Richard Henderson <rth@redhat.com>
1146
1147 PR target/22225
1148 * config/alpha/alpha.c (alphaev4_insn_pipe): Add take pipes for
1149 insn types not present on ev4.
1150 (alphaev5_insn_pipe): Similarly.
1151
da8ce8be
RE
11522005-08-11 Richard Earnshaw <richard.earnshaw@arm.com>
1153
1154 PR target/23250
1155 * arm.c (arm_override_options): If the user has selected callee-super-
1156 interworking, then enable normal interworking.
1157
eb2b0cc0
RO
11582005-08-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1159
1160 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Undef before
1161 redefinition.
1162
b630e240
WZ
11632005-08-11 Wu Zhou <woodzltc@cn.ibm.com>
1164
1165 * doc/rtl.texi: Fix two typos.
1166
cac32996
RG
11672005-08-11 Richard Guenther <rguenther@suse.de>
1168
1169 PR target/23289
1170 * config/i386/i386.c (ix86_function_ok_for_sibcall): Handle
1171 cases where we call to/from functions returning void.
1172
a4faac50
JM
11732005-08-10 James A. Morrison <phython@gcc.gnu.org>
1174
1175 PR c++/23225
1176 * tree.c (build_pointer_type_for_mode): Robustify.
1177
907f033f
JW
11782005-08-10 James E Wilson <wilson@specifix.com>
1179
1180 * defaults.h, config/alpha/alpha.h, config/ia64/ia64.h
1181 (ASM_OUTPUT_ADDR_VEC_ELT): Delete.
1182
1183 * config/alpha/alpha.c (alpha_arg_partial_bytes): Change "(CUM)." to
1184 "cum->".
1185
bb8df8a6
EC
11862005-08-10 Eric Christopher <echristo@apple.com>
1187
1188 * config/rs6000/rs6000.c (mems_ok_for_quad_peep): Rewrite.
1189 * config/rs6000/rs6000.md (*lfq_power2, *stfq_power2): Use
1190 V2DFmode.
1191
4f8dbd34
AP
11922005-08-10 Andrew Pinski <pinskia@physics.uc.edu>
1193
ce31ea84 1194 PR target/21887
4f8dbd34
AP
1195 * config/darwin.c (machopic_indirect_data_reference): Use a new register
1196 for the high part when generating dynamic-no-pic code.
1197
d75e02d6
L
11982005-08-10 H.J. Lu <hongjiu.lu@intel.com>
1199
1200 * config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
1201 (x86_64-*-linux*): Likewise.
1202
1203 * config/i386/crtfastmath.c: New file.
1204 * config/i386/t-crtfm: Likewise.
1205
1206 * config/i386/linux.h (ENDFILE_SPEC): New.
1207 * config/i386/linux64.h (ENDFILE_SPEC): Likewise.
1208
1209 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
1210 crtfastmath.o.
1211
61abee65
DN
12122005-08-10 Dorit Nuzman <dorit@il.ibm.com>
1213
1214 * doc/md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
1215 (vec_shl, vec_shr): Document new operations.
1216 * tree.def (VEC_RSHIFT_EXPR, VEC_LSHIFT_EXPR): Fix comment.
1217
11aac14f
DE
12182005-08-10 David Edelsohn <edelsohn@gnu.org>
1219
1220 * config/rs6000/predicates.md (indexed_or_indirect_address): New.
1221 * config/rs6000/rs6000.md (prefetch): Remove operand 0 mode and
1222 change predicate to indexed_or_indirect_address.
1223
9bd05108
RS
12242005-08-10 Richard Sandiford <richard@codesourcery.com>
1225
1226 * config/arm/lib1funcs.asm (__aeabi_uidiv, __aeabi_idiv): New aliases.
1227 * config/arm/libgcc-bpabi.ver (GCC_3.5): Add __aeabi_idiv,
1228 __aeabi_uidiv, __aeabi_uread4, __aeabi_uread8, __aeabi_uwrite4
1229 and __aeabi_uwrite8.
1230 * config/arm/unaligned-funcs.c: New file.
1231 * config/arm/t-bpabi (LIB2FUNCS_EXTRA): Add unaligned-funcs.c.
1232
defb77dc
PB
12332005-08-09 Paolo Bonzini <bonzini@gnu.org>
1234
1235 * bb-reorder.c (pass_duplicate_computed_gotos, pass_partition_blocks):
1236 Add dump.
1237 * cfglayout.c (pass_insn_locators_initialize): Add dump.
1238 * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes):
1239 Add dump.
1240 * except.c (pass_convert_to_eh_region_ranges): Add dump.
1241 * final.c (pass_shorten_branches): Add dump.
1242 * flow.c (pass_recompute_reg_usage, pass_remove_death_notes): Add dump.
1243 (pass_life): Rename dump.
1244 (rest_of_handle_flow2): Remove initial verify_flow_info.
1245 * function.c (pass_instantiate_virtual_regs): Add dump.
1246 * integrate.c (pass_initial_value_sets): Add dump.
1247 * jump.c (pass_cleanup_barriers, pass_purge_lineno_notes): Add dump.
1248 * loop-init.c (pass_rtl_loop_init, pass_rtl_loop_done): Rename dump.
1249 (pass_rtl_move_loop_invariants, pass_rtl_unswitch, pass_rtl_doloop,
1250 pass_rtl_unroll_and_peel_loops): Rename dump and add gate.
1251 (gate_rtl_move_loop_invariants, gate_rtl_unswitch, gate_rtl_doloop,
1252 gate_rtl_unrool_and_peel_loops): New.
1253 (rtl_move_loop_invariants, rtl_unswitch, rtl_unrool_and_peel_loops,
1254 rtl_doloop): Do not look at flags.
1255 * mode-switching.c (pass_mode_switching): Add dump.
1256 * recog.c (pass_split_all_insns, pass_split_for_shorten_branches,
1257 pass_split_before_regstack): Add dump.
1258 * regmove.c (pass_stack_adjustments): Add dump.
1259 * tree-optimize.c (pass_fixup_cfg): Add dump.
1260
2a6a63c1
KI
12612005-08-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1262
1263 PR 23309
1264 * config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when
1265 deciding which instruction sequence to use.
1266
0ed414a4
DN
12672005-08-09 Dorit Nuzman <dorit@il.ibm.com>
1268
bb8df8a6 1269 * tree-vect-transform.c (vect_create_epilog_for_reduction): Set
0ed414a4
DN
1270 BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
1271
9bc15050
RG
12722005-08-09 Richard Guenther <rguenther@suse.de>
1273
1274 * c-common.c (builtin_function_2): Remove.
1275 (def_builtin_1): New function.
1276 (c_common_nodes_and_builtins): Use def_builtin_1 to
1277 build builtin functions.
1278
07da68fd
JZ
12792005-08-09 Jie Zhang <jie.zhang@analog.com>
1280
1281 * config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
1282 * config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
1283 * config/bfin/bfin.c (bfin_return_in_memory): Update to really match
1284 Visual DSP.
1285
2f133f46
JM
12862005-08-09 James A. Morrison <phython@gcc.gnu.org>
1287
1288 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
1289 fold_binary instead of fold_build2 since we don't care about the
1290 resulting tree.
1291 (loop_niter_by_eval): Likewise.
1292 (compare_trees): Likewise.
1293 (proved_non_wrapping_p): Likewise.
1294
f14e694e
JM
12952005-08-09 James A. Morrison <phython@gcc.gnu.org>
1296
1297 PR c/23161
1298 PR c/23165
1299 * c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
1300 if the if is really empty.
1301
2ef571e2
SB
13022005-08-09 Steven Bosscher <stevenb@suse.de>
1303
1304 PR tree-optimization/23234
1305 * tree-ssa-math-opts.c (place_reciprocal): New enum.
1306 (execute_cse_reciprocals_1): Replace the 'phi' argument with an
1307 argument of the new enum.
1308 (execute_cse_reciprocals): Add reciprocals for function arguments
1309 on the unique successor edge of the entry block. Update other calls
1310 to execute_cse_reciprocals_1.
1311
a9c5ddf9
RH
13122005-08-08 Richard Henderson <rth@redhat.com>
1313
1314 PR 22439
1315 * gimplify.c (gimplify_one_sizepos): Preserve the original type.
1316
22469409
BW
13172005-08-08 Bob Wilson <bob.wilson@acm.org>
1318
1319 * expr.c (write_complex_part): Return after handling MEM.
1320
2d88fcc2
JC
13212005-08-08 Josh Conner <jconner@apple.com>
1322
1323 PR rtl-optimization/23241
1324 * combine.c (simplify_comparison): Fix error in determining
1325 whether to lift a subreg from comparison.
1326
7a4eca66
DE
13272005-08-08 David Edelsohn <edelsohn@gnu.org>
1328
1329 PR target/18506
1330 * config/rs6000/altivec.md (vec_init<mode>): New.
1331 (vec_set<mode>): New.
1332 (vec_extract<mode>): New.
1333 * config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
1334 (rs6000_expand_vector_set): New.
1335 (rs6000_expand_vector_extract): New.
1336 (rs6000_legitimate_offset_address_p): Offset addresses are valid
1337 for Altivec modes before reload.
1338 (altivec_expand_vec_init_builtin): New.
1339 (get_element_number): New.
1340 (altivec_expand_vec_set_builtin): New.
1341 (altivec_expand_vec_ext_builtin): New.
1342 (altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
1343 builtins.
1344 (altivec_init_builtins): Init vec_init, vec_set, and vec_ext
1345 builtins.
1346 * config/rs6000/rs6000.h (rs6000_builtins): Add
1347 ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
1348 ALTIVEC_BUILTIN_VEC_EXT_<mode>.
1349 * config/rs6000/rs6000-protos.h: Declare new functions.
1350
47efdea4
JH
13512005-08-08 Jan Hubicka <jh@suse.cz>
1352
1353 * i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
1354 (legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
1355 * i386.md (movdi*): Use pic_32bit_operand.
1356 * predicates.md (pic_32bit_operand): New.
1357
f303a996
NS
13582005-08-08 Nathan Sidwell <nathan@codesourcery.com>
1359
1360 PR c++/21166
1361 * stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
1362
a5ad7269
JM
13632005-08-07 James A. Morrison <phython@gcc.gnu.org>
1364
1365 * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
1366 (test_for_singularity): Use fold_build2.
1367
914a6ee8
JDA
13682005-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1369
1370 * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
1371
f18faab7
DS
13722005-08-07 Danny Smith <dannysmith@users.sourceforge.net>
1373
1374 * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
1375 (COMMON_ASM_OP) Define.
1376 * config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
1377 (ix86_encode_section_info): Likewise.
1378 (TARGET_ENCODE_SECTION_INFO): Conditionally define as
1379 SUBTARGET_ENCODE_SECTION_INFO.
1380
455c08cb
RH
13812005-08-06 Richard Henderson <rth@redhat.com>
1382
1383 PR 21894
1384 * tree-nested.c (convert_local_reference): Save and restore val_only
1385 around component_ref and friends. Clear walk_subtrees by default.
1386
3300bf07
PG
13872005-08-06 Peter O'Gorman <peter@pogma.com>
1388
1389 PR 21366
1390 * gcc.c (process_command): Check the argument to -b has a dash.
1391 * doc/invoke.texi: Update -b and -V docs.
1392
e2ba06d6
JW
13932005-08-06 James E Wilson <wilson@specifix.com>
1394
1395 * config/mips/cross64.h, config/mips/t-cross64: Delete.
1396
3e0a6ca6
MM
13972005-08-06 Michael Matz <matz@suse.de>
1398
1399 * genattrtab.c (write_attr_get, write_attr_case): Use insn_code
1400 member only if only one insn is associated with the value.
1401
2f806f3b
NC
14022005-08-06 Nick Clifton <nickc@redhat.com>
1403
1404 * config/stormy16/stormy16.h (SYMBOL_FLAG_XSTORMY16_BELOW100):
1405 New define.
3e0a6ca6 1406 (ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
2f806f3b
NC
1407 * config/stormy16/stormy16.c (xstormy16_below100_symbol):
1408 Check symbol flags instead of symbol name mangling.
3e0a6ca6 1409 (xstormy16_asm_output_aligned_common): Likewise. Also
2f806f3b
NC
1410 simplify code since the bss100_section cass is the only case
1411 where the below100 code will be triggered.
3e0a6ca6 1412 (xstormy16_encode_section_info): Encode below100 attribute
2f806f3b
NC
1413 using the SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling
1414 the name.
3e0a6ca6 1415 (xstormy16_strip_name_encoding): Delete - this function is no
2f806f3b 1416 longer needed.
3e0a6ca6 1417 (TARGET_STRIP_NAME_ENCODING): Undefine.
2f806f3b
NC
1418 * config/stormy16/stormy16-protos.h: Delete prototype for
1419 xstormy16_strip_name_encoding.
1420
a4d05547
KH
14212005-08-06 Kazu Hirata <kazu@codesourcery.com>
1422
1423 * Makefile.in, cfgexpand.c, cfgloop.h, cfgloopmanip.c,
1424 config.gcc, ipa-cp.c, ipa-prop.c, ipa-prop.h, reg-stack.c,
1425 tree-ssa-structalias.c, tree-vrp.c, value-prof.c, vec.h,
1426 config/linux.h, config/alpha/alpha.h, config/alpha/linux.h,
1427 config/alpha/predicates.md, config/arc/arc.h,
1428 config/arm/arm.h, config/arm/ieee754-df.S,
1429 config/arm/ieee754-sf.S, config/bfin/bfin.c,
1430 config/bfin/bfin.h, config/c4x/c4x.h, config/crx/crx.c,
1431 config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h,
1432 config/i386/i386.h, config/ia64/ia64.c, config/ia64/ia64.h,
1433 config/m68hc11/m68hc11.h, config/mips/mips.c,
1434 config/mips/mips.h, config/mips/openbsd.h,
1435 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.h,
1436 config/pdp11/pdp11.h, config/rs6000/linux-unwind.h,
1437 config/rs6000/rs6000.c, config/rs6000/rs6000.h,
1438 config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
1439 config/sparc/linux.h, config/sparc/linux64.h,
1440 config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h,
1441 doc/extend.texi, doc/gcov.texi, doc/install.texi,
1442 doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix comment/doc
1443 typos. Follow spelling conventions.
1444
591baeb0
JM
14452005-08-06 Joseph S. Myers <joseph@codesourcery.com>
1446
1447 PR c/23113
1448 * stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
1449 Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
1450 specially. Check for side effects only for COND_EXPR.
1451 * c-typeck.c (c_finish_stmt_expr): Mark statement expression
1452 return with TREE_NO_WARNING.
1453
f7a064b5
RS
14542005-08-06 Richard Sandiford <richard@codesourcery.com>
1455
1456 PR rtl-optimization/23233
1457 * loop.c (combine_movables): Require the modes to be the same.
1458 (move_movables): Remove handling of cases where the replacement
1459 had a different mode to the original.
1460
b17775ab
JM
14612005-08-05 James A. Morrison <phython@gcc.gnu.org>
1462
1463 PR tree-optimization/23128
1464 * tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
1465 subtraction wrap, and set TREE_OVERFLOW if they do.
1466
bb1ecfe8
RH
14672005-08-05 Richard Henderson <rth@redhat.com>
1468
1469 PR 21728
1470 * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into
1471 FORCED_LABEL labels.
1472
50aa8e71
R
14732005-08-05 J"orn Rennecke <joern.rennecke@st.com>
1474
1475 PR middle-end/23135
1476 * reload.c (find_reloads_subreg_address): Pass down TYPE
1477 unchanged. Change all callers except find_reloads_toplev.
1478
b01896cc
MM
14792005-08-05 Michael Matz <matz@suse.de>
1480
1481 * genattrtab.c (current_alternative_string): Remove.
1482 (SIMPLIFY_ALTERNATIVE): Ditto.
1483 (attr_alt_bit_p): Ditto.
1484 (alternative_name): Make const char *.
1485 (evaluate_eq_attr): Remove use of above things.
1486 (simplify_test_exp): Ditto.
1487 (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 .
1488 (simplify_test_exp <AND>): Correct typo (test 'right' not 'left').
1489
3f94bdec
JW
14902005-08-04 James E Wilson <wilson@specifix.com>
1491
1492 * config/ptx4.h, config/sol2.h, config/arm/freebsd.h,
1493 config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h,
1494 config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h,
1495 config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h
1496 (LINK_SPEC): Delete useless %{Wl,*:%*} item.
1497
460f84ed
RH
14982005-08-04 Richard Henderson <rth@redhat.com>
1499
1500 PR 21529
1501 * params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
1502 * params.h (SRA_MAX_STRUCTURE_COUNT): New.
1503 * tree-sra.c (decide_block_copy): Use it. Disable element copy
1504 if we'd have to instantiate too many members.
1505
5a910e43
RH
15062005-08-04 Richard Henderson <rth@redhat.com>
1507
1508 PR 21291
1509 * tree-outof-ssa.c (coalesce_asm_operands): New.
1510 (coalesce_ssa_name): Use it. Split out ...
1511 (coalesce_phi_operands, coalesce_result_decls): ... these.
1512
27c37000
PB
15132005-08-04 Paul Brook <paul@codesourcery.com>
1514
1515 * read-rtl.c (read_quoted_string): Break if EOF.
1516
5808968e
AP
15172005-08-04 Andrew Pinski <pinskia@physics.uc.edu>
1518
1519 * tree.h (fold_build1): Change to macro and call fold_build1_stat.
1520 (fold_build2): Likewise.
1521 (fold_build3): Likewise.
1522 (fold_build1_stat): New function prototype.
1523 (fold_build2_stat): Likewise.
1524 (fold_build3_stat): Likewise.
1525 * fold-const.c (fold_build1): Rename to ..
1526 (fold_build1_stat): this. Add MEM_STAT_DECL. Pass the mem stats
1527 through to build1_stat.
1528 (fold_build2): Rename to ..
1529 (fold_build2_stat): this. Add MEM_STAT_DECL. Pass the mem stats
1530 through to build2_stat.
1531 (fold_build3): Rename to ..
1532 (fold_build3_stat): this. Add MEM_STAT_DECL. Pass the mem stats
1533 through to build3_stat.
1534
d70eadf7 15352005-08-04 David Edelsohn <edelsohn@gnu.org>
6d62ac14 1536 Ian Lance Taylor <ian@airs.com>
d70eadf7
DE
1537
1538 * function.c (assign_stack_local_1): Do not correct stack slot
1539 address if allocation size is smaller than mode size.
1540
c4f548b8
DN
15412005-08-04 Diego Novillo <dnovillo@redhat.com>
1542
1543 PR 22037
1544 * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
1545 (tree_merge_blocks): Propagate anything allowed by
1546 may_propagate_copy.
1547 Clarify documentation.
1548 * passes.c (execute_todo): If cleanup_tree_cfg invalidated the
1549 SSA form, schedule an update if necessary.
1550
2b7c3273
GP
15512005-08-04 Gerald Pfeifer <gerald@pfeifer.com>
1552
1553 * doc/install.texi (Binaries): Remove broken link to
1554 Sinix/Reliant Unix binaries.
1555
b755446c
RH
15562005-08-03 Richard Henderson <rth@redhat.com>
1557
1558 PR 23221
1559 * function.c (stack_protect_epilogue): Export.
1560 * tree.h (stack_protect_epilogue): Declare.
1561 * calls.c (expand_call): Call it.
1562
7904f95f
EC
15632005-08-03 Eric Christopher <echristo@apple.com>
1564
1565 * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
1566 * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
1567 spec.
1568
d783b2a2
JH
15692005-08-04 Jan Hubicka <jh@suse.cz>
1570
1571 * profile.c (branch_prob): Split edges with goto locus on them
1572 to get proper line counts.
1573 * tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
1574
53366450
PB
15752005-08-03 Paul Brook <paul@codesourcery.com>
1576
1577 * function.c (assign_parms): Round current_function_args_size
1578 to PARM_BOUNDARY, not STACK_BOUNDARY.
1579
e81d37df
GK
15802005-08-03 Geoffrey Keating <geoffk@apple.com>
1581
1582 * config/i386/i386.c (x86_elf_aligned_common)
1583 (x86_output_aligned_bss): Don't try to use symbols that aren't defined.
1584
279072c8
ZD
15852005-08-03 Zdenek Dvorak <dvorakz@suse.cz>
1586
1587 PR tree-optimization/23157
1588 * tree-scalar-evolution.c (scev_const_prop): Unshare trees
1589 before emitting them.
1590
9d2b0e12
VR
15912005-08-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1592
1593 PR tree-optimization/19899
1594 * Makefile.in (tree-scalar-evolution.o): Add real.h.
1595 * tree-scalar-evolution.c: Include real.h.
1596 (add_to_evolution): Build constant -1 of correct type.
1597
178df94f
JH
15982005-08-03 Jan Hubicka <jh@suse.cz>
1599
1600 * cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
1601 * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case
1602 profile updating for complette unrolling.
1603 * loop-unroll.c (peel_loop_completely): Use it.
1604 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
1605 (tree_unroll_loops_completely): Disable code growing unrolling of cold
1606 loops.
1607
4164b2fb
PB
16082005-08-03 Paul Brook <paul@codesourcery.com>
1609
1610 * combine.c (can_change_dest_mode): New function.
1611 (try_combine, simplify_set): Use it.
1612
4e2b3c87
EB
16132005-08-03 Eric Botcazou <ebotcazou@adacore.com>
1614
1615 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force
1616 TFmode to BLKmode.
1617
1d7887ca
GP
16182005-08-03 Gerald Pfeifer <gerald@pfeifer.com>
1619
1620 * doc/install.texi (Specific): Adjust link to openavr.org.
1621 (Specific): Remove broken reference to GCC 2.8.1 for OS/2.
1622 (Binaries): Adjust HP-UX Porting Center link.
1623 (Binaries): Adjust Free Software Foundation ordering link.
1d7887ca 1624
c7f59e9c
AP
16252005-08-03 Andrew Pinski <pinskia@physics.uc.edu>
1626
1627 * convert.c (convert_to_integer): Use fold_build1 instead of
1628 build1 when converting an integer to an integer.
1629
65030b76
RH
16302005-08-02 Richard Henderson <rth@redhat.com>
1631
1632 * combine.c (combine_instructions): Don't use reg_equal/equiv
1633 results if the mode doesn't match.
1634
6d1ab63a
MM
16352005-08-02 Mark Mitchell <mark@codesourcery.com>
1636
1637 * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
1638 * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
1639
6d90db3a
RH
16402005-08-02 Richard Henderson <rth@redhat.com>
1641
1642 PR 23196
7904f95f 1643 * explow.c (memory_address): Remove special-case for
6d90db3a
RH
1644 virtual_stack_vars_rtx and virtual_incoming_args_rtx.
1645
78234a86
DN
16462005-08-02 Diego Novillo <dnovillo@redhat.com>
1647
1648 PR 23164
1649 * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
1650 number of calls to cleanup_tree_cfg_1.
1651
5a006700
MR
16522005-08-02 Martin Reinecke <martin@mpa-garching.mpg.de>
1653
1654 * doc/invoke.texi: document file extensions .F90 and .F95
1655
237504fc
RG
16562005-08-02 Richard Guenther <rguenther@suse.de>
1657
1658 * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
1659 positive if its first argument is positive.
1660
e63c84d8
RG
16612005-08-02 Richard Guenther <rguenther@suse.de>
1662
1663 PR tree-optimization/23177
1664 * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
1665 on TMR_TAG.
1666
08303d5b
JM
16672005-08-02 James A. Morrison <phython@gcc.gnu.org>
1668
1669 PR tree-optimization/23129
1670 * tree-vrp.c (extract_range_from_binary_expr): Set value range to
1671 varying for divisions with anti-ranges.
1672
5e5a504e
JH
16732005-08-02 Jan Hubicka <jh@suse.cz>
1674
1675 * tree-ssa-dom.c (thread_across_edge): Remove updating here.
1676 * tree-ssa-threadupdate.c (thread_block): Add it here.
1677
4dbdb061
JW
16782005-08-01 James E Wilson <wilson@specifix.com>
1679
1680 * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
1681 TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
1682 * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
1683 New.
1684 * config/mips/predicates.md (const_call_insn_operand): Add check for
1685 SYMBOL_REF_LONG_CALL_P.
1686 * doc/extend.texi (long_call): Document the new attribute.
1687
9e254451
ILT
16882005-08-01 Ian Lance Taylor <ian@airs.com>
1689 Richard Henderson <rth@redhat.com>
1690
1691 * Makefile.in (RTL_BASE_H): Add real.h.
1692 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
1693 instead of memcpy.
1694 * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
1695 directly.
1696 * rtl.c (rtl_check_failed_code_mode): New.
1697 * rtl.h (struct rtx_def): Add u.rv.
1698 (XCMWINT, XCNMPRV): New.
1699 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
1700 (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
1701
5671655e
RH
17022005-08-01 Richard Henderson <rth@redhat.com>
1703
75735872
RH
1704 * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
1705 with auto-inc codes.
1706
5671655e
RH
1707 * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
1708
72ce3d4a
JH
17092005-08-01 Jan Hubicka <jh@suse.cz>
1710
1711 * i386-protos.h (asm_preferred_eh_data_format): Declare.
1712 * i386.c: Include dwarf2.h
1713 (asm_preferred_eh_data_format): New.
1714 * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
1715
23d28bfe
ILT
17162005-08-01 Ian Lance Taylor <ian@airs.com>
1717
1718 * config/host-linux.c (linux_gt_pch_get_address): Add new name
1719 randomize_va_space for virtual address randomization control.
1720
d6e14e8f
SB
17212005-08-01 Steven Bosscher <stevenb@suse.de>
1722
1723 * common.opt (flag_ipa_cp): Put in right place to maintain
1724 alphabetic sort.
1725
5ded7254
JH
17262005-08-01 Jan Hubicka <jh@suse.cz>
1727
1728 * profile.c (compute_value_histograms): Fix thinko.
1729 * value-prof.c: Include toplev.h
1730 (check_counter): New function.
1731 (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
1732 tree_mod_subtract_transform): Add sanity check.
1733
a8f82ec4
RG
17342005-08-01 Richard Guenther <rguenther@suse.de>
1735
1736 PR tree-optimization/23133
1737 * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
1738 current functions parameter decls to find defs to cse
1739 reciprocals of.
1740
ac264fef
RG
17412005-08-01 Richard Guenther <rguenther@suse.de>
1742
1743 PR tree-optimization/23109
1744 * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
1745 If trapping math is in effect, use post-dominator information
1746 to check if we'd in any case reach a trapping point before
1747 doing the reciprocal insertion.
1748 (execute_cse_reciprocals): Compute post-dominators, if necessary.
1749 * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
1750 expressions are invariant only if trapping math is not in effect.
1751
57fb5341
RL
17522005-08-01 Razya Ladelsky <razya@il.ibm.com>
1753
5a006700
MR
1754 * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
1755 cgraph_function_versioning): New declarations.
1756 * cgraphunit.c: Add include to ipa-prop.h.
1757 (update_call_expr, cgraph_copy_node_for_versioning,
1758 cgraph_function_versioning): New functions.
1759 * integrate.c (copy_decl_for_inlining): Remove.
1760 * ipa-prop.h (ipa_replace_map): New struct.
1761 (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
1762 * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
1763 ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
1764 ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
1765 ipcp_iterate_stage, ipcp_method_scale_print,
1766 ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
1767 ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
1768 ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
1769 ipcp_update_bb_counts, ipcp_update_profiling,
1770 ipcp_update_edges_counts): New functions.
1771 (ipcp_method_cval_init): Remove restriction regarding local methods.
1772 (ipcp_init_stage): Add ipcp_method_compute_scale.
1773 (ipcp_insert_stage): Add versioning.
1774 (ipcp_structures_print): Add ipcp_method_scale_print.
1775 (ipcp_driver): Dump profiling info.
1776 * Makefile.in: Remove integrate.h dependency from tree-inline.o.
1777 Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
1778 * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
1779 (struct inline_data): Add versioning_p, ipa_info, new fields.
1780 (remap_decl, mark_local_for_remap_r, setup_one_parameter,
1781 declare_return_variable): Replace calls to copy_decl_for_inlining with
1782 copy_decl_for_dup.
1783 (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
1784 versioning support.
1785 (copy_decl_for_dup): Rename from copy_decl_for_inlining.
1786 Add argument VERSIONING.
1787 (copy_arguments_for_versioning, copy_static_chain,
1788 function_versionable_p, tree_versionable_function_p,
1789 tree_function_versioning, replace_ref_tree): New functions.
1790 * tree-inline.h: Include varray.h.
1791 (tree_versionable_function_p, tree_function_versioning,
1792 tree copy_decl_for_dup): New declarations.
57fb5341
RL
1793
17942005-08-01 Razya Ladelsky <razya@il.ibm.com>
1795
5a006700
MR
1796 * ipa-cp.c: New file. Contains IPCP specific functionality.
1797 * ipa-prop.h: New file. Contains structures/definitions that can be
1798 used by several interprocedural data flow optimizations (and also IPCP).
1799 * ipa-prop.c: New file.
1800 * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
1801 * common.opt: Add ipa-cp flag.
1802 * timevar.def: Add IPCP optimization.
1803 * tree-optimize.c (init_tree_optimization_passes): Schedule
1804 pass_ipa_cp.
1805 * tree-pass.h (pass_ipa_cp): Declare.
57fb5341 1806
569b7f6a
KH
18072005-08-01 Kazu Hirata <kazu@codesourcery.com>
1808
1809 * dwarf2out.c, fold-const.c, ipa-type-escape.c,
1810 loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
1811 tree-sra.c, config/arm/arm.c, config/crx/crx.c,
1812 config/i386/i386.c, config/mips/mips.h,
1813 config/rs6000/rs6000.h, config/sh/sh.c,
1814 config/stormy16/stormy16.c: Fix comment typos.
1815
5922c215
JM
18162005-08-01 Joseph S. Myers <joseph@codesourcery.com>
1817
1818 PR c/22311
1819 * c-typeck.c (build_binary_op): Use common_type wrapper on
1820 shortened types.
1821 (common_type): Update comment.
1822
a3f4b7d8
SB
18232005-07-31 Steven Bosscher <stevenb@suse.de>
1824
1825 PR target/23095
1826 * common.opt (flag_gcse_after_reload): Don't initialize to 2.
1827 (flag_rerun_cse_after_loop): Initialize this to 2 instead.
1828 * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
1829
baf7a0d3
JH
18302005-07-31 Jan Hubicka <jh@suse.cz>
1831
1832 * pretty-print.h (pp_widest_integer): New macro.
1833 * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
1834 counts.
1835
7dcbf659
JH
18362005-07-31 Jan Hubicka <jh@suse.cz>
1837
1838 * output.h (enum section_category): Export from varasm.c
1839 (categorize_decl_for_section): Likewise.
1840 * varasm.c (enum section_category): Kill.
1841 (categorize_decl_for_section): Make global.
1842 * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
1843 Declare.
1844 * i386.c (ix86_section_threshold): New static variable.
1845 (ix86_in_large_data_p, ix86_encode_section_info,
1846 x86_64_elf_unique_section,
1847 x86_64_elf_select_section): New functions.
1848 (TARGET_ENCODE_SECTION_INFO): Define
1849 (override_options): Enable medium model for PIC.
1850 (ix86_expand_prologue): Expand gen_set_got_rex64.
1851 (legitimate_constant_p): Handle new UNSPECs.
1852 (legitimate_pic_address_disp_p): Likewise.
1853 (legitimize_pic_address): Lower MEDIUM model addressing.
1854 * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
1855 (enum cmodel): Add MEDIUM_PIC.
1856 (SYMBOL_REF_FAR_ADDR_P): New macro.
1857 (SYMBOL_FLAG_FAR_ADDR): New flag.
1858 * i386.md (movdi): Support medium model.
1859 (set_got_rex64): New pattern.
1860 * i386.opt (mlarge-data-threshold): New flag.
1861 * predicates.md (zext_operand/sext_operand): Deal with medium model.
1862 * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
1863 (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
1864 TARGET_ASM_UNIQUE_SECTION): New.
1865
1866 * invoke.texi (-mlarge_data_threshold): Document
1867
0bde02b3
JH
18682005-07-31 Jan Hubicka <jh@suse.cz>
1869
1870 * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
1871 (coalesce_vars): Likewise.
1872 * tree-ssa-live.c (coalesce_cost): New.
1873 (build_tree_conflict_graph): Use coalesce_cost.
1874 * tree-ssa-live.h (coalesce_cost): Declare.
1875
a4ccc336
RE
18762005-07-30 Richard Earnshaw <richard.earnshaw@arm.com>
1877
1878 * arm.md (all peepholes for post-increment operations): Delete.
1879 (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
1880 (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
1881 (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
1882 (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
1883 (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
1884
06581725
JM
18852005-07-30 James A. Morrison <phython@gcc.gnu.org>
1886
1887 * fold-const.c (tree_expr_nonnegative_p): Always return true for
1888 non-integral types.
1889
0cbc4d77 18902005-07-29 Wolfgang Bangerth <bangerth@dealii.org>
d6e14e8f 1891
0cbc4d77
WB
1892 PR target/22582
1893 * doc/invoke.texi: Document -rdynamic.
d6e14e8f 1894
91d975b8
JM
18952005-07-30 Joseph S. Myers <joseph@codesourcery.com>
1896
1897 PR c/23143
1898 * c-parser.c (c_parser_parms_list_declarator): Call
1899 mark_forward_parm_decls.
1900 * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
1901 decls with visibility structure.
1902
f26b8ec9
PB
19032005-07-30 Paul Brook <paul@codesourcery.com>
1904
1905 * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
1906
a14b88bb
PB
19072005-07-30 Paul Brook <paul@codesourcery.com>
1908
1909 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
1910 prototype.
1911 * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
1912 value for mode.
1913 * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
1914
7c47d6e9
JM
19152005-07-29 Joseph S. Myers <joseph@codesourcery.com>
1916
1917 PR c/529
1918 * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
1919 nested function declarators.
1920 (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
1921 (grokparms): Call warn_if_shadowing for parameters used within the
1922 parameter list.
1923 (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
1924 not used within the parameter list.
1925 (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
1926
3bc751bd
JH
19272005-07-30 Jan Hubicka <jh@suse.cz>
1928
1929 * expr.c (expand_expr_real_1): Do not load mem targets into register.
1930 * i386.c (ix86_fixup_binary_operands): Likewise.
1931 (ix86_expand_unary_operator): Likewise.
1932 (ix86_expand_fp_absneg_operator): Likewise.
1933 * optabs.c (expand_vec_cond_expr): Validate dest.
1934
bc1594c1
JM
19352005-07-29 Joseph S. Myers <joseph@codesourcery.com>
1936
1937 PR c/21720
1938 * real.c (real_from_string): Also set last bit if there is a
1939 nonzero hex digit beyond GCC's internal precision after ".".
1940
3aca4bff
DE
19412005-07-29 David Edelsohn <edelsohn@gnu.org>
1942
1943 * config/rs6000/altivec.md: Convert UNSPEC numerical values to
1944 define_constants. Change duplicate values to unassigned numbers.
1945 Change UNSPEC_SUBS to UNSPEC_VSUBS.
1946 (*altivec_vspltsf): New.
1947 (altivec_vperm_v4sf): Delete.
1948 (altivec_vperm_<mode>): Use mode macro V.
1949 (altivec_vsldoi_<mode>): Convert to mode macro pattern.
1950 (altivec_predicate_v4sf): Delete.
1951 (altivec_predicate_<mode>): Use mode macro V.
1952 (*altivec_lvesfx): New.
1953 (*altivec_stvesfx): New.
1954 (vec_realign_load_v4sf): Delete.
1955 (vec_realign_load_<mode>): Use mode macro V.
1956 * config/rs6000/rs6000.c (generate_set_vrsave): Use
1957 UNSPECV_SET_VRSAVE.
1958
b28250ab
MM
19592005-07-29 Mark Mitchell <mark@codesourcery.com>
1960
1961 PR bootstrap/23131
1962 * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
7904f95f 1963 string.
b28250ab
MM
1964 * configure: Regenerated.
1965
eae50c87
PB
19662005-07-29 Paul Brook <paul@codesourcery.com>
1967
1968 * doc/install.texi: Add link to GFortran binaries wiki page.
1969
79dad081
DU
19702005-07-29 David Ung <davidu@mips.com>
1971
1972 * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
1973 (mips_rtx_cost_data): Add costs for 5kc and 5kf.
1974 * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
1975 * config/mips/mips.md (cpu): Add 5kf name.
1976 (includes): Includes 5k.md.
1977 * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
1978 * doc/invoke.texi (MIPS Options): Updated cpu name supported with
7904f95f 1979 -march flag.
79dad081 1980
89e80dd4
DN
19812005-07-29 Diego Novillo <dnovillo@redhat.com>
1982
1983 PR 22550
1984 * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
1985 (cleanup_tree_cfg): ... here.
1986 Call cleanup_tree_cfg_1 until there are no more cleanups to
1987 do.
1988
d2f3ffba
JM
19892005-07-29 James A. Morrison <phython@gcc.gnu.org>
1990
1991 * tree-vrp.c (compare_range_with_value): Return true or false
1992 for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
1993 EQ_EXPR respectively.
1994
536fa7b7
KH
19952005-07-29 Kazu Hirata <kazu@codesourcery.com>
1996
1997 * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
1998 Fix comment typos.
1999
6a2cf9dc
DN
20002005-07-29 Diego Novillo <dnovillo@redhat.com>
2001
2002 * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
2003 (tree_ssa_dominator_optimize): Increment it.
2004 (dump_dominator_optimization_stats): Print it.
2005
abf86bf2
RE
20062005-07-29 Richard Earnshaw <richard.earnshaw@arm.com>
2007 Steven Bosscher <stevenb@suse.de>
2008
2009 PR rtl-optimization/23117
2010 * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
2011 when head == tail. Tidy comment.
2012
37cf6116
RH
20132005-07-28 Richard Henderson <rth@redhat.com>
2014
2015 * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
2016 * cselib.c (rtx_equal_for_cselib_p): Likewise.
2017 * jump.c (rtx_renumbered_equal_p): Likewise.
2018 * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
2019 CONST_INT and CONST_DOUBLE.
2020 (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
2021 * reload.c (operands_match_p): Special case CONST_INT and
2022 CONST_DOUBLE; check mode earlier.
2023
13b22d3a
JM
20242005-07-29 Joseph S. Myers <joseph@codesourcery.com>
2025
2026 PR c/22240
2027 * c-typeck.c (convert_for_assignment): Do not check
2028 DECL_IN_SYSTEM_HEADER on NULL fundecl.
2029
ca8bdb78
JM
20302005-07-29 Joseph S. Myers <joseph@codesourcery.com>
2031
2032 PR c/22192
2033 * c-typeck.c (composite_type): Prefer constant size arrays to
2034 VLAs.
2035
b608d27a
JM
20362005-07-29 Joseph S. Myers <joseph@codesourcery.com>
2037
2038 PR c/21720
2039 * real.c (real_from_string): Set last bit if there is a nonzero
2040 hex digit beyond GCC's internal precision.
2041
a560c83a
RH
20422005-07-28 Richard Henderson <rth@redhat.com>
2043
2044 PR rtl-opt/22619
2045 * cfgcleanup.c (try_forward_edges): Watch out for end of
2046 insn chain.
2047
66f33c03
JW
20482005-07-28 James E Wilson <wilson@specifixinc.com>
2049
2050 PR c/23106
2051 * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
2052
c5a4444c
JH
20532005-07-28 Jan Hubicka <jh@suse.cz>
2054
8a76829c
JH
2055 * Makefile.in (rtl-profile.o): Kill all traces of it.
2056 * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
2057 * coverage.h (rtl_coverage_counter_ref): Kill.
2058 * opts.c (flag_speculative_prefetching_set): Kill.
2059 (flag_loop_optimize_set): New.
2060 (common_handle_option): Disable loop optimizer when profiling;
2061 do not handle speculative prefetching.
2062 * passes.c (init_optimization_passes): Replace pass_profiling combo
2063 by branch_prob pass.
2064 * profile.c (compute_value_histograms): Update for simplified value
2065 profiles.
2066 (rtl_register_profile_hooks): Kill.
2067 (pass_profiling): Kill.
2068 (rest_of_handle_branch_prob): Do not profile.
2069 * toplev.c (process_options): Remove speculative prefetching.
2070 * toplev.h (flag_tree_based_profiling): Kill.
2071 * tree-profile.c (prepare_instrumented_value,
2072 tree_gen_interval_profiler, tree_gen_pow2_profiler,
2073 tree_gen_one_value_profiler, do_tree_profiling): Update for
2074 simplified datastructures.
2075 * value-prof.c: Add comment that speculative prefetching was dropped;
2076 update rest of file for simplified datastructures.
2077 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
2078 rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
2079 find_mem_reference_1, find_mem_reference_2, find_mem_reference,
2080 rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
2081 rtl_mod_subtract, gen_speculative_prefetch,
2082 rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
2083 rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
2084 (gate_handle_value_profile_transformations,
2085 rest_of_handle_value_profile_transformations,
2086 pass_value_profile_transformations): Kill.
2087 * value-prof.h (histogram_value_t): Remove IL based unions.
2088 (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
2089 rtl_profile_hooks): Remove hooks.
2090
2091 * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
2092
c5a4444c
JH
2093 * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
2094 (cgraph_clone_node): Likewise.
2095 * cgraph.h (cgraph_clone_edge): Update prototype.
2096 (cgraph_clone_node): Likewise.
2097 * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
2098 cgraph_clone_node.
2099 (lookup_recursive_calls): Consider profile.
2100 (cgraph_decide_recursive_inlining): Fix updating; use new
2101 probability argument; use profile.
2102 * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
2103 * tree-inline.c (copy_bb): Update clal of clone_edge.
2104 * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
2105
2106 * invoke.texi (min-inline-recursive-probability): Document.
2107
ccf548a7
GP
21082005-07-28 Gerald Pfeifer <gerald@pfeifer.com>
2109
2110 * doc/install.texi (Configuration): Update Valgrind homepage.
2111
2c97f8e4
RH
21122005-07-28 Richard Henderson <rth@redhat.com>
2113
407ab83b 2114 PR middle-end/21362
2c97f8e4
RH
2115 * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
2116 labels we want to delete.
2117 (cfg_layout_merge_blocks): Likewise.
2118
b188ebb1
RH
21192005-07-28 Richard Henderson <rth@redhat.com>
2120
2121 PR target/17692
d6e14e8f
SB
2122 * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
2123 when expanding to nothing.
b188ebb1 2124
facc20ee
JC
21252005-07-28 Josh Conner <jconner@apple.com>
2126
2127 * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
2128 (cgraph_decide_inlining_of_small_functions): Likewise.
2129
9de21a23
JC
21302005-07-28 Josh Conner <jconner@apple.com>
2131
2132 * ipa-inline.c (cgraph_edge_badness): Update comments. Invert shift
2133 direction of badness if negative.
2134 (cgraph_default_inline_p): Add reason to parameters, and assign it
2135 a value.
2136 (cgraph_decide_inlining_of_small_functions): New parameter in call
2137 to cgraph_default_inline_p.
2138 (cgraph_decide_inlining_incrementally): Likewise.
2139 * cgraphunit.c (decide_is_function_needed): Likewise.
2140 * cgraph.h (cgraph_default_inline_p): Likewise.
2141
206048bd
VR
21422005-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2143
2144 * builtins.c: Fix comment typo(s).
2145 * genautomata.c: Likewise.
2146 * gimplify.c: Likewise.
2147 * tree-dfa.c: Likewise.
2148 * tree-flow-inline.h: Likewise.
2149 * tree-into-ssa.c: Likewise.
2150 * tree-ssa-alias.c: Likewise.
2151 * tree-ssa-ccp.c: Likewise.
2152 * tree-ssa-copy.c: Likewise.
2153 * tree-ssa-dce.c: Likewise.
2154 * tree-ssa-dom.c: Likewise.
2155 * tree-ssa-operands.c: Likewise.
2156 * tree-tailcall.c: Likewise.
2157 * tree-vectorizer.c: Likewise.
2158 * tree-vrp.c: Likewise.
2159 * tree.c: Likewise.
2160
d579f20b
JL
21612005-07-28 Jeff Law <law@redhat.com>
2162
d6e14e8f
SB
2163 * tree-vrp.c (test_for_singularity): Extracted from ...
2164 (simplify_cond_using_ranges): Attempt to simplify a relational
2165 test to NE_EXPR. Dump information when a COND_EXPR is simplified.
d579f20b 2166
5bb1823d
DN
21672005-07-28 Dorit Nuzman <dorit@il.ibm.com>
2168
2169 PR tree-optimization/22506
2170 * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
2171 phis whose argument is constant.
2172
b92ba6ff
R
21732005-07-28 J"orn Rennecke <joern.rennecke@st.com>
2174
2175 PR rtl-optimization/18992
2176 Back out this patch:
2177 2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2178 PR optimization/12142
2179 * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
2180 uses of the register in the SET_SRC. Remove unnecessary argument.
2181
2182 Replace it with this:
2183 * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
2184 if flag_non_call_exceptions is set and the insn may trap, pass
2185 pc_rtx as dest for recursion.
2186 In SET_SRC part of SET case, if dest is already set, pass it down
2187 unchanged.
2188
09bac500
JH
21892005-07-28 Jan Hubicka <jh@suse.cz>
2190
2191 * cfg.c (update_bb_profile_for_threading): Use RDIV.
2192 (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
2193 (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
2194 roundoff errors.
2195 * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
2196 profile when available.
2197
21982005-07-28 Jan Beulich <jbeulich@novell.com>
a71aef0b
JB
2199
2200 * config/ia64/ia64.c (ia64_load_pair_ok): New.
2201 (ia64_print_operand): Describe and handle 'X'.
2202 (ia64_register_move_cost): Also handle FP_REGS.
2203 (ia64_preferred_reload_class): Likewise.
2204 (ia64_secondary_reload_class): Likewise.
2205 (ia64_dependencies_evaluation_hook): New local variable c. Initialize
2206 it. Also check for ITANIUM_CLASS_FLDP.
2207 * config/ia64/ia64.h (FP_REGNO_P): New.
2208 (HARD_REGNO_MODE_OK): Remove explusion of TImode.
2209 (reg_class): Add FP_REGS.
2210 (REG_CLASS_NAMES): Adjust for it.
2211 (REG_CLASS_CONTENTS): Likewise.
2212 (REGNO_REG_CLASS): Use FP_REGS where appropriate.
2213 (REG_CLASS_FROM_LETTER): Handle 'x'.
2214 (CLASS_MAX_NREGS): Handle FP_REGS.
2215 (MEMORY_MOVE_COST): Likewise.
2216 * config/ia64/ia64.md (itanium_class): Add fldp.
2217 (type): Handle fldp.
2218 (movti_internal): More allowable operand combinations. Use ldfp8 when
2219 splitting unnecessary. Remove predicable attribute. Adjust
2220 itanium_class attribute.
2221 (smuldi3_highpart): Remove outdated comment.
2222 (mulditi3, umulditi3, rotlti3): New expanders.
2223 (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
2224 (absti2): Disabled new insn for future reference.
2225 Respective new splitters.
2226 * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
2227 * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
2228 * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
2229
77d1d8e0
JM
22302005-07-25 James A. Morrison <phython@gcc.gnu.org>
2231
2232 PR rtl-optimization/23047
2233 * simplify-rtx.c (simplify_const_relational_operation): Respect
2234 flag_wrapv for comparisons with ABS.
2235
ff08cbee
JM
22362005-07-27 James A. Morrison <phython@gcc.gnu.org>
2237
2238 PR tree-optimization/22493
2239 * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
2240 VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
2241
38c28a25
AH
22422005-07-27 Aldy Hernandez <aldyh@redhat.com>
2243
2244 * config/frv/frv.opt (moptimize-membar): New.
2245
2246 * doc/invoke.texi: Document -moptimize-membar and its inverse.
2247
2248 * config/frv/frv.h: Remove machine_function definition.
2249
d6e14e8f
SB
2250 * config/frv/frv.c (struct frv_io): New.
2251 (struct machine_function): Moved from frv.h. Add has_membar_p.
2252 (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
2253 (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
2254 (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
2255 (frv_optimize_membar_global, frv_optimize_membar): New functions.
2256 (frv_reorg): Call frv_optimize_membar when appropriate.
2257 (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
2258 (frv_expand_builtin): Adjust calls accordingly.
2259 (frv_io_address_cookie): New function.
2260 (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
2261 load or store rather than a special insn. Add ccnstant address and
2262 io-type operands to the membar.
38c28a25
AH
2263 (frv_ifcvt_modify_tests): Unsign regno.
2264 (frv_ifcvt_modify_tests): Same.
2265
2266 * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}. Change
2267 UNSPEC_OPTIONAL_MEMBAR constant.
2268 (builtin_read_<mode>): Delete.
2269 (builtin_write_<mode>): Delete.
2270 ("optional_membar_<mode>"): Add operand.
2271
2272 * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
2273 * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
2274 * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
2275 * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
2276 * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
2277 * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
2278 * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
2279 * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
2280 * testsuite/gcc.target/frv/all-read-write-1.c: New.
2281
47c504ea
KK
22822005-07-28 Kaz Kojima <kkojima@gcc.gnu.org>
2283
2284 * df.c (df_uses_record): Handle SCRATCH.
2285
ef11c839
SB
22862005-07-28 Steven Bosscher <stevenb@suse.de>
2287
2288 PR debug/20161
2289 * passes.c (rest_of_decl_compilation): If decl is a type and
2290 we have encountered errors, don't emit debug information.
2291
1eb68dca 22922005-07-27 Kenneth Zadeck <zadeck@naturalbridge.com>
ef11c839 2293
1eb68dca 2294 * params.def: Fixed comment.
7904f95f 2295
10252a62
BH
22962005-07-27 Bjoern Haase <bjoern.m.haase@web.de>
2297
2298 PR target/19885
2299 * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
2300 (TARGET_ASM_UNALIGNED_HI_OP): Add.
2301 (TARGET_ASM_UNALIGNED_SI_OP): Add.
2302
e4598783
SB
23032005-07-27 Steven Bosscher <stevenb@suse.de>
2304
2305 PR c++/22003
2306 * varasm.c (assemble_start_function): Don't do anything that may
2307 require a CFG if the current function is a thunk.
2308
a9fdd472
GK
23092005-07-25 Geoffrey Keating <geoffk@apple.com>
2310
2311 * doc/install.texi (Prerequisites): Mention that perl is needed
2312 to do export control in libstdc++ targetting Darwin.
2313
2bd1e239
SB
23142005-07-27 Steven Bosscher <stevenb@suse.de>
2315
2316 PR rtl-optimization/17808
2317 * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
2318 (sched_insns_conditions_mutex_p): Split out from...
2319 (add_dependence): ...here. But don't call it from here.
2320 (add_dependence_list): Check sched_insns_conditions_mutex_p
2321 before calling add_dependence.
2322 (add_dependence_list_and_free): Likewise.
2323 (fixup_sched_groups): Likewise.
2324 (sched_analyze_1): Likewise.
2325 (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
2326 (sched_analyze): Likewise.
2327 (sched_analyze_insn): Likewise.
2328 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
2329 * sched-rgn.c (add_branch_dependences): Likewise. Also, add
2330 dependencies on all COND_EXEC insns to jumps ending basic blocks
2331 when doing intrablock scheduling.
2332 * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
2333
880031e1
JL
23342005-07-27 Jeff Law <law@redhat.com>
2335
2336 * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
2337 meeting a VR_ANTI_RANGE with a VR_RANGE. When intersecting
2338 equivalency sets, correctly handle the case were vr0 has an
2339 equivalency set, but vr1 does not.
2340
b940ce0e
DN
23412005-07-27 Dorit Nuzman <dorit@il.ibm.com>
2342
2343 PR tree-optimization/23073
7904f95f 2344 * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
b940ce0e
DN
2345 vect_print_dump_info before fprintf.
2346
26c40640
ZD
23472005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
2348
2349 PR tree-optimize/22348
2350 * tree-ssa-loop-niter.c (number_of_iterations_cond):
2351 Fold the partial computation.
2352
3ac01fde
ZD
23532005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
2354
2355 PR tree-optimization/22325
2356 * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
2357 Declare.
2358 * tree-scalar-evolution.c (scev_const_prop): Add generic final
2359 value replacement.
2360 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
2361 (force_var_cost): ... this function.
2362 (compute_phi_arg_on_exit): Export.
2363
77fcaf4b
ZD
23642005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
2365
2366 PR tree-optimization/20773
2367 * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
2368 edge.
2369
c11b0231
RG
23702005-07-27 Richard Guenther <rguenther@suse.de>
2371
2372 * tree-ssa-structalias.c (push_fields_onto_fieldstack):
2373 Avoid pushing again if current struct contains only
2374 fields we decomposed.
2375
57a73709
JH
23762005-07-27 Jan Hubicka <jh@suse.cz>
2377
093c2329
JH
2378 PR tree-optimization/22574
2379 * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
2380 not available.
2381
23504559
JH
2382 * tree-tailcall.c (decrease_profile): New function.
2383 (eliminate_tail_call): Use it.
2384
57a73709
JH
2385 * cgraphunit.c (cgraph_function_and_variable_visibility): Set
2386 visibility flags correctly in whole program mode.
2387
b5395c33
SE
23882005-07-26 Steve Ellcey <sje@cup.hp.com>
2389
2390 PR rtl-optimization/22472
2391 * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
2392
86979811
SB
23932005-07-26 Steven Bosscher <stevenb@suse.de>
2394
2395 PR tree-optimization/22504
2396 * tree-complex.c (expand_complex_addition): Use 'code' instead
2397 of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
2398
faf9ab98
AH
23992005-07-26 Aldy Hernandez <aldyh@redhat.com>
2400
2401 * config.gcc (cpu_type): Add frv case.
2402 (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
2403 (supported_defaults): Add fr550 case.
2404
31521cd4
DN
24052005-07-26 Diego Novillo <dnovillo@redhat.com>
2406
2407 PR 22591
2408 * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
2409 whether a pointer of type T * may point to objects of type T *.
2410
45499411
DD
24112005-07-26 DJ Delorie <dj@redhat.com>
2412
2413 * configure: Regenerate.
2414
576a4795
DJ
24152005-07-26 Dale Johannesen <dalej@apple.com>
2416
2417 * postreload-gcse.c (alloc_mem): Start CUID numbering at 1.
2418
526635cb
MM
24192005-07-26 Mark Mitchell <mark@codesourcery.com>
2420
2421 * doc/install.texi (--with-build-sysroot): Fix grammatical error.
2422 Clarify use of "build" in name.
2423
c14ff86e
AH
24242005-07-26 Aldy Hernandez <aldyh@redhat.com>
2425
2426 * doc/extend.texi (Raw read/write Functions): New section.
2427 * testsuite/gcc.target/frv/all-builtin-read8.c: New.
2428 * testsuite/gcc.target/frv/all-builtin-read16.c: New.
2429 * testsuite/gcc.target/frv/all-builtin-read32.c: New.
2430 * testsuite/gcc.target/frv/all-builtin-read64.c: New.
2431 * testsuite/gcc.target/frv/all-builtin-write8.c: New.
2432 * testsuite/gcc.target/frv/all-builtin-write16.c: New.
2433 * testsuite/gcc.target/frv/all-builtin-write32.c: New.
2434 * testsuite/gcc.target/frv/all-builtin-write64.c: New.
2435 * config/frv/frv.c: Add bdesc_loads global.
2436 Add bdesc_stores global.
2437 (frv_init_builtins): Add support for __builtin_{read/write}*.
2438 (frv_volatile_memref): New.
2439 (frv_expand_load_builtin): New.
2440 (frv_expand_store_builtin): New.
2441 * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
2442 FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
2443 FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
2444 FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
2445 * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
2446 UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
2447 (builtin_read_<mode>): New.
2448 (builtin_write_<mode>): New.
2449 (builtin_write64): New.
2450 (optional_membar_<mode>): New.
2451
db487452
R
24522005-07-26 J"orn Rennecke <joern.rennecke@st.com>
2453
2454 * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
2455 (rather than units) against HOST_BITS_PER_WIDE_INT.
2456
783455db
KH
24572005-07-26 Kazu Hirata <kazu@codesourcery.com>
2458
2459 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
2460 ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
2461 ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
2462 config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
2463 FSF address.
2464
a4174ebf
KH
2465 * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
2466 tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
2467 config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
2468 comment typos.
2469 * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
2470
46c0a59d
RG
24712005-07-26 Richard Guenther <rguenther@suse.de>
2472
2473 PR tree-optimization/22486
2474 * fold-const.c (fold_unary): Fold away useless component
2475 references of the form (T *)&T.x, if the address
2476 doesn't change.
2477
3e2844cb
JW
24782005-07-25 James E Wilson <wilson@specifixinc.com>
2479
2480 * dwarf2out.c (add_call_src_coords_attributes): New.
2481 (gen_inlined_subroutine_die): Call it.
2482 (maybe_emit_file, init_file_table): Add comments.
2483 (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
2484 maybe_emit_file.
2485 * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
2486 (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
2487 * tree.h (BLOCK_SOURCE_LOCATION): New.
2488 (struct tree_block): New field locus.
2489
9275de65
AS
24902005-07-26 Andreas Schwab <schwab@suse.de>
2491
2492 PR rtl-optimization/23043
2493 * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
2494 when allocating a struct unoccr.
2495
5306ec31
RH
24962005-07-25 Richard Henderson <rth@redhat.com>
2497
2498 PR 22626
2499 * tree-complex.c (gate_no_optimization): True if errors.
2500 * Makefile.in (tree-complex.o): Update dependencies.
2501
bfa653b3
AH
25022005-07-25 Aldy Hernandez <aldyh@redhat.com>
2503
2504 * config/frv/predicates.md (integer_register_operand): Use
2505 GPR_AP_OR_PSEUDO_P.
2506
43e364dd
AP
25072005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
2508
2509 PR tree-opt/22484
2510 * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
2511 after fold.
2512 * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
2513
c72f711f
AP
25142005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
2515
2516 * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
2517 types when flag_unsafe_math_optimizations is true.
2518
160633c6
MM
25192005-07-25 Mark Mitchell <mark@codesourcery.com>
2520
2521 * gcc.c (option_map): Add --sysroot.
2522 (process_command): Handle --sysroot.
2523 (display_help): Document it.
2524 * doc/cppopts.tex (-isysroot): Document.
2525 * doc/invoke.texi (--sysroot): Document.
2526 * doc/install.texi (--with-build-sysroot): Document.
2527
2528 * Makefile.in (inhibit_libc): New variable.
2529 (INHIBIT_LIBC_CFLAGS): Likewise.
2530 (LIBGCC2_CFLAGS): Include
2531 $(INHIBIT_LIBC_CFLAGS).
2532 (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
2533 ($(T)crtbegin.o): Do not use @inhibit_libc@.
2534 ($(T)crtend.o): Likewise.
2535 ($(T)crtbeginS.o): Do not use @inhibit_libc@.
2536 ($(T)crtendS.o): Likewise.
2537 ($(T)crtbeginT.o): Do not use @inhibit_libc@.
2538 ($(T)crtendT.o): Likewise.
2539 (stmp-fixinc): Do not complain about missing headers if
2540 inhibit_libc.
2541 * configure.ac (inhibit_libc): Set it to true/false.
2542 (--with-build-sysroot): New option. Use it to set
7904f95f 2543 SYSTEM_HEADER_DIR.
160633c6
MM
2544 * configure: Regenerated.
2545
1490f93a
MH
25462005-07-25 Manfred Hollstein <mh@suse.com>
2547
2548 * calls.c (store_one_arg): Fix unsigned comparison warning.
2549
76e20664
SB
25502005-07-25 Serge Belyshev <belyshev@depni.sinp.msu.ru>
2551
2552 PR other/22337
2553 * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
2554 (ggc_print_statistics): Initialize variable before use.
2555
5c97e2de
RG
25562005-07-25 Richard Guenther <rguenther@suse.de>
2557
2558 * tree-dfa.c (mark_new_vars_to_rename): Protect against
2559 calling with a PHI_NODE argument.
2560
2561 * tree-flow-inline.h (overlap_subvar): Protect against
2562 possible overflow.
2563
7fefc172
PB
25642005-07-25 Paolo Bonzini <bonzini@gnu.org>
2565
2566 * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
2567 * configure: Regenerate.
2568
86a07404
IR
25692005-07-25 Ira Rosen <irar@il.ibm.com>
2570
2571 * expr.c (highest_pow2_factor): Make extern.
2572 * tree-data-ref.c (ptr_decl_may_alias_p): New function.
2573 (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
2574 record_array_differ_p, array_ptr_differ_p): Likewise.
2575 (base_object_differ_p): Rename (from array_base_name_differ_p). Support
2576 additional cases. Call the above functions.
2577 (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
2578 base_object_differ_p when there are two base objects. Otherwise, compare
2579 base address and offset. Call may_alias_p.
2580 (dump_data_reference): Use a correct field name.
2581 (analyze_array): Make static. Initialize new data-ref fields.
2582 (analyze_indirect_ref): New function.
7904f95f
EC
2583 (init_data_ref): Initialize new data-ref fields.
2584 (strip_conversion): Moved from tree-vect-analyze.c.
7fefc172
PB
2585 (analyze_offset_expr, get_ptr_offset, address_analysis,
2586 object_analysis): Likewise.
86a07404 2587 (analyze_offset): New function.
86979811 2588 (create_data_ref): Likewise.
86a07404
IR
2589 (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
2590 dimensions for ARRAY_REFs only.
2591 (build_classic_dist_vector): Make static.
2592 (access_functions_are_affine_or_constant_p): Call macro to get the
2593 address of access functions.
2594 (compute_all_dependences): Add new parameter
7904f95f 2595 compute_self_and_read_read_dependences. Compute self and read-read
86a07404
IR
2596 dependences if it is true.
2597 (find_data_references_in_loop): Call create_data_ref. Initialize new
2598 data-ref fields.
2599 (compute_data_dependences_for_loop): Add new parameter
2600 compute_self_and_read_read_dependences. Remove parameter nb_loops,
7fefc172
PB
2601 compute nb_loops. Call compute_all_dependences,
2602 build_classic_dist_vector and build_classic_dir_vector with correct
2603 parameters.
2604 (analyze_all_data_dependences): Call compute_data_dependences_for_loop
2605 with correct parameters. Compare dimensions for ARRAY_REFs only.
86a07404
IR
2606 (free_data_refs): Call macro to free access functions.
2607 * tree-data-ref.h (struct first_location_in_loop): New structure. Move
2608 fields from stmt_vinfo.
2609 (struct base_object_info): New structure.
7904f95f 2610 (struct data_reference): Move fields to base_object_info. Add fields
86a07404 2611 first_location and object_info for above structures. Move fields from
7fefc172
PB
2612 stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
2613 aligned_to. Add macros to access the new fields.
86a07404
IR
2614 Update functions declarations.
2615 * tree-flow.h (is_aliased_with): Declare.
2616 * tree-loop-linear.c (linear_transform_loops): Call
2617 compute_data_dependences_for_loop with correct parameters.
2618 * tree-ssa-alias.c (is_aliased_with): New function.
86979811 2619 * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
86a07404
IR
2620 (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
2621 (vect_analyze_data_ref_dependence): Get ddr. Remove call to
2622 vect_base_addr_differ_p, compute_subscript_distance and
2623 build_classic_dist_vector. Add printings. Check absolute value of
2624 distance.
7fefc172
PB
2625 (vect_analyze_data_ref_dependences): Go through ddrs instead of
2626 data-refs.
86a07404
IR
2627 (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
2628 stmt. Check aligned_to. Check if the base is aligned. Remove conversion
2629 to bytes. Add printing.
7fefc172
PB
2630 (vect_compute_data_refs_alignment): Go through loads and stores in one
2631 loop.
86a07404
IR
2632 (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
2633 vect_analyze_data_ref_access): Likewise.
2634 (vect_analyze_pointer_ref_access): Remove.
2635 (vect_address_analysis, vect_object_analysis): Likewise.
2636 (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
2637 and analyze data-refs in the loop.
7fefc172
PB
2638 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
2639 fields of data-ref instead of stmt. Add init to the offset from the
2640 base.
86a07404
IR
2641 (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
2642 (vect_update_init_of_dr): Likewise.
2643 (vect_update_inits_of_drs): Go through loads and stores in one loop.
7fefc172
PB
2644 * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
2645 removed fields.
86a07404
IR
2646 (new_loop_vec_info): Initialize new fields.
2647 (destroy_loop_vec_info): Free new fields.
2648 (vect_strip_conversion): Remove.
2649 * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
2650 (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
7904f95f 2651 datarefs. Add new field ddrs.
86a07404
IR
2652 Add macros for the new fields access.
2653 (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
2654 base_aligned_p, misalignment, memtag, ptr_info and subvars.
2655 Remove their macros.
2656 * tree.h (highest_pow2_factor): Declare.
2657
0dc42b03
JJ
26582005-07-25 Jakub Jelinek <jakub@redhat.com>
2659
2660 * calls.c (store_one_arg): Check for sibling call MEM arguments
2661 from already clobbered incoming argument area.
2662
104f8784
KG
26632005-07-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2664
2665 * c-common.c (check_missing_format_attribute): New.
2666 * c-common.h (check_missing_format_attribute): Likewise.
2667 * c-typeck.c (convert_for_assignment): Use it.
2668
1b8452d0
AS
26692005-07-24 Andreas Schwab <schwab@suse.de>
2670
2671 * config/m68k/m68k.md ("extendqidi2"): When source is an address
2672 register use a word move. Correct operand of ext.w in 68000 code.
2673
2b402955
MM
26742005-07-23 Mark Mitchell <mark@codesourcery.com>
2675
2676 * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
2677 variables as declarations, rather than definitions.
2678
c8af1197
IR
26792005-07-24 Ira Rosen <irar@il.ibm.com>
2680
86979811
SB
2681 PR tree-optimization/22526
2682 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
2683 of the zero node.
c8af1197 2684
1b135aa5
FXC
26852005-07-24 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2686
2687 * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
2688 that C99 reserve for future use. Use it to define clog10,
2689 clog10f and clog10l.
2690
ac0f3f39
KG
26912005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2692
2693 * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
2694 * configure.ac: Check for -Wmissing-format-attribute.
7904f95f 2695
ac0f3f39
KG
2696 * configure: Regenerate.
2697
db753fa1
RH
26982005-07-23 Richard Henderson <rth@redhat.com>
2699
2700 PR tree-optimization/22623
2701 * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
2702
28f155be
GB
27032005-07-23 Giovanni Bajo <giovannibajo@libero.it>
2704
2705 PR target/22577
2706 * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
2707
db857e7d
KG
27082005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2709
2710 * Makefile.in (C_TREE_H): Update dependencies.
2711 * c-tree.h: Include toplev.h.
2712 * diagnostic.h (diagnostic_set_info): Add format attribute.
2713 * rtl-error.c (diagnostic_for_asm): Likewise.
2714
118ea793
CF
27152005-07-23 Chao-ying Fu <fu@mips.com>
2716
2717 * config/mips/mips-dsp.md: New file.
2718 * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
2719 * config/mips/mips.c (mips_function_type): Add types for DSP builtin
2720 functions.
2721 (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
2722 MIPS_BUILTIN_BPOSGE32.
2723 (mips_expand_builtin_direct): Add one parameter to indicate that
2724 builtin functions need to return a value.
2725 (mips_expand_builtin_bposge): New for expanding "bposge" builtin
2726 functions.
2727 (mips_regno_to_class): Add classes for 12 new DSP registers.
2728 (mips_subword): Change to check four HI registers.
2729 (mips_output_move): Output move to and from 6 new DSP accumulators.
2730 (override_options): Make sure -mdsp and -mips16 are not used together.
2731 Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS. Enable DSP accumulators
2732 for machine modes.
2733 (mips_conditional_register_usage): Disable 6 new DSP accumulators
2734 when !TARGET_DSP.
2735 (print_operand): Add 'q' for printing DSP accumulators.
2736 (mips_cannot_change_mode_class): Check ACC_REGS.
2737 (mips_secondary_reload_class): Check ACC_REGS.
2738 (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
2739 (mips_register_move_cost): Check ACC_REGS.
2740 (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
2741 (CODE_FOR_mips_subu_qb): New code-aliasing macros.
2742 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
2743 (dsp_bdesc): New array.
2744 (bdesc_arrays): Add DSP builtin function table.
2745 (mips_prepare_builtin_arg): Check predicate again after
2746 copy_to_mode_reg.
2747 (mips_expand_builtin): Add one more parameter to
2748 mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
2749 MIPS_BUILTIN_BPOSGE32.
2750 (mips_init_builtins): Initialize new function types.
2751 (mips_expand_builtin_direct): Check if builtin functions need to
2752 return a value and pass operands properly.
2753 (mips_expand_builtin_bposge): New function.
2754 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
2755 (ASM_SPEC): Map -mdsp to -mdsp in GAS.
2756 (FIRST_PSEUDO_REGISTER): Increase to 188.
2757 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
2758 Update for 12 new DSP registers.
2759 (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
2760 (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
2761 (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
2762 (reg_class): Add DSP_ACC_REGS and ACC_REGS.
2763 (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
2764 (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
2765 (REG_ALLOC_ORDER): Update for 12 new DSP registers.
2766 (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
2767 (UIMM6_OPERAND, IMM10_OPERAND): New macros.
2768 (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
2769 (REGISTER_NAMES): Add names for 12 new DSP registers.
2770 * config/mips/mips.md: Include mips-dsp.md.
2771 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
2772 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
2773 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
2774 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
2775 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
2776 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
2777 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
2778 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
2779 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
2780 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
2781 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
2782 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
2783 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
2784 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
2785 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
2786 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
2787 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
2788 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
2789 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
2790 (UNSPEC_RDDSP): New constants.
2791 (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
2792 (*movsi_internal): Change 'x' to 'a' for ACC_REGS. Add an
2793 A<-d alternative.
2794 * config/mips/mips.opt (-mdsp): New option.
2795 * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
2796 (reg_imm10_operand): New predicates.
2797 * doc/extend.texi (MIPS DSP Built-in Functions): New section.
2798 * doc/invoke.texi (-mdsp): Document new option.
2799
d2fcbf6f
DD
28002005-07-22 DJ Delorie <dj@redhat.com>
2801
2802 * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
2803 to warning calls.
2804 * tree-inline.c (inlinable_function_p): Likewise.
2805
9881e3e5
MM
28062005-07-22 Mark Mitchell <mark@codesourcery.com>
2807
2808 PR debug/21828
2809 * toplev.c (check_global_declarations): Do not mark undefined
2810 variables as DECL_IGNORED_P.
2811 * varasm.c (first_global_object_name): GTY it.
2812 (weak_global_object_name): Likewise.
2813 (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
2814 a string to go into {weak,first}_global_object_name.
2815
1a8d0d41
DD
28162005-07-22 DJ Delorie <dj@redhat.com>
2817
2818 * c-format.c (check_function_format): Change warning control
2819 option from OPT_Wattribute to OPT_Wmissing_format_attribute.
2820
17c7e33e
DN
28212005-07-22 Diego Novillo <dnovillo@redhat.com>
2822
2823 * tree-ssa-alias.c (count_ptr_derefs): Do not consider
2824 &PTR->FLD a dereference of PTR.
2825 * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
2826 a potential dereference of PTR.
2827
45002e59
R
28282005-07-22 J"orn Rennecke <joern.rennecke@st.com>
2829
191e1ff2
R
2830 PR rtl-optimization/20370
2831 * ifcvt.c (dead_or_predicable): Before calling propagate_block,
2832 call allocate_reg_info if necessary.
2833
475a3eef
R
2834 PR rtl-optimization/21848
2835 * calls.c (emit_library_call_value_1): For const functions, add
2836 USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
2837
29c1846b
R
2838 PR rtl-optimization/22445
2839 * cselib.c (target.h): Include.
2840 (rtx_equal_for_cselib_p): Allow commutative matches.
2841 (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
2842 Remove MODE parameter. Changed all callers.
2843
45002e59
R
2844 PR rtl-optimization/22258
2845 * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
2846 New functions.
2847 (try_combine): Use likely_spilled_retval_p.
2848
db869733
PW
28492005-07-22 Paul Woegerer <paul.woegerer@nsc.com>
2850
2851 * config.gcc: Add crx-elf support.
2852
2853 * doc/contrib.texi: Mention crx.
2854 * doc/extend.texi: Document crx extensions.
2855 * doc/install.texi: Document crx install.
2856 * doc/invoke.texi: Document crx options.
2857 * doc/md.texi: Document crx constraints.
2858
2859 * config/crx/crx-protos.h: New file.
2860 * config/crx/crx.c: New file.
2861 * config/crx/crx.h: New file.
2862 * config/crx/crx.md: New file.
2863 * config/crx/crx.opt: New file.
2864 * config/crx/t-crx: New file.
7904f95f 2865
32cafd73
MH
28662005-07-22 Manfred Hollstein <mh@suse.com>
2867
2868 * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
2869 warnings.
2870 (int_add_graph_edge): Likewise.
2871 (collapse_nodes): Likewise.
2872 (process_unification_queue): Likewise.
2873
ee184c4d 28742005-07-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
86979811 2875 Laurent GUERBY <laurent@guerby.net>
ee184c4d 2876
86979811 2877 PR tree-optimization/22336
7904f95f 2878 * function.c (record_block_change): Check for
86979811 2879 cfun->ib_boundaries_block.
7904f95f 2880
b49ceb45
JM
28812005-07-21 James A. Morrison <phython@gcc.gnu.org>
2882
2883 * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
2884 (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
2885
30c54de9
DD
28862005-07-21 DJ Delorie <dj@redhat.com>
2887
2888 * toplev.c (warn_deprecated_use): Add warning control to warning
2889 call.
c303630a
DD
2890 * c-typeck.c (parser_build_binary_op): Likewise.
2891 (c_finish_if_stmt): Likewise.
30480ec4
DD
2892 * c-common.c (check_function_sentinel): Likewise.
2893 (check_nonnull_arg): Likewise.
30c54de9 2894
95a8c155
RH
28952005-07-21 Richard Henderson <rth@redhat.com>
2896
2897 PR tree-opt/22504
2898 * tree-complex.c (complex_ssa_name_components): New.
2899 (cvc_lookup): Allow entry not found.
2900 (create_components): Remove.
2901 (create_one_component_var, get_component_var): New.
2902 (get_component_ssa_name, set_component_ssa_name): New.
2903 (extract_component): Use get_component_ssa_name.
2904 (update_complex_components): Use set_component_ssa_name.
2905 (update_complex_components_on_edge): Likewise.
2906 (update_phi_components): Create new PHI nodes directly, instead
2907 of adding insns to edges.
2908 (tree_lower_complex): Allocate and free complex_variable_components
2909 and complex_ssa_name_components here.
2910
c05a0766 29112005-07-20 Daniel Berlin <dberlin@dberlin.org>
7904f95f 2912
c05a0766
DB
2913 * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
2914 revert to returning false.
2915
de343c8d
UB
29162005-07-21 Uros Bizjak <uros@kss-loka.si>
2917
86979811
SB
2918 PR target/21149
2919 * config/i386/i386.md (sse_movhlps): Fix vec_select values.
de343c8d 2920
5acc26ef
UB
29212005-07-21 Uros Bizjak <uros@kss-loka.si>
2922
2923 PR target/22576
2924 * config/i386/i386.md (cmpxf): Change operand constraints
2925 to "nonmemory_operand".
2926
61cb44fe
AP
29272005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
2928
2929 * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
2930
e2fe73f6
AP
29312005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
2932
2933 PR middle-end/21180
2934 * fold-const.c (fold_build1): Add checksum for the operands.
7904f95f 2935 (fold_build2): Likewise.
e2fe73f6
AP
2936 (fold_build3): Likewise.
2937
9d24eb54
AP
29382005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
2939
2940 PR middle-end/19055
2941 * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
2942
b2e0afa0
PB
29432005-07-21 Paolo Bonzini <bonzini@gnu.org>
2944
2945 * common.opt (-fforward-propagate): Committed by mistake,
2946 removed.
2947
2e48874f
VR
29482005-07-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2949
2950 * reg-stack.c: Fix comment typo(s).
2951 * tree-ssa-operands.c: Likewise.
2952 * tree-vectorizer: Likewise.
2953
889d8465
NC
29542005-07-21 Nick Clifton <nickc@redhat.com>
2955
2956 * config/sh/symbian.c: Replace C++ style line comments with C
2957 style line comments.
86979811 2958 (symbian_add_attribute): Do not use a ? operator on the LHS of
889d8465 2959 an assignment.
86979811 2960 (sh_symbian_handle_dll_attribute): Change the type of the
889d8465
NC
2961 method vector to "VEC(tree,gc)*" and use vector accessor
2962 macros to walk over the elements.
86979811
SB
2963 (symbian_export_vtable_and_rtti_p): Likewise.
2964 (symbian_class_needs_attribute_p): Likewise.
889d8465 2965
2fab365e
PB
29662005-07-21 Paolo Bonzini <bonzini@gnu.org>
2967
2968 PR target/22085
2969 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
2970 initialize targetm.resolve_overloaded_builtin here.
2971 (altivec_expand_overloaded_builtin): Make it non-static.
2972 * config/rs6000/rs6000-protos.h
2973 (altivec_expand_overloaded_builtin): New prototype.
2974 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
2975 targetm.resolve_overloaded_builtin here.
2976 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
2977
f9cc1a70 29782005-07-21 Paolo Bonzini <bonzini@gnu.org>
86979811 2979 Zdenek Dvorak <dvorakz@suse.cz>
f9cc1a70
PB
2980
2981 PR tree-optimization/19210
2982 * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
2983 New.
2984 * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
2985 * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
2986 rely on unproven assumptions.
2987 * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
2988 * tree-flow.h (number_of_iterations_exit): Add final parameter.
2989 * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
2990 to number_of_iterations_exit.
2991 * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
2992 * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
2993 * tree-ssa-loop-niter.c (find_loop_niter,
2994 estimate_numbers_of_iterations_loop): Likewise.
2995 (number_of_iterations_exit): Honor the new options.
2996 * doc/invoke.texi (Wunsafe-loop-optimizations,
2997 funsafe-loop-optimizations): Document them.
2998
cb83c2ec
RS
29992005-07-21 Richard Sandiford <richard@codesourcery.com>
3000
3001 PR rtl-optimization/22167
3002 * gcse.c (hoist_code): Fix hoist_exprs[] check.
3003
5e5cbbfb
AN
30042005-07-20 Adam Nemet <anemet@lnxw.com>
3005
3006 * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
3007 __do_global_dtors_aux longcall.
3008
c2acaf06
KH
30092005-07-20 Kazu Hirata <kazu@cs.umass.edu>
3010
3011 * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
3012 (old_special_pred_table): Don't reference
3013 SPECIAL_MODE_PREDICATES.
3014 * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
3015 * config/arc/arc.h: Don't mention PREDICATE_CODES.
3016 * config/sh/predicates.h: Don't mention
3017 SPECIAL_MODE_PREDICATES.
3018 * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
3019 Remove.
3020
38b2d076
DD
30212005-07-20 DJ Delorie <dj@redhat.com>
3022
3023 * config.gcc: Add m32c-elf support.
3024
3025 * doc/contrib.texi: Mention m32c.
3026 * doc/extend.texi: Document m32c extensions.
3027 * doc/install.texi: Mention m32c.
3028 * doc/invoke.texi: Document m32c options.
3029 * doc/md.texi: Document m32c constraints.
3030
3031 * config/m32c/addsub.md: New file.
3032 * config/m32c/bitops.md: New file.
3033 * config/m32c/cond.md: New file.
3034 * config/m32c/jump.md: New file.
3035 * config/m32c/m32c-lib1.S: New file.
3036 * config/m32c/m32c-lib2.c: New file.
3037 * config/m32c/m32c-modes.def: New file.
3038 * config/m32c/m32c-pragma.c: New file.
3039 * config/m32c/m32c-protos.h: New file.
3040 * config/m32c/m32c.abi: New file.
3041 * config/m32c/m32c.c: New file.
3042 * config/m32c/m32c.h: New file.
3043 * config/m32c/m32c.md: New file.
3044 * config/m32c/m32c.opt: New file.
3045 * config/m32c/minmax.md: New file.
3046 * config/m32c/mov.md: New file.
3047 * config/m32c/muldiv.md: New file.
3048 * config/m32c/predicates.md: New file.
3049 * config/m32c/prologue.md: New file.
3050 * config/m32c/shift.md: New file.
3051 * config/m32c/t-m32c: New file.
3052
50b69666
KK
30532005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
3054
3055 * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
3056 (stack_protect_set, stack_protect_test): New expanders.
86979811 3057 (stack_protect_set_si, stack_protect_set_si_media,
50b69666 3058 stack_protect_set_di_media, stack_protect_test_si,
86979811 3059 stack_protect_test_si_media, stack_protect_test_di_media):
50b69666
KK
3060 New insns.
3061
71b50543
AP
30622005-07-20 Andrew Pinski <pinskia@physics.uc.edu>
3063
3064 * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
3065
4db8040c
JM
30662005-07-20 James A. Morrison <phython@gcc.gnu.org>
3067
3068 * tree.h (tree_expr_nonzero_p): Export.
3069 * fold-const.c (tree_expr_nonzero_p): Likewise.
3070 Return true for CALL_EXPRs that are alloca calls.
3071 (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
3072 against zero.
3073 * tree-flow.h (expr_computes_nonzero): Remove.
3074 * tree-vrp.c (expr_computes_nonzero): Remove.
86979811 3075 (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
4db8040c
JM
3076 (extract_range_from_unary_expr): Likewise.
3077 * tree-ssa-dom.c (record_equivalences_from_stmt): Use
3078 tree_expr_nonzero_p.
3079
6d459e2b
BS
30802005-07-20 Bernd Schmidt <bernd.schmidt@analog.com>
3081
09350e36
BS
3082 * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
3083 * config/bfin/bfin.c (legitimize_pic_address): Now static. Take
3084 extra arg "picreg" and use it instead of pic_offset_table_rtx.
3085 All callers changed.
3086 (frame_related_constant_load): New arg "related" which controls
3087 setting of RTX_FRAME_RELATED_P. All callers changed.
3088 (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
3089 (bfin_expand_prologue): Add stack limit checking.
3090 * config/bfin/bfin.md (trapifcc): New pattern.
3091
05905337
BS
3092 * config/bfin/bfin.c: Include "langhooks.h".
3093 (def_builtin): Go through lang_hooks to call builtin_function.
3094
6d459e2b
BS
3095 * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
3096 * config/bfin/predicates.md (symbol_ref_operand): New.
3097 (call_insn_operand): Delete. All callers changed to use
3098 register_no_elim_operand.
3099 * config/bfin/bfin.c (init_cumulative_args): Initialize the new
3100 call_cookie field.
3101 (function_arg): Use it to generate the call's operand 2.
3102 (bfin_longcall_p): New function.
3103 (bfin_expand_call): Extra arg "cookie". All callers and declaration
3104 changed. Emit extra USE in the pattern. Use bfin_longcall_p to
3105 determine if the address needs to be in a REG.
3106 (bfin_handle_longcall_attribute): New function.
3107 (bfin_attribute_table): Add "longcall" and "shortcall".
3108 * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
3109 (CUMULATIVE_ARGS): New member call_cookie.
3110 (PREDICATE_CODES): Add symbol_ref_operand.
3111 * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
3112 extra USE to the pattern.
3113 (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
3114 New patterns, split off call_insn, sibcall_insn, call_value_insn and
3115 sibcall_value_insn; now the new patterns handle direct calls and the
3116 old ones indirect calls.
3117 * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
3118
67135ef4
ZD
31192005-07-20 Zdenek Dvorak <dvorakz@suse.cz>
3120
3121 * doc/trouble.texi: Update section on handling of empty loops.
3122
fdda361d
KH
31232005-07-20 Kazu Hirata <kazu@codesourcery.com>
3124
3125 * config.gcc: Remove support for sparc-*-openbsd*,
3126 i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
3127 ns32k-*-netbsd*.
3128 * config.host: Remove support for i860-*-sysv4* as a host.
3129 * config/i860/*, config/ip2k/*, config/ns32k/*,
3130 config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
3131 * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
3132 mention obsolete ports.
3133
96a2347e
KK
31342005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
3135
3136 * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
3137 soft frame pointer.
3138 (sh_expand_prologue): Use hard_frame_pointer_rtx instead
3139 of frame_pointer_rtx.
3140 (sh_expand_epilogue): Likewise.
3141 (sh_set_return_address): Likewise.
3142 (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
3143 instead of FRAME_POINTER_REGNUM if needed. Add elimination
3144 offsets from FRAME_POINTER_REGNUM.
3145 * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
3146 (sh_register_names): Add initializer for sfp.
3147 (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
3148 (VALID_REGISTER_P): Likewise.
3149 (FIRST_PSEUDO_REGISTER): Update.
3150 (DWARF_FRAME_REGISTERS): Define.
3151 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
3152 (HARD_FRAME_POINTER_REGNUM): Define.
3153 (FRAME_POINTER_REGNUM): Redefine.
3154 (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
3155 but HARD_FRAME_POINTER_REGNUM instead. Add eliminations
3156 from FRAME_POINTER_REGNUM.
3157 (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
3158 FRAME_POINTER_REGNUM.
3159 (REG_CLASS_CONTENTS): Add sfp.
3160 (REG_ALLOC_ORDER): Likewise.
3161 (FRAME_GROWS_DOWNWARD): Set to 1. Update comment.
3162 (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
3163 of frame_pointer_rtx.
3164 (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
3165
1ade5842
JM
31662005-07-19 James A. Morrison <phython@gcc.gnu.org>
3167
3168 * fold-const.c (tree_expr_nonnegative_p): Only return true for
3169 ABS_EXPR when flag_wrapv is false because of INT_MIN.
3170 (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
3171 of an ABS_EXPR.
3172 (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
3173 ABS_EXPR<x>.
3174
4038c495
GB
31752005-07-20 Giovanni Bajo <giovannibajo@libero.it>
3176
3177 Make CONSTRUCTOR use VEC to store initializers.
3178 * c-common.c (complete_array_type): Update to cope with VEC in
3179 CONSTRUCTOR_ELTS.
3180 * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
3181 (pp_c_constructor_elts): New function.
3182 * c-pretty-print.h (pp_c_constructor_elts): Declare.
3183 * c-typeck.c (build_function_call, build_c_cast, digest_init,
3184 struct constructor_stack, struct initializer_stack,
3185 constructor_elements, push_init_level, pop_init_level,
3186 add_pending_init, find_init_member, output_init_element): Update to
3187 cope with VEC in CONSTRUCTOR_ELTS.
3188 * coverage.c (build_fn_info_value, build_ctr_info_value,
3189 build_gcov_info): Likewise.
3190 * expr.c (categorize_ctor_elements_1, store_constructor,
3191 expand_expr_real_1): Likewise.
3192 * fold-const.c (fold_ternary): Likewise.
3193 * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
3194 gimplify_init_constructor, gimplify_expr): Likewise.
3195 * tree-dump.c (dequeue_and_dump): Likewise.
3196 * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
3197 node.
3198 * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
3199 CONSTRUCTOR_ELTS.
3200 * tree-sra.c (generate_element_init_1): Likewise.
3201 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
3202 * tree-ssa-operands.c (get_expr_operands): Likewise.
3203 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3204 * tree-vect-transform.c (vect_get_vec_def_for_operand):
3205 (get_initial_def_for_reduction): Likewise.
3206 * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
3207 value handle in annotations.
3208 * tree.c (tree_node_kind, tree_code_size, make_node_stat,
3209 tree_node_structure): Add support for constr_kind.
3210 (build_vector_from_ctor, build_constructor_single,
3211 build_constructor_from_list): New functions.
3212 (build_constructor): Update to take a VEC instead of a TREE_LIST.
3213 (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
3214 Update to cope with VEC in CONSTRUCTOR_ELTS.
3215 * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
3216 * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
3217 CONSTRUCTOR_APPEND_ELT): New macros.
3218 (struct constructor_elt, struct tree_constructor): New data types.
3219 (union tree_node): Add tree_constructor field.
3220 * treestruct.def: Define TS_CONSTRUCTOR.
3221 * varasm.c (const_hash_1, compare_constant, copy_constant,
3222 compute_reloc_for_constant, output_addressed_constants,
3223 initializer_constant_valid_p, output_constant,
3224 array_size_for_constructor, output_constructor): Update to cope with
3225 VEC in CONSTRUCTOR_ELTS.
3226 * vec.h (VEC_empty, VEC_copy): New macros.
3227
f37d7c60
DP
32282005-07-19 Devang Patel <dpatel@apple.com>
3229
3230 * dbxout.c (dbxout_type): Check Objective-C++ lang.
7904f95f 3231
af62f6f9
RH
32322005-07-19 Richard Henderson <rth@redhat.com>
3233
3234 PR tree-opt/22278
3235 * gimplify.c (gimplify_expr): Use main variant type for the temp
3236 destination for a discarded volatile read.
3237 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
3238 casts between non-void types that change volatility.
3239
b9b8dde3
DD
32402005-07-15 DJ Delorie <dj@redhat.com>
3241
3242 * toplev.h: Add comment about the first parameter for warning().
3243 * errors.h: Likewise.
3244
3245 * c.opt (Wpragmas): New.
3246 * doc/invoke.texi: Document it.
7904f95f 3247
b9b8dde3
DD
3248 * function.c (do_warn_unused_parameter): Add warning control to
3249 warning call.
3250 * c-decl.c (warn_if_shadowing): Likewise.
3251 * c-lex.c (cb_def_pragma): Likewise.
3252 * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
3253 (pop_alignment): Likewise.
3254 (handle_pragma_pack): Likewise.
3255 (apply_pragma_weak): Likewise.
3256 (handle_pragma_weak): Likewise.
3257 (handle_pragma_redefine_extname): Likewise.
3258 (add_to_renaming_pragma_list): Likewise.
3259 (handle_pragma_extern_prefix): Likewise.
3260 (maybe_apply_renaming_pragma): Likewise.
3261 (handle_pragma_visibility): Likewise.
7904f95f 3262
b9b8dde3
DD
3263 * config/c4x/c4x-c.c (BAD): Likewise.
3264 (c4x_parse_pragma): Likewise.
3265 * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
3266 * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
3267 (rs6000_pragma_longcall): Likewise.
3268 * config/v850/v850-c.c (pop_data_area): Likewise.
3269 (ghs_pragma_section): Likewise.
3270 (ghs_pragma_section): Likewise.
3271 (ghs_pragma_interrupt): Likewise.
3272 (ghs_pragma_starttda): Likewise.
3273 (ghs_pragma_startsda): Likewise.
3274 (ghs_pragma_startzda): Likewise.
3275 (ghs_pragma_endtda): Likewise.
3276 (ghs_pragma_endsda): Likewise.
3277 (ghs_pragma_endzda): Likewise.
3278
6a9a79a8
DB
32792005-07-19 Danny Berlin <dberlin@dberlin.org>
3280 Kenneth Zadeck <zadeck@naturalbridge.com>
3281
3282 * Makefile.in: Removed tree-promote-statics.c
3283 * tree-promote-statics.c: Removed.
3284 * common.opt: Removed flag-promote-statics.
3285 * opts.c: Ditto.
7904f95f 3286 * passes.c: Removed tree-promote-statics pass.
6a9a79a8
DB
3287 * tree-pass.h: Ditto.
3288 * timevar.def: Removed TV_PROMOTE_STATICS.
3289
3290
0219cf3d
GP
32912005-07-19 Gerald Pfeifer <gerald@pfeifer.com>
3292
3293 * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
3294 and *-*-freebsd9.
3295 * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
7904f95f 3296
7876a414
KG
32972005-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3298
3299 PR c/22476
3300 * c-common.c (check_function_arguments): Call
3301 'check_function_format' if either -Wformat or
3302 -Wmissing-format-attribute are specified.
3303 * c-format.c (check_function_format): Check -Wformat before
3304 calling 'check_format_info'.
3305 * c-opts.c (c_common_post_options): Don't warn for
3306 -Wmissing-format-attribute without -Wformat.
3307 * c-typeck.c (convert_for_assignment): Detect additional cases for
3308 -Wmissing-format-attribute.
3309 * doc/invoke.texi (-Wmissing-format-attribute): Document new
3310 behavior.
3311
98ea7437
RG
33122005-07-19 Richard Guenther <rguenther@suse.de>
3313
3314 * config/i386/i386.md (lrint<mode>2): Use temporary
3315 instead of clobbering non-existent memory.
3316
89a0b917
NC
33172005-07-19 Nick Clifton <nickc@redhat.com>
3318
3319 * config/avr/avr.c (legitimate_address_p): Fix debugging print
3320 statement to avoid displaying ASCII control characters.
3321
dfea6c85
BE
33222005-07-19 Ben Elliston <bje@au.ibm.com>
3323
3324 * bt-load.c (link_btr_uses): Fix uninitialised warnings.
3325 * cfganal.c (find_edge_index): Ditto.
3326 * combine.c (combine_instructions): Ditto.
3327 * ddg.c (create_scc): Ditto.
3328 (find_successors): Ditto.
3329 (find_predecessors): Ditto.
3330 (find_nodes_on_paths): Ditto.
3331 (longest_simple_path): Ditto.
3332 * flow.c (update_life_info): Ditto.
3333 (count_or_remove_death_notes): Ditto.
3334 (clear_log_links): Ditto.
3335 * modulo-sched.c (generate_reg_moves): Ditto.
3336 (find_max_asap): Ditto.
3337 (find_max_hv_min_mob): Ditto.
3338 (find_max_dv_min_mob): Ditto.
3339 * sbitmap.c (sbitmap_first_set_bit): Ditto.
3340 * sched-rgn.c (extract_edgelst): Ditto.
3341 * tree-into-ssa.c (prepare_names_to_update): Ditto.
3342 (dump_update_ssa): Ditto.
3343 (ssa_names_to_replace) Ditto.
3344 (switch_virtuals_to_full_rewrite): Ditto.
3345 (update_ssa): Ditto.
3346 * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
3347
b9d33488
DB
33482005-07-18 Daniel Berlin <dberlin@dberlin.org>
3349
3350 Fix PR tree-optimization/22483
7904f95f 3351
b9d33488
DB
3352 * tree-complex.c (create_components): Use
3353 safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
3354 * tree-flow-inline.h (fill_referenced_var_vec): New function.
3355 * tree-flow.h (safe_referenced_var_iterator): New structure.
3356 (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
3357 * tree-ssa-alias.c (setup_pointers_and_addressables): Use
3358 safe_referenced_var iterator.
3359 (add_type_alias): Ditto.
3360
9fa26457
SB
33612005-07-19 Steven Bosscher <stevenb@suse.de>
3362
3363 * loop-init.c (rest_of_handle_loop2): Remove.
3364 (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
3365 rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
3366 (pass_rtl_loop_init, pass_rtl_loop_done,
3367 pass_rtl_move_loop_invariants, pass_rtl_unswitch,
3368 pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
3369 * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
3370 pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
3371 pass_tree_loop_done, and pass_tree_unswitch.
3372 (gate_loop): Rename to gate_tree_loop.
3373 * passes.c (init_optimization_passes): Update for renamed tree
3374 loop passes. Add the new loop2 passes as subpasses of loop2.
3375 * tree-pass.h: Add extern declarations for the new loop2 subpasses.
3376 Update for the renamed tree loop passes.
3377
7825308e
ILT
33782005-07-18 Ian Lance Taylor <ian@airs.com>
3379
3380 PR middle-end/22057
3381 * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
3382 blocks when optimizing.
3383
2928d0f8
SE
33842005-07-18 Steve Ellcey <sje@cup.hp.com>
3385
3386 * common.opt (frename-registers): Initialize to 2.
3387 (fweb): Ditto.
3388 (fgcse-after-reload): Ditto.
3389 * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
3390 (process_options): Only change flag_web, flag_rename_registers,
3391 and flag_rerun_cse_after_loop if not explicitly set by user.
3392
28356f52
JB
33932005-07-18 Jan Beulich <jbeulich@novell.com>
3394
3395 * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
3396 ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
3397 in 64-bit mode the same as DImode in 32-bit mode.
3398 (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
3399 ix86_split_lshr): Likewise. Rename to no longer refer to a specific
7904f95f 3400 mode. Add new mode parameter.
28356f52
JB
3401 * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
3402 * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
3403 x86_64_shift_adj): New expanders.
3404 (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
3405 *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
3406 insns.
3407 Respective new splitters. Use renamed shift splitter helpers in 32-bit
3408 DImode shift splitters.
3409 * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
3410 ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
3411 mode parameter.
3412
422edd6f
JB
34132005-07-18 Jan Beulich <jbeulich@novell.com>
3414
3415 * i386.md (movdi_extzv_1): New.
3416 (zero_extendhidi2): Combine alternatives and never force use of
3417 REX64 prefix.
3418 (zero_extendqidi2): Likewise. Don't restrict input selection.
3419
c625053b
DB
34202005-07-17 Daniel Berlin <dberlin@dberlin.org>
3421
3422 Fix PR tree-optimization/22531
3423 * tree-ssa-pre.c (do_eustores): Make sure LHS is a decl for the
3424 moment.
3425
3b1355f3
DB
34262005-07-17 Daniel Berlin <dberlin@dberlin.org>
3427
3428 * tree-promote-statics.c (pass_promote_statics): Change dump file
3429 name.
3430
34312005-07-17 Daniel Berlin <dberlin@dberlin.org>
45159bf6
DB
3432
3433 * tree-optimize.c (init_tree_optimization_passes): Add
3434 pass_eliminate_useless_stores pass.
3435 * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
3436 * tree-ssa-pre.c (is_copy_stmt): New function.
3437 (follow_copies_till_vuse): Ditto.
3438 (do_eustores): Ditto.
7904f95f
EC
3439 (gate_eustores): Ditto.
3440
7544a87f
RH
34412005-07-16 Richard Henderson <rth@redhat.com>
3442
3443 * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
3444
bf0d50f1
KZ
34452005-07-16 Danny Berlin <dberlin@dberlin.org>
3446 Kenneth Zadeck <zadeck@naturalbridge.com>
3447
3448 * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
3449 ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
3450 ipa-type-escape.h, tree-promote-statics.c
3451 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
7904f95f 3452 ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
bf0d50f1
KZ
3453 tree-promote-statics.c: new files.
3454 * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
3455 nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
3456 int nonlocal_set_p, mark_constant_function): Deleted.
7904f95f 3457 (rest_of_handle_cfg): Removed call to mark_constant_function.
86979811 3458 (nonoverlapping_component_refs_p): Added calls to support
7904f95f 3459 type based aliasing.
86979811 3460 * tree-ssa-alias.c (may_alias_p,
bf0d50f1
KZ
3461 compute_flow_insensitive_aliasing): Ditto.
3462 * calls.c (flags_from_decl_or_type): Removed reference to
7904f95f 3463 cgraph_rtl_info.
86979811 3464 * c-typeck.c (convert_arguments): Make builtins tolerant of having
bf0d50f1
KZ
3465 too many arguments. This is necessary for Spec 2000.
3466 * cgraph.h (const_function, pure_function): Removed.
7904f95f 3467 * common.opt: Added "fipa-pure-const", "fipa-reference",
bf0d50f1
KZ
3468 "fipa-type-escape", and "ftree-promote-static".
3469 * opts.c: Ditto.
7904f95f 3470 * passes.c: Added ipa and tree-promote-statics passes.
bf0d50f1
KZ
3471 * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
3472 TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
bf0d50f1 3473 * tree-dfa.c (referenced_var_lookup_if_exists): New function.
7904f95f 3474 * tree-flow.h: Added exposed sra calls and addition of
bf0d50f1
KZ
3475 reference_vars_info field for FUNCTION_DECLS.
3476 * tree-pass.h: Added passes.
3477 * tree-sra.c: (sra_init_cache): New function.
3478 (sra_insert_before, sra_insert_after) Made public.
3479 (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
3480 and made public.
3481 * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
3482 aliasing. (may_alias_p): Added code to use type escape analysis to
3483 improve alias sets.
3484 * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
3485 code to prune clobbers of static variables based on information
3486 produced in ipa-reference pass. Changed call clobbering so that
3487 statics are not marked as clobbered if the call does not clobber
3488 them.
3489
b6e0bdbd
DB
34902005-07-16 Daniel Berlin <dberlin@dberlin.org>
3491
3492 * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
3493 too.
3494
2c00bd42
EB
34952005-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
3496
3497 * doc/install.texi (*-*-solaris2*): Document recommended version
3498 of GNU binutils and mention GNU linker problem on Solaris 10.
3499
0b359b01
JM
35002005-07-16 Joseph S. Myers <joseph@codesourcery.com>
3501
3502 PR c/22421
3503 * c-decl.c (c_build_bitfield_integer_type): New function.
3504 (finish_struct): Call it.
3505 * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
3506
8fcef540
KG
35072005-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3508
3509 * c-typeck.c (digest_init): Call 'convert_for_assignment'
3510 before returning.
3511
84fc24e8
JH
35122005-07-16 Jan Hubicka <jh@suse.cz>
3513
3514 * cfg.c (update_bb_profile_for_threading): Fix profile updating.
3515 (scale_bbs_frequencies_int): Watch roundoff errors.
3516 * predict.c (return_prediction): Initialize return_stmt.
3517
3258272f
JH
35182005-07-16 Jan Hubicka <jh@suse.cz>
3519
3520 * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
3521 after RTL profiling.
3522
01c0a9fa
AP
35232005-07-11 Andrew Pinski <pinskia@physics.uc.edu>
3524
3525 PR middle-end/22398
3526 * fold-const.c (build_range_check): Convert high/low to etype
3527 if we are only comparing against exp.
3528
27811bfe
DB
35292005-07-13 Daniel Berlin <dberlin@dberlin.org>
3530
3531 Fix PR tree-optimization/22376
3532 * tree-ssa-structalias.c (build_constraint_graph): We really meant
3533 special var here.
3534 (need_to_solve): New function.
3535 (compute_points_to_sets): Use it.
7904f95f 3536
2b151cb2
JH
35372005-07-15 Jan Hubicka <jh@suse.cz>
3538
3539 * cfg.c (update_bb_profile_for_threading): More diagnostic.
3540 * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
3541
0691d1d4
RG
35422005-07-15 Richard Guenther <rguenther@suse.de>
3543
3544 * c-common.c (handle_flatten_attribute): New function.
3545 Add flatten function attribute.
3546 * doc/extend.texi: Document flatten function attribute.
3547 * Makefile.in (ipa-inline.o): Depend on hashtab.h.
3548 * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
3549 New functions.
3550 (cgraph_decide_inlining): Handle functions with flatten
3551 attribute.
3552
9f0076e5
DE
35532005-07-14 David Edelsohn <edelsohn@gnu.org>
3554
3555 * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
3556 UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
3557 UNSPEC_XCHG, UNSPEC_AND): New.
3558 (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
3559 UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
3560 * config/rs6000/sync.md (FETCHOP): New code macro.
3561 (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
3562 New code attrs.
3563 (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
3564 (sync_compare_and_swap<mode>): Same.
3565 (sync_lock_test_and_set<mode>): Same.
3566 (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
3567 for QImode and HImode, and not PPC405.
3568 (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
3569 (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
3570 (sync_<fetchop>{si,di}_internal): New.
3571 (sync_nand{si,di}_internal): New.
3572 (sync_old_<fetchop>{si,di}_internal): New.
3573 (sync_old_nand{si,di}_internal): New
3574 (sync_new_<fetchop>{si,di}_internal): New.
3575 (sync_new_nand{si,di}_internal): New.
3576 (atomic_and{si,di}): New.
3577 (sync_new_nand{si,di}_internal): New.
3578 (atomic_and{si,di}): New.
3579 (sync_add<mode>_internal): Delete.
3580 (sync_addshort_internal): Use unspec instead of unspec_volatile.
3581 (sync_sub<mode>_internal): Delte.
3582 (sync_subshort_internal): New.
3583 (sync_andsi_internal): Use unspec instead of unspec_volatile.
3584 (sync_anddi_internal): Delete.
3585 (sync_boolsi_internal): Use unspec instead of unspec_volatile.
3586 (sync_booldi_internal): Delete.
3587 (sync_boolc<mode>_internal): Delete.
3588 (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
3589 (sync_boolc<mode>_internal2): Delete.
3590 (sync_boolcc<mode>_internal): Delete.
3591 (isync, lwsync): Use unspec instead of unspec_volatile.
3592 * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
3593 Revert UNSPEC_VOLATILE.
3594 (rs6000_split_atomic_op): New.
3595 * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
3596
06277571
EC
35972005-07-14 Eric Christopher <echristo@redhat.com>
3598
3599 * config/mips/mips.c (mips_canonicalize_comparison): Cast
3600 argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
3601
b838c72b
EC
36022005-07-14 Eric Christopher <echristo@redhat.com>
3603
3604 * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
3605
3c341936
SB
36062005-07-14 Steven Bosscher <stevenb@suse.de>
3607
3608 PR tree-optimization/22230
3609 * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
3610 the computation of the four cross productions for "range op range".
3611
704b6cb5 36122005-07-14 Alexandre Oliva <aoliva@redhat.com>
86979811 3613 Ulrich Weigand <uweigand@de.ibm.com>
704b6cb5
AO
3614
3615 PR target/20126
3616 * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
3617 in some insn.
3618
a771c4b3
UW
36192005-07-14 Ulrich Weigand <uweigand@de.ibm.com>
3620
3621 * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
3622
6f3113ed
SE
36232005-07-14 Steve Ellcey <sje@cup.hp.com>
3624
3625 * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
3626
cb1119b7
RG
36272005-07-14 Richard Guenther <rguenther@suse.de>
3628
3629 PR middle-end/22347
3630 * config/i386/i386-protos.h (ix86_function_value): Change
3631 prototype to match new target hook.
3632 * config/i386/i386.c (ix86_value_regno): Change prototype
3633 to take extra type argument.
3634 (TARGET_FUNCTION_VALUE): Define.
3635 (ix86_function_ok_for_sibcall): Pass extra argument to
3636 ix86_value_regno, check return slot rtx for exact match.
3637 (ix86_function_value): Take extra parameter. Dispatch to
3638 ix86_value_regno with fndecl/fntype as provided.
3639 (ix86_value_regno): Handle extra type argument.
3640 * config/i386/i386.h (FUNCTION_VALUE): No longer define.
3641
3642 * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
3643 * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
3644 * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
3645 * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
3646 * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
3647
1d636cc6
RG
36482005-07-14 Richard Guenther <rguenther@suse.de>
3649
3650 * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
3651 * calls.c (expand_call): Pass fntype to hard_function_value.
3652 (emit_library_call_value_1): Likewise.
3653 * explow.c: Include target.h.
3654 (hard_function_value): Take extra argument, the fntype.
3655 Use new target hook for function_value.
3656 * expr.h (hard_function_value): Change prototype.
3657 * function.c (aggregate_value_p): Pass 0 as fntype to
3658 hard_function_value.
3659 (assign_parms): Use new target hook for function_value.
3660 Pass 0 as fntype to hard_function_value.
3661 (expand_function_end): Likewise.
3662 * reg-stack.c: Include target.h.
3663 (stack_result): Use new target hook for function_value.
3664 * target-def.h: New target hook function_value.
3665 * target.h: Likewise.
3666 * targhooks.c (default_function_value): New function.
3667 * targhooks.h (default_function_value): Declare.
3668
09d8cc0e
ILT
36692005-07-13 Ian Lance Taylor <ian@airs.com>
3670
3671 * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
3672
df1f6f31
JH
36732005-07-14 Jan Hubicka <jh@suse.cz>
3674
3675 * tree-dfa.c (dump_variable): Use default_def function.
3676 * tree-ssa-alias.c (dump_points_to_info): Likewise.
3677 * tree-ssa.c (verify_use): Likewise.
3678 * tree-ssanames.c (release_ssa_name): Likewise.
3679 * tree-tailcall.c (eliminate_tail_call): Likewise.
3680 (tree_optimize_tail_calls_1): Likewise.
3681 * tree-vrp.c (get_value_range): Likewise.
3682
9ef0b1bd
BE
36832005-07-14 Ben Elliston <bje@au.ibm.com>
3684
3685 * gcc.c (main): Compare language[0] with '*' when iterating over
3686 the infiles.
3687
69950452
AS
3688