]> gcc.gnu.org Git - gcc.git/blob - gcc/ChangeLog
arm.c (arm_legitimize_address): Split absolute addresses to alow matching ARM pre...
[gcc.git] / gcc / ChangeLog
1 2005-09-01 Nicolas Pitre <nico@cam.org>
2
3 * config/arm/arm.c (arm_legitimize_address): Split absolute addresses
4 to alow matching ARM pre-indexed addressing mode.
5 (arm_override_options): Remove now irrelevant comment.
6
7 2005-09-01 Phil Edwards <phil@codesourcery.com>
8
9 * config.gcc (i*86-wrs-vxworks): Update. Split out vxworksae target.
10 * config/i386/t-vxworks: Update multilibs for VxWorks 6 and RTP mode.
11 * config/i386/vxworks.h: Likewise.
12 * config/i386/t-vxworksae: New file, for VxWorks AE.
13 * config/i386/vxworksae.h: Likewise.
14
15 2005-09-01 Sebastian Pop <pop@cri.ensmp.fr>
16
17 PR tree-optimization/23410
18 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Check that the
19 sequence is not wrapping during the first step.
20
21 2005-09-01 Jakub Jelinek <jakub@redhat.com>
22
23 PR debug/7241
24 * dwarf2out.c (base_type_die): Compare char_type_node with
25 TYPE_MAIN_VARIANT (type), not type.
26
27 2005-09-01 Richard Guenther <rguenther@suse.de>
28
29 PR tree-optimization/15366
30 * common.opt: Add -finline-functions-called-once.
31 Put -fearly-inlining in alphabetically ordered place.
32 * doc/invoke.texi: Document new option.
33 * ipa-inline.c (cgraph_decide_inlining): Honour
34 flag_inline_functions_called_once.
35
36 2005-09-01 Jakub Jelinek <jakub@redhat.com>
37
38 PR rtl-optimization/23478
39 * local-alloc.c (struct qty): Add n_throwing_calls_crossed field.
40 (alloc_qty): Initialize it.
41 (update_equiv_regs): Clear REG_N_THROWING_CALLS_CROSSED.
42 (combine_regs): Combine also n_throwing_calls_crossed fields.
43 (find_free_reg): Don't attempt to caller-save pseudos crossing
44 calls that might throw.
45 * global.c (struct allocno): Add throwing_calls_crossed field.
46 (global_alloc): Revert 2005-08-22 change. Initialize
47 throwing_calls_crossed.
48 (find_reg): Don't attempt to caller-save pseudos crossing calls that
49 might throw.
50
51 2005-09-01 Alan Modra <amodra@bigpond.net.au>
52
53 PR target/23649
54 * config/rs6000/predicates.md (mask_operand): Only handle rlwinm masks.
55 (mask64_operand): Reinstate code prior to 2005-06-11 change.
56 (mask64_2_operand): Reinstate code prior to 2004-11-11 change.
57 (and64_2_operand): Tweak to use predicate.
58 (and_operand): Adjust for mask_operand changes.
59 * config/rs6000/rs6000.c (num_insns_constant): Revert 2005-06-11.
60 (print_operand): Likewise.
61 (rs6000_rtx_costs): Pass mode to mask_operand and use mask64_operand.
62 (mask64_1or2_operand): Delete.
63 * rs6000/rs6000-protos.h (mask64_1or2_operand): Delete.
64 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT <S>): Revert 2005-06-11.
65 (EXTRA_CONSTRAINT <T>): Pass operand mode to predicate.
66 (EXTRA_CONSTRAINT <t>): Disallow mask64_operand matches.
67 * config/rs6000/rs6000.md (andsi3_internal3 split): Revert 2005-06-11.
68 (rotldi3_internal4): Likewise.
69 (rotldi3_internal5, rotldi3_internal5 split): Likewise.
70 (rotldi3_internal6, rotldi3_internal6 split): Likewise.
71 (ashldi3_internal7): Likewise.
72 (ashldi3_internal8, ashldi3_internal8 split): Likewise.
73 (ashldi3_internal, ashldi3_internal9 split): Likewise.
74 (anddi3 split): Don't match mask64_operand.
75 (anddi3_internal2): Add rlwinm. Modify 't' splitter predicate.
76 (anddi3_internal3): Add rlwinm. Use and64_2_operand in non-cr0
77 splitter and match TARGET_64BIT not TARGET_POWERPC64. Modify
78 't' splitter predicate.
79 (movdi_internal64 + 2): Revert 2005-06-11 change.
80
81 2005-08-31 DJ Delorie <dj@redhat.com>
82
83 * config/m32c/m32c.c (m32c_valid_pointer_mode): New.
84 (m32c_asm_integer): Add support for 32 bit pointers.
85
86 2005-08-31 Richard Henderson <rth@redhat.com>
87
88 * emit-rtl.c (set_mem_attributes_minus_bitpos): Look through
89 component-like references for setting MEM_NOTRAP_P.
90
91 * config/i386/i386.c (ix86_setup_incoming_varargs): Set MEM_NOTRAP_P.
92 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
93
94 2005-08-31 Richard Henderson <rth@redhat.com>
95
96 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Force subregs
97 into a pseudo before applying gen_lowpart.
98
99 2005-08-31 Geoffrey Keating <geoffk@apple.com>
100
101 * doc/install.texi (Specific): Update cctools version required
102 for full functionality.
103 * config/darwin.h (LINK_SPEC): Pass -mmacosx-version-min to the
104 linkers as -macosx_version_min.
105
106 2005-08-31 J"orn Rennecke <joern.rennecke@st.com>
107
108 PR target/21255
109 * sh.c (print_operand, %R and %S): Add handling of floating point
110 registers, memory, constants and invalid operands.
111
112 2005-08-31 Daniel Berlin <dberlin@dberlin.org>
113
114 * ipa-pure-const.c: Change dump name.
115
116 2005-08-31 Uros Bizjak <uros@kss-loka.si>
117
118 PR target/23570
119 * config/i386/sse.md (*sse_concatv2sf): Change operand 2 constraint
120 to "reg_or_0_operand".
121 (sse2_loadld): Change operand 1 constraint to "reg_or_0_operand".
122
123 2005-08-31 Dale Johannesen <dalej@apple.com>
124
125 * loop-iv.c (iv_number_of_iterations): Fix overflow check for
126 loops that count down.
127
128 2005-08-31 Richard Henderson <rth@redhat.com>
129
130 PR rtl-opt/23601
131 * reload1.c (reload): Set MEM_NOTRAP_P in spill slots.
132 (fixup_eh_region_note): New.
133 (reload_as_needed): Call it.
134 (fixup_abnormal_edges): Allow all throwing insns to be deleted;
135 don't call find_many_sub_basic_blocks; call verify_flow_info.
136 * function.c (assign_stack_local_1): Set MEM_NOTRAP_P.
137 (keep_stack_depressed): Likewise.
138 (assign_stack_temp_for_type): Likewise; use adjust_address_nv.
139
140 2005-08-31 Richard Henderson <rth@redhat.com>
141
142 * config/i386/i386.c (ix86_function_ok_for_sibcall): Fix test for
143 fp return matching.
144
145 2005-08-31 Fariborz Jahanian <fjahanian@apple.com>
146
147 * expr.c (expand_expr_real_1): Compare size of address
148 mode to target's address mode size in deciding expansion of
149 the constant address.
150
151 2005-08-31 Richard Guenther <rguenther@suse.de>
152
153 PR middle-end/23477
154 * expr.c (all_zeros_p): New function.
155 (expand_expr_real_1): Handle the case of an all-zero
156 non-addressable constructor separately.
157
158 2005-08-31 Adrian Straetling <straetling@de.ibm.com>
159
160 * builtins.c: (expand_builtin_strcpy, expand_builtin_strcat): Change
161 arguments, adjust all callers.
162 (expand_builtin_strcat): Rewrite to call strcpy instead of mempcpy.
163
164 2005-08-30 Richard Henderson <rth@redhat.com>
165
166 PR target/23630
167 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Use gen_lowpart
168 whenever the mode sizes match.
169
170 2005-08-31 Alan Modra <amodra@bigpond.net.au>
171
172 * calls.c (load_register_parameters): Fix comment typo.
173 * expr.c (emit_push_insn): Comment formatting.
174
175 2005-08-30 Ian Lance Taylor <ian@airs.com>
176
177 * config/i386/x-cygwin (host-cygwin): Change dependency from
178 hosthooks-def.h to $(HOSTHOOKS_DEF_H).
179
180 2005-08-29 Geoffrey Keating <geoffk@apple.com>
181
182 * config/i386/i386.c (ix86_expand_vector_init_one_var): Don't modify
183 parts of 'vals'.
184
185 2005-08-29 Andrew Pinski <pinskia@physics.uc.edu>
186
187 PR middle-end/23408
188 * ipa-inline.c (cgraph_decide_inlining_incrementally): Remove the
189 call to ggc_collect.
190
191 2005-08-29 Paolo Bonzini <bonzini@gnu.org>
192
193 PR bootstrap/21268
194 * Makefile.in (ALL_CPPFLAGS): Include $(INCLUDES) at the
195 beginning. Remove $(INCLUDES) from all the rules, if following
196 $(ALL_CPPFLAGS) or $(BUILD_CPPFLAGS).
197
198 2005-08-29 Jakub Jelinek <jakub@redhat.com>
199
200 PR middle-end/23484
201 * builtins.c (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
202 fold_builtin_strncpy_chk, fold_builtin_snprintf_chk): If len is
203 not constant, but maxlen is, don't set len to maxlen, rather
204 set maxlen to len if len is a constant.
205
206 2005-08-29 Zdenek Dvorak <dvorakz@suse.cz>
207
208 PR tree-optimization/23475
209 * tree-ssa-loop-ivcanon.c (remove_empty_loop): Update frequencies
210 and counts.
211
212 2005-08-28 Daniel Berlin <dberlin@dberlin.org>
213
214 Fix PR middle-end/22455
215
216 * fold-const.c (fold_checksum_tree): Adjust for now-largest tree size.
217 Checksum only the parts of the tree that exist for the tree code.
218
219 2005-08-28 Dale Johannesen <dalej@apple.com>
220
221 * config/i386/i386.c (nocona_cost): Increase MOVE_RATIO.
222
223 2005-08-28 Andrew Pinski <pinskia@physics.uc.edu>
224
225 * tree-vrp.c: Remove obsolete comment in front of vrp_initialize.
226
227 2005-08-28 Richard Henderson <rth@redhat.com>
228
229 * stor-layout.c (finalize_type_size): Revert workaround from 08-26.
230 * tree.c (make_node_stat): Use BITS_PER_UNIT instead of alignment
231 of char_type_node.
232
233 2005-08-28 Jakub Jelinek <jakub@redhat.com>
234
235 PR ada/23593
236 * builtins.c (get_memory_rtx): Don't strip nops
237 in between COMPONENT_REFs.
238
239 2005-08-27 Andrew Pinski <pinskia@physics.uc.edu>
240
241 PR middle-end/23463
242 * gimplify.c (gimplify_modify_expr_rhs): Remove check for zero sized
243 types.
244 (gimplify_modify_expr): Check for zero sized types and gimplify the
245 rhs and lhs as statements.
246
247 2005-08-27 John David Anglin <dave.anflin@nrc-cnrc.gc.ca>
248
249 PR libgcj/23508
250 * pa/linux-unwind.h (pa32_fallback_frame_state): Use r0 slot in frame
251 state for return address column of signal frames.
252
253 2005-08-27 David Edelsohn <edelsohn@gnu.org>
254
255 PR target/23539
256 * config/rs6000/rs6000.c (expand_block_clear): Use HImode when
257 bytes >= 2 not bytes == 2.
258 (expand_block_move): Same.
259
260 2005-08-27 Richard Guenther <rguenther@suse.de>
261
262 PR target/23575
263 * config/i386/sse.md (sse2_movsd): Add missing closing
264 braces.
265
266 2005-08-27 Paul Brook <paul@codesourcery.com>
267
268 * genrecog.c (enum decision_type): Add DT_num_insns.
269 (struct decision_test): Add u.num_insns.
270 (add_to_sequence): Add DT_num_insns test.
271 (maybe_both_true_2, nodes_identical_1): Handle DT_num_insns.
272 (write_cond, debug_decision_2): Ditto.
273 (change_state): Assume peep2_next_insn never fails.
274 Remove "afterward" argument.
275 (write afterward, write_tree): Update to match.
276 * recog.c (peep2_current_count): New variable.
277 (peep2_next_insn): Check it.
278 (peephole2_optimize): Set peep2_current_count.
279 * recog.h (peep2_current_count): Declare.
280
281 2005-08-26 Josh Conner <jconner@apple.com>
282
283 PR middle-end/23584
284 * ipa-pure-const.c (check_tree): Check for volatile-ness
285 when considering a dereference.
286
287 2005-08-27 Jakub Jelinek <jakub@redhat.com>
288
289 * rtl.h (MEM_IN_STRUCT_P): Fix comment typo.
290
291 2005-08-26 Jakub Jelinek <jakub@redhat.com>
292
293 PR rtl-optimization/23561
294 * builtins.c (get_memory_rtx): Add LEN argument. If MEM_EXPR is
295 a COMPONENT_REF, remove all COMPONENT_REF from MEM_EXPR unless
296 at most LEN bytes long memory fits into the field.
297 (expand_builtin_memcpy, expand_builtin_mempcpy, expand_movstr,
298 expand_builtin_strncpy, expand_builtin_memset, expand_builtin_memcmp,
299 expand_builtin_strcmp, expand_builtin_strncmp): Adjust callers.
300
301 2005-08-26 Richard Henderson <rth@redhat.com>
302
303 PR rtl-opt/23560
304 * loop.c (biased_biv_may_wrap_p): New.
305 (maybe_eliminate_biv_1): Use it to suppress non-equality
306 comparison transformations. Delete disabled code.
307
308 2005-08-26 Ian Lance Taylor <ian@airs.com>
309
310 * combine.c (make_extraction): Avoid reference outside object.
311
312 2005-08-26 J"orn Rennecke <joern.rennecke@st.com>
313
314 * stor-layout.c (finalize_type_size): Restore behaviour for
315 non-aggregate types to the status quo ante of the patch for
316 pr 23467. Document why it matters.
317
318 2005-08-26 Jakub Jelinek <jakub@redhat.com>
319
320 PR c/23506
321 * c-common.c (c_common_nodes_and_builtins): Increase builtin_types
322 array by one element, initialize the BT_LAST element with NULL.
323
324 2005-08-26 David Edelsohn <edelsohn@gnu.org>
325
326 * config/rs6000/rs6000.md (eq<mode>_compare): Only enable when
327 optimizing for size.
328 (plus_eqsi): Same.
329 (compare_plus_eqsi): Same.
330 (plus_eqsi_compare): Same.
331 (neg_eq0<mode>): Same.
332 (neg_eq<mode>): Same.
333
334 * config/rs6000/aix52.h (PROCESSOR_DEFAULT): Change to
335 PROCESSOR_POWER4.
336
337 2005-08-26 Nick Clifton <nickc@redhat.com>
338
339 * config/v850/v850.c (ep_memory_operand): Return FALSE if
340 TARGET_EP is not defined.
341 * config/v850/c850.h (TARGET_CPU_CPP_BUILTINS): Define __EP__ if
342 TARGET_EP is enabled.
343 (OPTIMIZATION_OPTIONS): Do not define MASK_EP when optimizing.
344 * config/v850/v850.md (save_all_interrupt): Only use the EP
345 register if TARGET_EP is defined.
346 (restore_all_interrupt): Likewise.
347 * config/v850/lib1funcs.asm: Update functions so that the EP
348 register is only used if __EP__ is defined.
349
350 2005-08-26 David Ung <davidu@mips.com>
351
352 * config/mips/mips.c (mips_expand_prologue): Handle case when
353 generating for MIPS16 and the outgoing argument area is more than
354 SMALL_OPERAND. Use the frame pointer as temporary to generate the
355 add instruction.
356
357 2005-08-26 Paul Woegerer <paul.woegerer@nsc.com>
358
359 * config/crx/crx.md: Make doloop_end pattern usage controllable
360 via mloop-nesting=<max-nesting> command line switch. Make sure
361 the combiner cannot use doloop_end_<mode> in an illegal way.
362 * config/crx/crx.c: Use regs up to r6 for argument passing.
363 Refine crx_address_cost (non cst4 displacements are expensive).
364 * config/crx/crx.opt: Add switch for mloop-nesting=.
365
366 2005-08-26 Adrian Straetling <straetling@de.ibm.com>
367
368 * config/s390/s390.md: ("movstr", "*movstr"): Add patterns.
369 (UNSPEC_MVST): New constant.
370
371 2005-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
372
373 * config/s390/predicates.md ("shift_count_operand", "setmem_operand"):
374 Reject operands containing eliminable registers.
375 * testsuite/gcc.dg/20050825-1.c: New testcase.
376
377 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
378 Jan Hubicka <jh@suse.cz>
379
380 * regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.
381
382 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
383
384 PR tree-optimization/23546
385 * tree-ssa-loop-im.c (for_each_index): Handle INTEGER_CST
386 and REAL_CST nodes.
387
388 2005-08-24 Pete Steinmetz <steinmtz@us.ibm.com>
389
390 * params.def (PARAM_MIN_SPEC_PROB): New.
391 * sched-rgn.c (MIN_PROBABILITY): Delete.
392 (compute_trg_info): Convert to PARAM_VALUE.
393 * doc/invoke.texi (param): Document min-spec-prob.
394
395 2005-08-24 Fariborz Jahanian <fjahanian@apple.com>
396
397 * config/darwin.h: define __PIC__
398 * config/rs6000/darwin.h: Add SUBTARGET_OS_CPP_BUILTINS to
399 TARGET_OS_CPP_BUILTINS macro.
400
401 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
402
403 * config/rs6000/rs6000.md: Fix thinko in the peephole2 I added
404 yesterday.
405
406 2005-08-24 Zdenek Dvorak <dvorakz@suse.cz>
407
408 * bb-reorder.c (copy_bb, duplicate_computed_gotos): Add argument
409 to duplicate_block.
410 * cfghooks.c (duplicate_block): Added position where to place
411 new block as argument.
412 * cfghooks.h (duplicate_block): Declaration changed.
413 * cfglayout.c (copy_bbs): Add argument after. Pass it to
414 duplicate_block.
415 * cfglayout.h (copy_bbs): Declaration changed.
416 * cfgloop.h (loop_version): Declaration changed.
417 * cfgloopmanip.c (duplicate_loop_to_header_edge): Pass
418 position to copy_bbs.
419 (loop_version): Pass position to duplicate_loop_to_header_edge.
420 Add place_after argument and position new blocks according to
421 it.
422 * modulo-sched.c (sms_schedule): Pass place_after argument
423 to loop_version.
424 * tracer.c (tail_duplicate): Pass argument to duplicate_block.
425 * tree-cfg.c (split_edge_bb_loc): New function.
426 (tree_split_edge, tree_duplicate_sese_region): Use split_edge_bb_loc
427 to determine position of new blocks.
428 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass argument
429 to loop_version.
430 * tree-ssa-threadupdate.c (create_block_for_threading): Pass
431 argument to duplicate_block.
432 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg):
433 Pass position to copy_bbs.
434
435 2005-08-24 Zdenek Dvorak <dvorakz@suse.cz>
436
437 * fold-const.c (ptr_difference_const): Use
438 cst_and_fits_in_hwi instead of host_integerp.
439
440 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
441
442 * config/darwin.c (gen_pic_offset): New.
443 (machopic_indirect_data_reference, machopic_legitimize_pic_address):
444 Use it.
445
446 2005-08-23 Zdenek Dvorak <dvorakz@suse.cz>
447
448 PR tree-optimization/23486
449 * tree-ssa-loop.c (pass_scev_cprop): Add TODO_update_ssa_only_virtuals.
450
451 2005-08-23 Phil Edwards <phil@codesourcery.com>
452
453 * config.gcc (*-*-vxworks*): Update tm_file, add extra_options,
454 remove use_collect2.
455 (powerpc-wrs-vxworks): Update, split out *-*-vxworksae target.
456
457 * target-def.h (TARGET_HAVE_CTORS_DTORS): Allow target
458 configuration files to override the default value.
459
460 * config/t-vxworks: Remove INSTALL_ASSERT_H. Define STMP_FIXPROTO,
461 EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS.
462 * config/vx-common.h: New file, split out from...
463 * config/vxworks.h: here. Update for VxWorks 6.x and RTP mode.
464 * config/vxworksae.h: New file, for VxWorks AE.
465 * config/vxworks.opt: New file.
466 * config/vxlib.c: Update for VxWorks 6.
467
468 * config/rs6000/t-vxworks (MULTILIB_OPTIONS): New list. Adjust
469 other MULTILIB_* variables appropriately.
470 (LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS): Correct from t-ppccomm.
471 * config/rs6000/t-vxworksae: New file, adjust multilibs for AE.
472 * config/rs6000/vxworks.h: Update for VxWorks 6.
473 * config/rs6000/vxworksae.h: New file, mostly placeholder for now.
474
475 2005-08-23 Andrew Pinski <pinskia@physics.uc.edu>
476
477 PR target/20799
478 * config/darwin.c (machopic_select_section): Remove the hack to
479 mark "::operator new" and "::operator delete" for coalescing
480 even though they are not weak.
481
482 2005-08-24 Alan Modra <amodra@bigpond.net.au>
483
484 * configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
485 * configure: Regenerate.
486
487 2005-08-23 Paolo Bonzini <bonzini@gnu.org>
488
489 PR middle-end/23517
490 * fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert
491 between vectors.
492 * convert.c (convert_to_integer, convert_to_vector): Likewise.
493 * tree-vect-generic.c (tree_vec_extract, expand_vector_operations_1):
494 Likewise.
495
496 2005-08-23 Paolo Bonzini <bonzini@gnu.org>
497
498 * config/rs6000/predicates.md (equality_operator): New.
499 * config/rs6000/rs6000.md: Rewrite as a peephole2 the split for
500 comparison with a large constant.
501
502 2005-08-23 Mark Mitchell <mark@codesourcery.com>
503
504 * hwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.
505
506 2005-08-23 J"orn Rennecke <joern.rennecke@st.com>
507
508 * sh.c (sh_builtin_saveregs): If the number of to-be-saved fp
509 registers is even, and we have a hardware double precision fp,
510 align the buffer.
511 (sh_gimplify_va_arg_expr): For floating point arguments, consider
512 size of current argument when checking if argument was passed in
513 registers.
514
515 * sh.c (sh_attr_renesas_p): Handle error_mark_node.
516
517 PR middle-end/23467
518 * stor-layout.c (finalize_type_size): Dont override
519 existing alignment with a smaller alignment from the mode.
520
521 2005-08-23 Sebastian Pop <pop@cri.ensmp.fr>
522
523 * lambda-code.c (lambda_vector_lexico_pos): Moved...
524 * lambda.h (lambda_vector_lexico_pos): ... here.
525 * tree-data-ref.c (build_classic_dist_vector): Return false when
526 the distance vector is lexicographically negative.
527
528 2005-08-23 Sebastian Pop <pop@cri.ensmp.fr>
529
530 PR tree-optimization/23511
531 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Don't
532 handle cases where TYPE_MIN_VALUE or TYPE_MAX_VALUE are NULL_TREE.
533
534 2005-08-23 Jakub Jelinek <jakub@redhat.com>
535
536 PR tree-optimization/22043
537 * tree.h (count_type_elements): Add ALLOW_FLEXARR argument.
538 * expr.c (count_type_elements): Add ALLOW_FLEXARR argument.
539 If ALLOW_FLEXARR, handle types ending with flexible array member.
540 Pass false as second argument to recursive count_type_elements calls.
541 (categorize_ctor_elements_1, mostly_zeros_p): Pass false as second
542 argument to count_type_elements call.
543 * tree-sra.c (decide_block_copy): Likewise.
544 * gimplify.c (gimplify_init_constructor): If num_type_elements < 0
545 for a constant-sized object, set cleared as well. Pass true as
546 second argument to count_type_elements call.
547
548 2005-08-23 Alan Modra <amodra@bigpond.net.au>
549
550 PR target/21571
551 * config/rs6000/rs6000.c (rs6000_legitimate_small_data_p): Rename
552 from legitimate_small_data_p, and make global. Update use.
553 Remove forward declaration.
554 * config/rs6000/rs6000-protos.h (rs6000_legitimate_small_data_p):
555 Declare.
556 * config/rs6000/rs6000.md (movdf_hardfloat32): Allow small data mems.
557
558 2005-08-23 David Edelsohn <edelsohn@gnu.org>
559
560 * config/rs6000/rs6000.md (eq<mode>): Use output operand instead
561 of scratch intermediates.
562 (eq<mode>_compare): Same.
563 (neg_eq0<mode>): New.
564 (neg_eq<mode>): Convert to define_insn_and_split.
565
566 2005-08-23 Alan Modra <amodra@bigpond.net.au>
567
568 PR target/23070
569 * config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to
570 stdarg functions, set/clear the fp marker even when no variable
571 args are passed.
572 * config/rs6000/sysv4.opt (mprototype): Describe.
573
574 2005-08-22 Jakub Jelinek <jakub@redhat.com>
575
576 PR rtl-optimization/23478
577 * regs.h (reg_info): Add throw_calls_crossed.
578 (REG_N_THROWING_CALLS_CROSSED): Define.
579 * flow.c (allocate_reg_life_data): Initialize
580 REG_N_THROWING_CALLS_CROSSED.
581 (propagate_one_insn, attempt_auto_inc): Update
582 REG_N_THROWING_CALLS_CROSSED.
583 * global.c (global_alloc): Don't allocate pseudos across
584 calls that may throw.
585
586 2005-08-22 Andrew Pinski <pinskia@physics.uc.edu>
587
588 PR c/18715
589 * c-common.c (c_do_switch_warnings): Look for a node where the enum's
590 value is inbetween the range if we did not find an exact match.
591
592 2005-08-22 Aldy Hernandez <aldyh@redhat.com>
593
594 * doc/invoke.texi (Option Summary): Add ms1 options.
595 * doc/extend.texi: Document interrupt handler attribute for ms1.
596 * doc/md.texi: Document ms1 constraints.
597 * config.gcc: Add ms1-*-elf.
598 * config/ms1/ms1.h: New.
599 * config/ms1/ms1.c: New.
600 * config/ms1/ms1.md: New.
601 * config/ms1/ms1-protos.h: New.
602 * config/ms1/ABI.txt: New.
603 * config/ms1/crti.asm: New.
604 * config/ms1/crtn.asm: New.
605 * config/ms1/lib2extra-funcs.c: New.
606 * config/ms1/t-ms1: New.
607 * config/ms1/ms1.opt: New.
608
609 2005-08-22 Ira Rosen <irar@il.ibm.com>
610
611 * config/rs6000/altivec.md (xorv4sf3): New.
612 (negv4sf2, neg<mode>2): Likewise.
613
614 2005-08-21 H.J. Lu <hongjiu.lu@intel.com>
615
616 PR target/23485
617 * config/ia64/ia64.md (divsi3): Check divide by zero.
618 (udivsi3): Likewise.
619 (divdi3): Likewise.
620 (udivdi3): Likewise.
621
622 2005-08-21 Jakub Jelinek <jakub@redhat.com>
623
624 * simplify-rtx.c (simplify_immed_subreg) <case CONST_DOUBLE>: Only clear
625 up to elem_bitsize bits, not max_bitsize.
626
627 2005-08-21 Sebastian Pop <pop@cri.ensmp.fr>
628
629 PR tree-optimization/23433
630 * tree-chrec.c (chrec_apply): Translate INTEGER_CST to a
631 REAL_CST when the type is SCALAR_FLOAT_TYPE_P.
632
633 2005-08-21 Sebastian Pop <pop@cri.ensmp.fr>
634
635 PR tree-optimization/23434
636 * tree-ssa-loop-niter.c (proved_non_wrapping_p): Give up when
637 the iteration bound is not an INTEGER_CST.
638
639 2005-08-21 Dorit Nuzman <dorit@il.ibm.com>
640
641 * tree-vect-transform.c (get_initial_def_for_reduction): Set
642 need_epilog_adjust back to false for MIN/MAX case. Set *scalar_def to
643 NULL if need_epilog_adjust is false.
644 (vect_create_epilog_for_reduction): Variable adjust_in_epilog removed.
645 Case 3 always peels first itration, not just for PLUS case, and no need
646 to use scalar_initial_def here. Create an epilog adjustment only if
647 scalar_initial_def is not NULL.
648
649 (vectorizable_reduction): Remove assert.
650
651 2005-08-20 H.J. Lu <hongjiu.lu@intel.com>
652
653 PR target/23485
654 * config/ia64/lib1funcs.asm (__divdi3): Check divide by zero.
655 (__moddi3): Likewise.
656 (__udivdi3): Likewise.
657 (__umoddi3): Likewise.
658 (__divsi3): Likewise.
659 (__modsi3): Likewise.
660 (__udivsi3): Likewise.
661 (__umodsi3): Likewise.
662
663 2005-08-20 Jakub Jelinek <jakub@redhat.com>
664
665 * tree-pass.h (TDF_GRAPH): Define.
666 * tree-dump.c (dump_options): Don't set TDF_GRAPH in "all".
667 * passes.c (finish_optimization_passes): Only call
668 finish_graph_dump_file if TDF_GRAPH is set.
669 (execute_one_pass): Only call clean_graph_dump_file if dump_file !=
670 NULL. Set TDF_GRAPH bit.
671 (execute_todo): Call print_rtl_graph_with_bb if TDF_GRAPH is set.
672
673 2005-08-20 Richard Earnshaw <richard.earnshaw@arm.com>
674
675 * arm.h (arm_stack_offsets): Add locals_base field.
676 * arm.c (arm_get_frame_offsets): Compute it.
677 (thumb_compute_initial_elimination offset): Make the Thumb frame
678 pointer point to the base of the local variables.
679 (thumb_expand_prologue): Update accordingly.
680 (thumb_expand_epilogue): Likewise.
681
682 * arm.md (thumb_movhi_clobber): Make this insn a define_expand. Change
683 mode of clobbered scratch to DImode. Handle a case that's known to
684 need this.
685
686 2005-08-19 David Edelsohn <edelsohn@gnu.org>
687
688 * config/rs6000/rs6000.md (gt0<mode>): Delete.
689 (gt0<mode>_compare): Delete.
690 (neg_gt0<mode>): Delete.
691
692 2005-08-19 Eric Christopher <echristo@apple.com>
693
694 * optabs.h: Change CTI_ to COI_.
695 * optabs.c: Ditto.
696
697 2005-08-19 James E Wilson <wilson@specifix.com>
698
699 * builtins.c (expand_builtin_return_addr): Set
700 current_function_accesses_prior_frames when count != 0. Use
701 frame_pointer_rtx when count == 0.
702 * function.h (struct function): Add accesses_prior_frames field.
703 (current_function_accesses_prior_frames): Define.
704 * reload1.c (init_elim_table): Check
705 current_function_accesses_prior_frames.
706 * doc/tm.texi (INITIAL_FRAME_ADDRESS_RTX): Update docs.
707
708 2005-08-19 Diego Novillo <dnovillo@redhat.com>
709
710 * tree-cfgcleanup.c (cleanup_tree_cfg): Fix flowgraph change
711 indicator. Return true if the flowgraph changed during
712 cleanup.
713
714 2005-08-19 Diego Novillo <dnovillo@redhat.com>
715
716 PR 23476
717 * tree-cfgcleanup.c (cleanup_control_expr_graph): Fold the
718 conditional expression before testing its value.
719
720 2005-08-19 Diego Novillo <dnovillo@redhat.com>
721
722 * doc/invoke.texi: Fix documentation for -ftree-dominator-opts.
723
724 2005-08-19 Devang Patel <dpatel@apple.com>
725
726 PR tree-optimization/23048
727 * tree-if-conv.c (if_convertible_bb_p): Supply basic_block as
728 third parameter. Check whether latch is dominated by exit
729 block or not.
730 (if_convertible_loop_p): Supply exit block itself to
731 if_convertible_bb_p.
732
733 2005-08-19 Richard Earnshaw <richard.earnshaw@arm.com>
734
735 PR target/23473
736 * arm.md (arm_load_pic_register): Change argument to the mask of
737 saved registers. Call thumb_find_work_register if we need a
738 scratch register on Thumb.
739 (arm_expand_prologue): Pass empty register set to
740 arm_load_pic_register.
741 (thumb_expand_prologue): Pass live_regs_mask directly to
742 arm_load_pic_register.
743 * arm-protos.h (arm_load_pic_register): Update prototype.
744
745 2005-08-19 J"orn Rennecke <joern.rennecke@st.com>
746
747 * sh.c (find_sole_member): New function.
748 (sh_gimplify_va_arg_expr): Use it. Allow RECORD_TYPE mode mismatch
749 if the record's alignment is larger than the size of its only member.
750
751 2005-08-19 Richard Earnshaw <richard.earnshaw@arm.com>
752
753 PR target/23436
754 * arm.c (thumb_legitimize_reload_address): New function.
755 * arm-protos.h (thumb_legitimize_reload_address): Add prototype.
756 * arm.h (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Call it.
757
758 2005-08-19 Paul Woegerer <paul.woegerer@nsc.com>
759
760 * config/crx/crx.c: Implement crx_decompose_address. Reject
761 symbolic displacements since CRX register relative adressing
762 mode can't handle unsigned 32-bit values as displacements.
763 * config/crx/crx.h: Simplify definitions, remove redundant
764 parenthesis and obsolete macros.
765 * config/crx/crx.opt: Add new switch for debugging addresses.
766 * config/crx/crx-protos.h: Add new declarations for above.
767
768 2005-08-19 Andrew Pinski <pinskia@physics.uc.edu>
769
770 PR middle-end/20624
771 * gimple-low.c (block_may_fallthru): Handle CLEANUP_POINT_EXPR by
772 looking past it.
773
774 2005-08-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
775
776 * collect2.c (dup2): Delete.
777 * configure.ac: Don't check for dup2.
778
779 * config.in, configure: Regenerate.
780
781 2005-08-18 J"orn Rennecke <joern.rennecke@st.com>
782
783 * sh.c (sh_gimplify_va_arg_expr): Loop to substitute a RECORD_TYPE
784 record with the type of its only member.
785
786 2005-08-18 David Edelsohn <edelsohn@gnu.org>
787
788 * config/rs6000/rs6000.md (ltu<mode>_compare): Convert to
789 define_insn_and_split.
790 (plus_ltu<mode>_compare): Same.
791 (gtu<mode>_compare): Same.
792 (plus_gtu<mode>_compare): Same.
793
794 2005-08-18 Dorit Nuzman <dorit@il.ibm.com>
795
796 PR tree-optimization/22228
797 * tree-ssa-loop (pass_vectorize): Add TODO_verify_loops to
798 todo_flags_start.
799 * tree-vect-transform.c (vect_transform_loop): Mark the variables that
800 are recorded in vect_vnames_to_rename for renaming.
801 * tree-vectorizer.c (vect_vnames_to_rename): New global bitmap.
802 (slpeel_update_phi_nodes_for_guard1): Record virtual vars for renaming
803 in vect_vnames_to_rename.
804 (vectorize_loops): Allocate and free the vect_vnames_to_rename bitmap.
805 * tree-vectorizer.h (vect_vnames_to_rename): New extern variable.
806
807 2005-08-18 Jan Hubicka <jh@suse.cz>
808
809 PR c++/22034
810 * cgraphunit.c (cgraph_varpool_assemble_pending_decls): Emit debug
811 info only for local statics, not for member variables.
812
813 2005-08-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
814
815 * tree-data-ref.c (analyze_siv_subscript_cst_affine): Fix comment typo.
816
817 2005-08-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
818
819 * c-typeck.c (designator_errorneous): Rename to designator_erroneous.
820
821 2005-08-18 Andrew Pinski <pinskia@physics.uc.edu>
822
823 PR middle-end/16045
824 * builtins.c (fold_builtin): Create a new NOP_EXPR all the time.
825
826 2005-08-17 James E Wilson <wilson@specifix.com>
827
828 * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
829 array size check.
830
831 2005-08-17 David Edelsohn <edelsohn@gnu.org>
832
833 * config/rs6000/rs6000.md (leu<mode>): Convert to mode macro.
834 (leu<mode>_compare): Same.
835 (plus_leu<mode>): Same.
836 (neg_leu<mode>): Same.
837 (and_neg_leu<mode): Same.
838 (ltu<mode>_compare): Same.
839 (plus_ltu<mode>): Same.
840 (geu<mode>): Same.
841 (geu<mode>_compare): Same.
842 (plus_geu<mode>): Same.
843 (neg_geu<mode>): Same.
844 (and_neg_geu<mode>): Same.
845 (plus_gt<mode>): Same.
846 (gtu<mode>_compare): Same.
847 (plus_gtu<mode>): Same.
848
849 2005-08-17 Erik Christiansen <erik@dd.nec.com.au>
850
851 * config/v850/lib1funcs.asm (callt_save_interrupt): Fix comment typos.
852 Move call_table_data to end. Delete spurious .text.
853 (callt_save_all_interrupt): Fix comment typo.
854
855 2005-08-17 James E Wilson <wilson@specifix.com>
856 Kevin Winchester <winchester@amirix.com>
857
858 PR target/21684
859 * config/mcore/mcore.h (SHIFT_COUNT_TRUNCATED): Define to 0.
860
861 2005-08-17 Uros Bizjak <uros@kss-loka.si>
862
863 PR target/23268
864 * config/i386/i386.md ("*fist<mode>2_1"): New pattern.
865 ("lrint<mode>2"): Change expander to use "*fist<mode>2_1" pattern.
866
867 2005-08-17 J"orn Rennecke <joern.rennecke@st.com>
868
869 * sh.c (sh_gimplify_va_arg_expr): Don't substitute a RECORD_TYPE
870 record with the type of its only member if the modes don't match.
871
872 * varasm.c (decode_reg_name): Skip empty additional register names.
873
874 2005-08-16 Zdenek Dvorak <dvorakz@suse.cz>
875
876 * tree-ssa-loop-im.c (MAX_LSM_NAME_LENGTH, lsm_tmp_name,
877 lsm_tmp_name_length): New.
878 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): New functions.
879 (schedule_sm): Use get_lsm_tmp_name instead of "lsm_tmp".
880
881 2005-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
882 Andreas Krebbel <krebbel1@de.ibm.com>
883
884 * config.gcc: Added z9-109 switch.
885 * config/s390/2084.md ("x_int", "x_agen", "x_lr", "x_la", "x_larl",
886 "x_load", "x_store", "x_branch", "x_call", "x_mul_hi", "x_mul_sidi",
887 "x_div", "x_sem", "x_cs", "x_vs", "x_stm", "x_lm", "x_other",
888 "x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
889 "x_floadsf", "x_fstore_df", "x_fstoresf", "x_ftoi", "x_itof"): Enable
890 for "z9_109" cpu attribute.
891 * config/s390/s390.c (z9_109_cost): New processor cost structure.
892 (CONST_OK_FOR_Os, CONST_OK_FOR_Op, CONST_OK_FOR_On): New macros.
893 (s390_handle_arch_option): Added z9-109 switch.
894 (override_options): Set respective cost function for z9-109.
895 (s390_const_ok_for_constraint_p): New constraints Os, Op, On.
896 (legitimate_reload_constant_p): Accept extended immediates.
897 (print_operand): Three new output modifiers added: k, m and o.
898 (s390_adjust_priority, s390_issue_rate): Handle Z9_109 like Z990.
899 (s390_output_mi_thunk): Use extended immediate when possible.
900 * config/s390/s390.h (processor_flags): Added PF_EXTIMM.
901 (TARGET_CPU_EXTIMM, TARGET_EXTIMM): New macros.
902 (CONSTRAINT_LEN): Added length of O constraint.
903 (CLZ_DEFINED_VALUE_AT_ZERO): Definition added.
904 * config/s390/s390.md ("cpu"): New value z9_109 added.
905 ("*tstdi_extimm", "*tstdi_ccconly_extimm", "*tstsi_extimm",
906 "*tstsi_cconly_extimm", "*movdi_64extimm", "*extendhidi2_extimm",
907 "*extendqidi2_extimm", "*extendhisi2_extimm", "*extendqisi2_extimm",
908 "*zero_extend<mode>si2_extimm", "*anddi3_extimm", "*iordi3_extimm",
909 "*xordi3_extimm", "clzdi2", "clztidi2"): New patterns.
910 ("*tstdi", "*tstsi", "*movdi_64", "*extendhisi2", "*extendqisi2",
911 "*zero_extend<mode>si2_64", "zero_extendqihi2", "*zero_extendqihi2_64",
912 "*anddi3", "*iordi3", "*xordi3"): Disable for TARGET_EXTIMM.
913 ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs", "*cmpsi_ccs", "*cmpdi_ccu",
914 "*cmpsi_ccu", "*movsi_zarch", "*adddi3_imm_cc", "*adddi3_carry1_cc",
915 "*adddi3_carry2_cc", "*adddi3_cc", "*adddi3_64", "*addsi3_imm_cc",
916 "*addsi3_carry1_cc", "*addsi3_carry2_cc", "*addsi3_cc", "addsi3",
917 "*andsi3_cc", "*andsi3_cconly", "*andsi3_zarch", "*iorsi3_cc",
918 "*iorsi3_cconly", "*iorsi3_zarch", "*xorsi3_cc", "*xorsi3_cconly",
919 "*xorsi3", "*xorhi3", "*xorqi3"): Added instruction using extended
920 immediates.
921 ("extend<mode>di2", "extend<mode>si2", "zero_extend<mode>di2",
922 "zero_extend<mode>si2"): Allow memory operands and don't manually emit
923 insns for TARGET_EXTIMM.
924
925 2005-08-17 Andreas Krebbel <krebbel1@de.ibm.com>
926
927 * testsuite/gcc.dg/20020926-1.c: Added "-mesa" to dg-options.
928
929 2005-08-17 Nick Clifton <nickc@redhat.com>
930
931 * config/stormy16/stormy16.c (xstormy16_encode_section_info):
932 Call default_encode_section_info.
933
934 2005-08-17 Steven Bosscher <stevenb@suse.de>
935
936 PR tree-optimization/21574
937 * tree-ssa-ccp.c (likely_value): If the right hand side is a
938 constant, return CONSTANT.
939 (ccp_lattice_meet): Use operand_equal_p instead of simple_cst_equal.
940 (ccp_fold, visit_assignment): Likewise.
941 (evaluate_stmt): Handle UNDEFINED and UNKNOWN_VAL the same way.
942
943 2005-08-16 James A. Morrison <phython@gcc.gnu.org>
944
945 * c-typeck.c (build_function_call): Call fold_buildN_initializer or
946 fold_buildN instead of buildN then fold_initializer or fold.
947 (build_unary_op): Likewise.
948 (build_binary_op): Likewise.
949 * fold-const.c (fold_initializer): Remove.
950 (fold_build1_initializer): New function.
951 (fold_build2_initializer): New function.
952 (fold_build3_initializer): New function.
953 * tree.h (fold_initializer): Remove.
954 (fold_build1_initializer): New function.
955 (fold_build2_initializer): New function.
956 (fold_build3_initializer): New function.
957
958 2005-08-16 James A. Morrison <phython@gcc.gnu.org>
959
960 * fold-const.c (optimize_bit_field_compare): Remove extra fold call.
961 (try_move_mult_to_index): Call fold_build2 instead of build2.
962 (fold_binary): Don't call fold after calls to try_move_mult_to_index.
963 * tree-ssa-loop-niter.c (inverse): Call int_const_binop instead of
964 fold_binary_to_constant.
965 (infer_loop_bounds_from_undefined): Call fold_build2 instead of
966 fold (build.
967 * tree-data-ref.c (tree_fold_divides_p): Use tree_int_cst_equal to
968 check if A == gcd (A, B). Remove TYPE argument.
969 (analyze_offset) Use fold_build2 instead of fold (build.
970 (create_data_ref): Likewise.
971 (analyze_siv_subscript_cst_affine): Update calls to tree_fold_divides_p.
972 * tree-ssa-ccp.c (widen_bitfield): Call fold_build2 instead of build2
973 then fold.
974
975 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
976
977 * config/arm/unaligned-funcs.c,config/i386/crtfastmath.c,
978 ipa-cp.c,ipa-prop.c,ipa-prop.h: Update FSF address.
979
980 2005-08-16 Andrew Pinski <pinskia@physics.uc.edu>
981
982 PR tree-opt/23402
983 * gimplify.c (zero_sized_type): New function.
984 (gimplify_modify_expr_rhs): If we have a zero sized type,
985 replace the statement with an empty statement.
986
987 2005-08-16 H.J. Lu <hongjiu.lu@intel.com>
988
989 * config/i386/crtfastmath.c (set_fast_math): Add "=m" for
990 fxsave.
991
992 2005-08-16 Ian Lance Taylor <ian@airs.com>
993
994 * doc/tm.texi (Label Output): Correct typo.
995
996 2005-08-16 Steven Bosscher <stevenb@suse.de>
997
998 PR target/23376
999 * loop-unroll.c (analyze_insn_to_expand_var): Make sure that
1000 force_operand will work later on using have_insn_for.
1001
1002 2005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1003
1004 * fold-const.c (tree_expr_nonnegative_p): Regroup cases.
1005
1006 2005-08-16 Ian Lance Taylor <ian@airs.com>
1007
1008 PR c++/23337
1009 * gimplify.c (gimplify_init_ctor_eval): If we see an element of
1010 vector type, don't try to construct it element by element. Add an
1011 assertion that we use a FIELD_DECL when building a COMPONENT_REF.
1012
1013 2005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1014
1015 * fold-const.c (fold_ternary): Simplify folding of a CALL_EXPR.
1016
1017 2005-08-16 Geoffrey Keating <geoffk@apple.com>
1018
1019 * doc/invoke.texi (Precompiled Headers): Document some more options
1020 which are known to be safe.
1021
1022 2005-08-16 James E Wilson <wilson@specifix.com>
1023
1024 PR tree-optimization/21105
1025 * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
1026 TREE_OVERFLOW check.
1027
1028 2005-08-16 David Edelsohn <edelsohn@gnu.org>
1029
1030 * config/rs6000/rs6000.md (ltu<mode>): Convert to mode macro.
1031 (neg_ltu<mode>): Same.
1032 (gtu<mode>): Same.
1033 (neg_gtu<mode>): Same.
1034
1035 2005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1036
1037 * builtins.c (expand_builtin_strcat): Remove superfluous call to fold.
1038 (fold_builtin_isdigit): Use fold_buildN.
1039 (build_function_call_expr): Likewise.
1040 * c-typeck.c (c_finish_loop): Likewise.
1041
1042 2005-08-16 J"orn Rennecke <joern.rennecke@st.com>
1043 Richard Shann <rshann@superh.com>
1044
1045 PR middle-end/20396:
1046 * optabs.c (expand_binop): Take TRULY_NOOP_TRUNCATION into account.
1047
1048 2005-08-16 Sebastian Pop <pop@cri.ensmp.fr>
1049
1050 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Reword a comment.
1051
1052 2005-08-15 Richard Earnshaw <richard.earnshaw@arm.com>
1053
1054 PR target/23355
1055 * arm.c (thumb_compute_save_reg_mask): Use similar logic to
1056 arm_compure_save_reg0_reg12_mask to determine when the PIC register
1057 must be saved.
1058
1059 2005-08-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1060
1061 PR middle-end/23369
1062 * fold-const.c (build_range_check): Disable optimization for function
1063 pointer expressions on targets that require function pointer
1064 canonicalization.
1065
1066 2005-08-15 Ulrich Weigand <uweigand@de.ibm.com>
1067
1068 * simplify-rtx.c (simplify_const_relational_operation): When
1069 extracting arguments of a COMPARE, recompute the mode as well.
1070
1071 2005-08-15 Ian Lance Taylor <ian@airs.com>
1072
1073 * tree.c (build_string): Mark tree CONSTANT and INVARIANT.
1074
1075 2005-08-15 DJ Delorie <dj@redhat.com>
1076
1077 * config/m32c/mov.md (movqi_op): Immediates can't be moved to
1078 the stack.
1079 (movsi_splittable): Allow, but split, moves to the stack.
1080 * config/m32c/m32c.c (m32c_split_move): Always split moves to the
1081 stack.
1082
1083 2005-08-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1084
1085 * aclocal.m4 (gcc_AC_FUNC_PRINTF_PTR): Delete.
1086 * configure.ac: Don't call gcc_AC_FUNC_PRINTF_PTR.
1087 * system.h (HOST_PTR_PRINTF): Don't define, poison it.
1088
1089 * bitmap.c, c-decl.c, config/i386/i386-interix.h,
1090 config/iq2000/iq2000.c, mips-tfile.c, print-rtl.c, print-tree.c:
1091 Delete HOST_PTR_PRINTF.
1092
1093 * configure, config.in: Regenerate.
1094
1095 2005-08-15 David Edelsohn <edelsohn@gnu.org>
1096
1097 * config/rs6000/rs6000.md (QHSI): New mode macro.
1098 (wd): Extend mode attr for QImode and HImode
1099 (dbits): New mode attr.
1100 (zero_extend<mode>di2): Convert to mode macro.
1101
1102 2005-08-15 Steve Ellcey <sje@cup.hp.com>
1103
1104 PR target/21841
1105 * doc/invoke.texi (-mgnu-ld): Update description.
1106 (-mhp-ld): Ditto.
1107
1108 2005-08-15 Sebastian Pop <pop@cri.ensmp.fr>
1109
1110 PR 23391
1111 * Makefile.in (tree-chrec.o): Depends on real.h.
1112 * tree-chrec.c: Include real.h.
1113 (chrec_fold_plus_poly_poly, chrec_fold_multiply_poly_poly,
1114 chrec_fold_plus_1): Use build_real for SCALAR_FLOAT_TYPE_P.
1115 * tree-scalar-evolution.c (add_to_evolution_1,
1116 interpret_rhs_modify_expr): Ditto.
1117
1118 2005-08-15 Sebastian Pop <pop@cri.ensmp.fr>
1119
1120 PR 23386
1121 * tree-data-ref.c (estimate_niter_from_size_of_data): When
1122 step is negative compute the estimation from init downwards to zero.
1123
1124 2005-08-14 James A. Morrison <phython@gcc.gnu.org>
1125
1126 * fold-const (fold_binary): Call fold_build2 instead of fold (build.
1127
1128 2005-08-14 Ulrich Weigand <uweigand@de.ibm.com>
1129
1130 * config/s390/s390.c (s390_const_ok_for_constraint_p): Add 'P'
1131 constraint.
1132 (legitimate_reload_constant_p): Fix handling of lliXX operands.
1133 Accept double-word constants that can be split.
1134 * config/s390/s390.md ("movti"): Use 'P' constraint.
1135 ("*movdi_31", "*movdf_31"): Likewise.
1136
1137 2005-08-14 Daniel Berlin <dberlin@dberlin.org>
1138
1139 Fix PR tree-optimization/22615
1140
1141 * tree-ssa-structalias.c (solution_set_add): Handle
1142 first_vi_for_offset returning NULL.
1143 (do_da_constraint): Ditto.
1144 (do_sd_constraint): Ditto.
1145 (do_ds_constraint): Ditto
1146 (find_func_aliases): Ditto.
1147 (build_constraint_graph): RHS is allowed be ANYTHING.
1148 (first_vi_for_offset): Return NULL if we couldn't find anything at
1149 the offset.
1150
1151 2005-08-14 Ulrich Weigand <uweigand@de.ibm.com>
1152
1153 * config/s390/s390.c (s390_canonicalize_comparison): Prefer register
1154 over memory as first operand.
1155
1156 2005-08-14 H.J. Lu <hongjiu.lu@intel.com>
1157
1158 PR target/23360
1159 * config/i386/crtfastmath.c (set_fast_math): Check if DAZ is
1160 available for setting it.
1161
1162 2005-08-14 Ira Rosen <irar@il.ibm.com>
1163
1164 PR tree-optimization/23320
1165 * tree-data-ref.c (base_addr_differ_p): Add comment. Check
1166 data-refs' types instead of base object nullness. Add check for
1167 pointer type data-refs before first location comparison. Remove
1168 assert.
1169
1170 2005-08-14 Andreas Schwab <schwab@suse.de>
1171
1172 * doc/md.texi (Machine Constraints): Fix misplaced @end table.
1173
1174 2005-08-13 James E Wilson <wilson@specifix.com>
1175
1176 * doc/cpp.texi (__SSP__, __SSP_ALL__): Document.
1177 * doc/invoke.texi (-Wstack-protector, -fstack-protector,
1178 -fstack-protector-all, --param ssp-buffer-size): Document.
1179 (-Wvariadic-macros): Alphabetize.
1180 (-fsched-stalled-insns-dep): Add missing 'f'.
1181
1182 * c-cppbuiltin.c (c_cpp_builtins): Add comment for flag_stack_protect
1183 macros.
1184
1185 2005-08-13 David Edelsohn <edelsohn@gnu.org>
1186
1187 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed
1188 or indirect address operand.
1189 (EXTRA_ADDRESS_CONSTRAINT): New.
1190 * config/rs6000/rs6000.md (prefetch): Change constraint "p" to "a".
1191
1192 2005-08-13 Sebastian Pop <pop@cri.ensmp.fr>
1193
1194 PR tree-optimization/22236
1195 * tree-cfg.c (print_pred_bbs, print_succ_bbs): Correctly print
1196 successors and predecessors.
1197 * tree-chrec.c (chrec_convert): Before converting, check that
1198 sequences don't wrap.
1199 * tree-data-ref.c (compute_estimated_nb_iterations): Moved ...
1200 (analyze_array): Extern.
1201 (find_data_references_in_loop): Remove call to
1202 compute_estimated_nb_iterations.
1203 * tree-data-ref.h (analyze_array): Declared.
1204 * tree-flow-inline.h (single_ssa_tree_operand, single_ssa_use_operand,
1205 single_ssa_def_operand, zero_ssa_operands): Fix documentation.
1206 * tree-flow.h (scev_probably_wraps_p): Declare with an extra parameter.
1207 * tree-scalar-evolution.c (instantiate_parameters_1): Factor entry
1208 condition.
1209 * tree-ssa-loop-ivcanon.c: Fix documentation.
1210 * tree-ssa-loop-ivopts.c (idx_find_step): Add a fixme note.
1211 * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): ... here.
1212 (infer_loop_bounds_from_undefined): New.
1213 (estimate_numbers_of_iterations_loop): Use
1214 infer_loop_bounds_from_undefined.
1215 (used_in_pointer_arithmetic_p): New.
1216 (scev_probably_wraps_p): Pass an extra parameter. Call
1217 used_in_pointer_arithmetic_p. Check that AT_STMT is not null.
1218 (convert_step): Fix documentation.
1219 * tree-vrp.c (adjust_range_with_scev): Call instantiate_parameters.
1220 Use initial_condition_in_loop_num and evolution_part_in_loop_num
1221 instead of CHREC_LEFT and CHREC_RIGHT. Adjust the call to
1222 scev_probably_wraps_p.
1223
1224 2005-08-13 Ulrich Weigand <uweigand@de.ibm.com>
1225
1226 * config/s390/s390.c (s390_split_branches): Revert 2005-08-12 change.
1227 (s390_register_info): Ignore clobbered_regs information for fixed
1228 registers, and only fixed registers.
1229 (s390_init_frame_layout): Remove redundant call.
1230
1231 2005-08-12 Gerald Pfeifer <gerald@pfeifer.com>
1232
1233 * doc/invoke.texi (C++ Dialect Options): Add dynamic_cast to
1234 description of -Wold-style-casts.
1235
1236 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
1237 Jakub Jelinek <jakub@redhat.com>
1238
1239 * config/s390/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
1240 * config/s390/s390-protos.h (s390_get_thread_pointer): Prototype added.
1241 * config/s390/s390.c (print_operand): New output modifier 'G' added.
1242 (get_thread_pointer): Renamed to s390_get_thread_pointer.
1243 * config/s390/s390.md (stack_protect_set, stack_protect_test): If
1244 TARGET_THREAD_SSP_OFFSET is defined, change operands[1] to
1245 (MEM:P (PLUS:P (tp, TARGET_THREAD_SSP_OFFSET))).
1246 (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
1247 ("stack_protect_set", "stack_protect_test"): New expanders.
1248 ("stack_protect_setsi", "stack_protect_setdi", "stack_protect_testsi",
1249 "stack_protect_testdi"): New insn definitions.
1250
1251 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
1252
1253 * config/s390/s390.md ("*movdf_31"): Changed constraint from P to K.
1254
1255 2005-08-12 Paul Brook <paul@codesourcery.com>
1256
1257 * config/arm/lib1funcs.asm: Error if __ARM_ARCH__ not set.
1258
1259 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
1260
1261 * config/s390/predicates.md (setmem_operand): New predicate.
1262 (shift_count_operand): Accept ANDs with special constants as
1263 operand.
1264 * config/s390/s390.c (print_shift_count_operand): Skip ANDs
1265 with special constants.
1266 * config/s390/s390.md ("setmem_long", "*setmem_long"): Replaced
1267 shift_count_operand with setmem_operand.
1268
1269 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
1270
1271 * config/s390/s390.c (s390_extract_part, s390_single_part):
1272 Type cast added.
1273 (s390_const_ok_for_constraint_p): Added SImode to the N constraint.
1274 (s390_output_mi_thunk): Don't use lg on 31 bit.
1275 * config/s390/s390.md ("*movdi_31", "*movdf_31"): Added lmy and stmy.
1276 ("*llgt_sisi" and splitter): Replaced TARGET_64BIT with TARGET_ZARCH.
1277
1278 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
1279
1280 * config/s390/s390.c (CONST_OK_FOR_J, CONST_OK_FOR_K): New macros.
1281 (s390_select_ccmode, s390_rtx_costs, legitimate_reload_constant_p,
1282 s390_init_frame_layout, s390_emit_prologue, s390_emit_epilogue,
1283 s390_output_mi_thunk): Replaced uses of CONST_OK_FOR_CONSTRAINT_P
1284 with one of the new macros.
1285
1286 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
1287
1288 * config/s390/s390.c (s390_split_branches, s390_init_frame_layout):
1289 Don't set save_return_addr_p.
1290 (s390_register_info): Make clobbered_regs not depending on
1291 save_return_addr_p.
1292
1293 2005-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
1294
1295 * gcc.c (LINK_SSP_SPEC): Remove space before a trailing }.
1296 (LINK_COMMAND_SPEC): Add space after %(link_ssp).
1297
1298 2005-08-11 James E. Wilson <wilson@specifix.com>
1299
1300 * config/ia64/ia64.h (EXTRA_MEMORY_CONSTRAINT): New.
1301
1302 2005-08-11 Jakub Jelinek <jakub@redhat.com>
1303
1304 * dwarf2out.c (add_location_or_const_value_attribute): Prefer
1305 locations gathered by var-tracking in single entry loc_list
1306 over loc_descriptor_from_tree.
1307
1308 * dwarf2out.c (concat_loc_descriptor): Add can_use_fbreg argument,
1309 pass it down to loc_descriptor.
1310 (loc_descriptor): Pass can_use_fbreg to concat_loc_descriptor.
1311 (containing_function_has_frame_base): Move earlier in the file.
1312 (loc_descriptor_from_tree_1): Use containing_function_has_frame_base
1313 instead of always assuming fbreg can't be used.
1314
1315 2005-08-11 David Edelsohn <edelsohn@gnu.org>
1316
1317 * config/rs6000/altivec.md: Change constraint "m" to "Z".
1318 * config/rs6000/predicates.md (indexed_or_indirect_operand):
1319 Accept address wrapped in AND for Altivec.
1320 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
1321 Strip AND wrapping offset address for Altivec.
1322
1323 2005-08-11 Richard Henderson <rth@redhat.com>
1324
1325 PR middle-end/23312
1326 * gimplify.c (gimplify_one_sizepos): Check for INTEGER_TYPE
1327 before using TYPE_IS_SIZETYPE.
1328
1329 2005-08-11 Richard Henderson <rth@redhat.com>
1330
1331 PR target/22225
1332 * config/alpha/alpha.c (alphaev4_insn_pipe): Add take pipes for
1333 insn types not present on ev4.
1334 (alphaev5_insn_pipe): Similarly.
1335
1336 2005-08-11 Richard Earnshaw <richard.earnshaw@arm.com>
1337
1338 PR target/23250
1339 * arm.c (arm_override_options): If the user has selected callee-super-
1340 interworking, then enable normal interworking.
1341
1342 2005-08-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1343
1344 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Undef before
1345 redefinition.
1346
1347 2005-08-11 Wu Zhou <woodzltc@cn.ibm.com>
1348
1349 * doc/rtl.texi: Fix two typos.
1350
1351 2005-08-11 Richard Guenther <rguenther@suse.de>
1352
1353 PR target/23289
1354 * config/i386/i386.c (ix86_function_ok_for_sibcall): Handle
1355 cases where we call to/from functions returning void.
1356
1357 2005-08-10 James A. Morrison <phython@gcc.gnu.org>
1358
1359 PR c++/23225
1360 * tree.c (build_pointer_type_for_mode): Robustify.
1361
1362 2005-08-10 James E Wilson <wilson@specifix.com>
1363
1364 * defaults.h, config/alpha/alpha.h, config/ia64/ia64.h
1365 (ASM_OUTPUT_ADDR_VEC_ELT): Delete.
1366
1367 * config/alpha/alpha.c (alpha_arg_partial_bytes): Change "(CUM)." to
1368 "cum->".
1369
1370 2005-08-10 Eric Christopher <echristo@apple.com>
1371
1372 * config/rs6000/rs6000.c (mems_ok_for_quad_peep): Rewrite.
1373 * config/rs6000/rs6000.md (*lfq_power2, *stfq_power2): Use
1374 V2DFmode.
1375
1376 2005-08-10 Andrew Pinski <pinskia@physics.uc.edu>
1377
1378 PR target/21887
1379 * config/darwin.c (machopic_indirect_data_reference): Use a new register
1380 for the high part when generating dynamic-no-pic code.
1381
1382 2005-08-10 H.J. Lu <hongjiu.lu@intel.com>
1383
1384 * config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
1385 (x86_64-*-linux*): Likewise.
1386
1387 * config/i386/crtfastmath.c: New file.
1388 * config/i386/t-crtfm: Likewise.
1389
1390 * config/i386/linux.h (ENDFILE_SPEC): New.
1391 * config/i386/linux64.h (ENDFILE_SPEC): Likewise.
1392
1393 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
1394 crtfastmath.o.
1395
1396 2005-08-10 Dorit Nuzman <dorit@il.ibm.com>
1397
1398 * doc/md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
1399 (vec_shl, vec_shr): Document new operations.
1400 * tree.def (VEC_RSHIFT_EXPR, VEC_LSHIFT_EXPR): Fix comment.
1401
1402 2005-08-10 David Edelsohn <edelsohn@gnu.org>
1403
1404 * config/rs6000/predicates.md (indexed_or_indirect_address): New.
1405 * config/rs6000/rs6000.md (prefetch): Remove operand 0 mode and
1406 change predicate to indexed_or_indirect_address.
1407
1408 2005-08-10 Richard Sandiford <richard@codesourcery.com>
1409
1410 * config/arm/lib1funcs.asm (__aeabi_uidiv, __aeabi_idiv): New aliases.
1411 * config/arm/libgcc-bpabi.ver (GCC_3.5): Add __aeabi_idiv,
1412 __aeabi_uidiv, __aeabi_uread4, __aeabi_uread8, __aeabi_uwrite4
1413 and __aeabi_uwrite8.
1414 * config/arm/unaligned-funcs.c: New file.
1415 * config/arm/t-bpabi (LIB2FUNCS_EXTRA): Add unaligned-funcs.c.
1416
1417 2005-08-09 Paolo Bonzini <bonzini@gnu.org>
1418
1419 * bb-reorder.c (pass_duplicate_computed_gotos, pass_partition_blocks):
1420 Add dump.
1421 * cfglayout.c (pass_insn_locators_initialize): Add dump.
1422 * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes):
1423 Add dump.
1424 * except.c (pass_convert_to_eh_region_ranges): Add dump.
1425 * final.c (pass_shorten_branches): Add dump.
1426 * flow.c (pass_recompute_reg_usage, pass_remove_death_notes): Add dump.
1427 (pass_life): Rename dump.
1428 (rest_of_handle_flow2): Remove initial verify_flow_info.
1429 * function.c (pass_instantiate_virtual_regs): Add dump.
1430 * integrate.c (pass_initial_value_sets): Add dump.
1431 * jump.c (pass_cleanup_barriers, pass_purge_lineno_notes): Add dump.
1432 * loop-init.c (pass_rtl_loop_init, pass_rtl_loop_done): Rename dump.
1433 (pass_rtl_move_loop_invariants, pass_rtl_unswitch, pass_rtl_doloop,
1434 pass_rtl_unroll_and_peel_loops): Rename dump and add gate.
1435 (gate_rtl_move_loop_invariants, gate_rtl_unswitch, gate_rtl_doloop,
1436 gate_rtl_unrool_and_peel_loops): New.
1437 (rtl_move_loop_invariants, rtl_unswitch, rtl_unrool_and_peel_loops,
1438 rtl_doloop): Do not look at flags.
1439 * mode-switching.c (pass_mode_switching): Add dump.
1440 * recog.c (pass_split_all_insns, pass_split_for_shorten_branches,
1441 pass_split_before_regstack): Add dump.
1442 * regmove.c (pass_stack_adjustments): Add dump.
1443 * tree-optimize.c (pass_fixup_cfg): Add dump.
1444
1445 2005-08-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1446
1447 PR 23309
1448 * config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when
1449 deciding which instruction sequence to use.
1450
1451 2005-08-09 Dorit Nuzman <dorit@il.ibm.com>
1452
1453 * tree-vect-transform.c (vect_create_epilog_for_reduction): Set
1454 BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
1455
1456 2005-08-09 Richard Guenther <rguenther@suse.de>
1457
1458 * c-common.c (builtin_function_2): Remove.
1459 (def_builtin_1): New function.
1460 (c_common_nodes_and_builtins): Use def_builtin_1 to
1461 build builtin functions.
1462
1463 2005-08-09 Jie Zhang <jie.zhang@analog.com>
1464
1465 * config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
1466 * config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
1467 * config/bfin/bfin.c (bfin_return_in_memory): Update to really match
1468 Visual DSP.
1469
1470 2005-08-09 James A. Morrison <phython@gcc.gnu.org>
1471
1472 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
1473 fold_binary instead of fold_build2 since we don't care about the
1474 resulting tree.
1475 (loop_niter_by_eval): Likewise.
1476 (compare_trees): Likewise.
1477 (proved_non_wrapping_p): Likewise.
1478
1479 2005-08-09 James A. Morrison <phython@gcc.gnu.org>
1480
1481 PR c/23161
1482 PR c/23165
1483 * c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
1484 if the if is really empty.
1485
1486 2005-08-09 Steven Bosscher <stevenb@suse.de>
1487
1488 PR tree-optimization/23234
1489 * tree-ssa-math-opts.c (place_reciprocal): New enum.
1490 (execute_cse_reciprocals_1): Replace the 'phi' argument with an
1491 argument of the new enum.
1492 (execute_cse_reciprocals): Add reciprocals for function arguments
1493 on the unique successor edge of the entry block. Update other calls
1494 to execute_cse_reciprocals_1.
1495
1496 2005-08-08 Richard Henderson <rth@redhat.com>
1497
1498 PR 22439
1499 * gimplify.c (gimplify_one_sizepos): Preserve the original type.
1500
1501 2005-08-08 Bob Wilson <bob.wilson@acm.org>
1502
1503 * expr.c (write_complex_part): Return after handling MEM.
1504
1505 2005-08-08 Josh Conner <jconner@apple.com>
1506
1507 PR rtl-optimization/23241
1508 * combine.c (simplify_comparison): Fix error in determining
1509 whether to lift a subreg from comparison.
1510
1511 2005-08-08 David Edelsohn <edelsohn@gnu.org>
1512
1513 PR target/18506
1514 * config/rs6000/altivec.md (vec_init<mode>): New.
1515 (vec_set<mode>): New.
1516 (vec_extract<mode>): New.
1517 * config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
1518 (rs6000_expand_vector_set): New.
1519 (rs6000_expand_vector_extract): New.
1520 (rs6000_legitimate_offset_address_p): Offset addresses are valid
1521 for Altivec modes before reload.
1522 (altivec_expand_vec_init_builtin): New.
1523 (get_element_number): New.
1524 (altivec_expand_vec_set_builtin): New.
1525 (altivec_expand_vec_ext_builtin): New.
1526 (altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
1527 builtins.
1528 (altivec_init_builtins): Init vec_init, vec_set, and vec_ext
1529 builtins.
1530 * config/rs6000/rs6000.h (rs6000_builtins): Add
1531 ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
1532 ALTIVEC_BUILTIN_VEC_EXT_<mode>.
1533 * config/rs6000/rs6000-protos.h: Declare new functions.
1534
1535 2005-08-08 Jan Hubicka <jh@suse.cz>
1536
1537 * i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
1538 (legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
1539 * i386.md (movdi*): Use pic_32bit_operand.
1540 * predicates.md (pic_32bit_operand): New.
1541
1542 2005-08-08 Nathan Sidwell <nathan@codesourcery.com>
1543
1544 PR c++/21166
1545 * stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
1546
1547 2005-08-07 James A. Morrison <phython@gcc.gnu.org>
1548
1549 * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
1550 (test_for_singularity): Use fold_build2.
1551
1552 2005-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1553
1554 * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
1555
1556 2005-08-07 Danny Smith <dannysmith@users.sourceforge.net>
1557
1558 * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
1559 (COMMON_ASM_OP) Define.
1560 * config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
1561 (ix86_encode_section_info): Likewise.
1562 (TARGET_ENCODE_SECTION_INFO): Conditionally define as
1563 SUBTARGET_ENCODE_SECTION_INFO.
1564
1565 2005-08-06 Richard Henderson <rth@redhat.com>
1566
1567 PR 21894
1568 * tree-nested.c (convert_local_reference): Save and restore val_only
1569 around component_ref and friends. Clear walk_subtrees by default.
1570
1571 2005-08-06 Peter O'Gorman <peter@pogma.com>
1572
1573 PR 21366
1574 * gcc.c (process_command): Check the argument to -b has a dash.
1575 * doc/invoke.texi: Update -b and -V docs.
1576
1577 2005-08-06 James E Wilson <wilson@specifix.com>
1578
1579 * config/mips/cross64.h, config/mips/t-cross64: Delete.
1580
1581 2005-08-06 Michael Matz <matz@suse.de>
1582
1583 * genattrtab.c (write_attr_get, write_attr_case): Use insn_code
1584 member only if only one insn is associated with the value.
1585
1586 2005-08-06 Nick Clifton <nickc@redhat.com>
1587
1588 * config/stormy16/stormy16.h (SYMBOL_FLAG_XSTORMY16_BELOW100):
1589 New define.
1590 (ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
1591 * config/stormy16/stormy16.c (xstormy16_below100_symbol):
1592 Check symbol flags instead of symbol name mangling.
1593 (xstormy16_asm_output_aligned_common): Likewise. Also
1594 simplify code since the bss100_section cass is the only case
1595 where the below100 code will be triggered.
1596 (xstormy16_encode_section_info): Encode below100 attribute
1597 using the SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling
1598 the name.
1599 (xstormy16_strip_name_encoding): Delete - this function is no
1600 longer needed.
1601 (TARGET_STRIP_NAME_ENCODING): Undefine.
1602 * config/stormy16/stormy16-protos.h: Delete prototype for
1603 xstormy16_strip_name_encoding.
1604
1605 2005-08-06 Kazu Hirata <kazu@codesourcery.com>
1606
1607 * Makefile.in, cfgexpand.c, cfgloop.h, cfgloopmanip.c,
1608 config.gcc, ipa-cp.c, ipa-prop.c, ipa-prop.h, reg-stack.c,
1609 tree-ssa-structalias.c, tree-vrp.c, value-prof.c, vec.h,
1610 config/linux.h, config/alpha/alpha.h, config/alpha/linux.h,
1611 config/alpha/predicates.md, config/arc/arc.h,
1612 config/arm/arm.h, config/arm/ieee754-df.S,
1613 config/arm/ieee754-sf.S, config/bfin/bfin.c,
1614 config/bfin/bfin.h, config/c4x/c4x.h, config/crx/crx.c,
1615 config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h,
1616 config/i386/i386.h, config/ia64/ia64.c, config/ia64/ia64.h,
1617 config/m68hc11/m68hc11.h, config/mips/mips.c,
1618 config/mips/mips.h, config/mips/openbsd.h,
1619 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.h,
1620 config/pdp11/pdp11.h, config/rs6000/linux-unwind.h,
1621 config/rs6000/rs6000.c, config/rs6000/rs6000.h,
1622 config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
1623 config/sparc/linux.h, config/sparc/linux64.h,
1624 config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h,
1625 doc/extend.texi, doc/gcov.texi, doc/install.texi,
1626 doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix comment/doc
1627 typos. Follow spelling conventions.
1628
1629 2005-08-06 Joseph S. Myers <joseph@codesourcery.com>
1630
1631 PR c/23113
1632 * stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
1633 Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
1634 specially. Check for side effects only for COND_EXPR.
1635 * c-typeck.c (c_finish_stmt_expr): Mark statement expression
1636 return with TREE_NO_WARNING.
1637
1638 2005-08-06 Richard Sandiford <richard@codesourcery.com>
1639
1640 PR rtl-optimization/23233
1641 * loop.c (combine_movables): Require the modes to be the same.
1642 (move_movables): Remove handling of cases where the replacement
1643 had a different mode to the original.
1644
1645 2005-08-05 James A. Morrison <phython@gcc.gnu.org>
1646
1647 PR tree-optimization/23128
1648 * tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
1649 subtraction wrap, and set TREE_OVERFLOW if they do.
1650
1651 2005-08-05 Richard Henderson <rth@redhat.com>
1652
1653 PR 21728
1654 * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into
1655 FORCED_LABEL labels.
1656
1657 2005-08-05 J"orn Rennecke <joern.rennecke@st.com>
1658
1659 PR middle-end/23135
1660 * reload.c (find_reloads_subreg_address): Pass down TYPE
1661 unchanged. Change all callers except find_reloads_toplev.
1662
1663 2005-08-05 Michael Matz <matz@suse.de>
1664
1665 * genattrtab.c (current_alternative_string): Remove.
1666 (SIMPLIFY_ALTERNATIVE): Ditto.
1667 (attr_alt_bit_p): Ditto.
1668 (alternative_name): Make const char *.
1669 (evaluate_eq_attr): Remove use of above things.
1670 (simplify_test_exp): Ditto.
1671 (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 .
1672 (simplify_test_exp <AND>): Correct typo (test 'right' not 'left').
1673
1674 2005-08-04 James E Wilson <wilson@specifix.com>
1675
1676 * config/ptx4.h, config/sol2.h, config/arm/freebsd.h,
1677 config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h,
1678 config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h,
1679 config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h
1680 (LINK_SPEC): Delete useless %{Wl,*:%*} item.
1681
1682 2005-08-04 Richard Henderson <rth@redhat.com>
1683
1684 PR 21529
1685 * params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
1686 * params.h (SRA_MAX_STRUCTURE_COUNT): New.
1687 * tree-sra.c (decide_block_copy): Use it. Disable element copy
1688 if we'd have to instantiate too many members.
1689
1690 2005-08-04 Richard Henderson <rth@redhat.com>
1691
1692 PR 21291
1693 * tree-outof-ssa.c (coalesce_asm_operands): New.
1694 (coalesce_ssa_name): Use it. Split out ...
1695 (coalesce_phi_operands, coalesce_result_decls): ... these.
1696
1697 2005-08-04 Paul Brook <paul@codesourcery.com>
1698
1699 * read-rtl.c (read_quoted_string): Break if EOF.
1700
1701 2005-08-04 Andrew Pinski <pinskia@physics.uc.edu>
1702
1703 * tree.h (fold_build1): Change to macro and call fold_build1_stat.
1704 (fold_build2): Likewise.
1705 (fold_build3): Likewise.
1706 (fold_build1_stat): New function prototype.
1707 (fold_build2_stat): Likewise.
1708 (fold_build3_stat): Likewise.
1709 * fold-const.c (fold_build1): Rename to ..
1710 (fold_build1_stat): this. Add MEM_STAT_DECL. Pass the mem stats
1711 through to build1_stat.
1712 (fold_build2): Rename to ..
1713 (fold_build2_stat): this. Add MEM_STAT_DECL. Pass the mem stats
1714 through to build2_stat.
1715 (fold_build3): Rename to ..
1716 (fold_build3_stat): this. Add MEM_STAT_DECL. Pass the mem stats
1717 through to build3_stat.
1718
1719 2005-08-04 David Edelsohn <edelsohn@gnu.org>
1720 Ian Lance Taylor <ian@airs.com>
1721
1722 * function.c (assign_stack_local_1): Do not correct stack slot
1723 address if allocation size is smaller than mode size.
1724
1725 2005-08-04 Diego Novillo <dnovillo@redhat.com>
1726
1727 PR 22037
1728 * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
1729 (tree_merge_blocks): Propagate anything allowed by
1730 may_propagate_copy.
1731 Clarify documentation.
1732 * passes.c (execute_todo): If cleanup_tree_cfg invalidated the
1733 SSA form, schedule an update if necessary.
1734
1735 2005-08-04 Gerald Pfeifer <gerald@pfeifer.com>
1736
1737 * doc/install.texi (Binaries): Remove broken link to
1738 Sinix/Reliant Unix binaries.
1739
1740 2005-08-03 Richard Henderson <rth@redhat.com>
1741
1742 PR 23221
1743 * function.c (stack_protect_epilogue): Export.
1744 * tree.h (stack_protect_epilogue): Declare.
1745 * calls.c (expand_call): Call it.
1746
1747 2005-08-03 Eric Christopher <echristo@apple.com>
1748
1749 * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
1750 * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
1751 spec.
1752
1753 2005-08-04 Jan Hubicka <jh@suse.cz>
1754
1755 * profile.c (branch_prob): Split edges with goto locus on them
1756 to get proper line counts.
1757 * tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
1758
1759 2005-08-03 Paul Brook <paul@codesourcery.com>
1760
1761 * function.c (assign_parms): Round current_function_args_size
1762 to PARM_BOUNDARY, not STACK_BOUNDARY.
1763
1764 2005-08-03 Geoffrey Keating <geoffk@apple.com>
1765
1766 * config/i386/i386.c (x86_elf_aligned_common)
1767 (x86_output_aligned_bss): Don't try to use symbols that aren't defined.
1768
1769 2005-08-03 Zdenek Dvorak <dvorakz@suse.cz>
1770
1771 PR tree-optimization/23157
1772 * tree-scalar-evolution.c (scev_const_prop): Unshare trees
1773 before emitting them.
1774
1775 2005-08-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1776
1777 PR tree-optimization/19899
1778 * Makefile.in (tree-scalar-evolution.o): Add real.h.
1779 * tree-scalar-evolution.c: Include real.h.
1780 (add_to_evolution): Build constant -1 of correct type.
1781
1782 2005-08-03 Jan Hubicka <jh@suse.cz>
1783
1784 * cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
1785 * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case
1786 profile updating for complette unrolling.
1787 * loop-unroll.c (peel_loop_completely): Use it.
1788 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
1789 (tree_unroll_loops_completely): Disable code growing unrolling of cold
1790 loops.
1791
1792 2005-08-03 Paul Brook <paul@codesourcery.com>
1793
1794 * combine.c (can_change_dest_mode): New function.
1795 (try_combine, simplify_set): Use it.
1796
1797 2005-08-03 Eric Botcazou <ebotcazou@adacore.com>
1798
1799 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force
1800 TFmode to BLKmode.
1801
1802 2005-08-03 Gerald Pfeifer <gerald@pfeifer.com>
1803
1804 * doc/install.texi (Specific): Adjust link to openavr.org.
1805 (Specific): Remove broken reference to GCC 2.8.1 for OS/2.
1806 (Binaries): Adjust HP-UX Porting Center link.
1807 (Binaries): Adjust Free Software Foundation ordering link.
1808
1809 2005-08-03 Andrew Pinski <pinskia@physics.uc.edu>
1810
1811 * convert.c (convert_to_integer): Use fold_build1 instead of
1812 build1 when converting an integer to an integer.
1813
1814 2005-08-02 Richard Henderson <rth@redhat.com>
1815
1816 * combine.c (combine_instructions): Don't use reg_equal/equiv
1817 results if the mode doesn't match.
1818
1819 2005-08-02 Mark Mitchell <mark@codesourcery.com>
1820
1821 * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
1822 * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
1823
1824 2005-08-02 Richard Henderson <rth@redhat.com>
1825
1826 PR 23196
1827 * explow.c (memory_address): Remove special-case for
1828 virtual_stack_vars_rtx and virtual_incoming_args_rtx.
1829
1830 2005-08-02 Diego Novillo <dnovillo@redhat.com>
1831
1832 PR 23164
1833 * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
1834 number of calls to cleanup_tree_cfg_1.
1835
1836 2005-08-02 Martin Reinecke <martin@mpa-garching.mpg.de>
1837
1838 * doc/invoke.texi: document file extensions .F90 and .F95
1839
1840 2005-08-02 Richard Guenther <rguenther@suse.de>
1841
1842 * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
1843 positive if its first argument is positive.
1844
1845 2005-08-02 Richard Guenther <rguenther@suse.de>
1846
1847 PR tree-optimization/23177
1848 * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
1849 on TMR_TAG.
1850
1851 2005-08-02 James A. Morrison <phython@gcc.gnu.org>
1852
1853 PR tree-optimization/23129
1854 * tree-vrp.c (extract_range_from_binary_expr): Set value range to
1855 varying for divisions with anti-ranges.
1856
1857 2005-08-02 Jan Hubicka <jh@suse.cz>
1858
1859 * tree-ssa-dom.c (thread_across_edge): Remove updating here.
1860 * tree-ssa-threadupdate.c (thread_block): Add it here.
1861
1862 2005-08-01 James E Wilson <wilson@specifix.com>
1863
1864 * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
1865 TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
1866 * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
1867 New.
1868 * config/mips/predicates.md (const_call_insn_operand): Add check for
1869 SYMBOL_REF_LONG_CALL_P.
1870 * doc/extend.texi (long_call): Document the new attribute.
1871
1872 2005-08-01 Ian Lance Taylor <ian@airs.com>
1873 Richard Henderson <rth@redhat.com>
1874
1875 * Makefile.in (RTL_BASE_H): Add real.h.
1876 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
1877 instead of memcpy.
1878 * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
1879 directly.
1880 * rtl.c (rtl_check_failed_code_mode): New.
1881 * rtl.h (struct rtx_def): Add u.rv.
1882 (XCMWINT, XCNMPRV): New.
1883 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
1884 (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
1885
1886 2005-08-01 Richard Henderson <rth@redhat.com>
1887
1888 * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
1889 with auto-inc codes.
1890
1891 * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
1892
1893 2005-08-01 Jan Hubicka <jh@suse.cz>
1894
1895 * i386-protos.h (asm_preferred_eh_data_format): Declare.
1896 * i386.c: Include dwarf2.h
1897 (asm_preferred_eh_data_format): New.
1898 * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
1899
1900 2005-08-01 Ian Lance Taylor <ian@airs.com>
1901
1902 * config/host-linux.c (linux_gt_pch_get_address): Add new name
1903 randomize_va_space for virtual address randomization control.
1904
1905 2005-08-01 Steven Bosscher <stevenb@suse.de>
1906
1907 * common.opt (flag_ipa_cp): Put in right place to maintain
1908 alphabetic sort.
1909
1910 2005-08-01 Jan Hubicka <jh@suse.cz>
1911
1912 * profile.c (compute_value_histograms): Fix thinko.
1913 * value-prof.c: Include toplev.h
1914 (check_counter): New function.
1915 (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
1916 tree_mod_subtract_transform): Add sanity check.
1917
1918 2005-08-01 Richard Guenther <rguenther@suse.de>
1919
1920 PR tree-optimization/23133
1921 * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
1922 current functions parameter decls to find defs to cse
1923 reciprocals of.
1924
1925 2005-08-01 Richard Guenther <rguenther@suse.de>
1926
1927 PR tree-optimization/23109
1928 * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
1929 If trapping math is in effect, use post-dominator information
1930 to check if we'd in any case reach a trapping point before
1931 doing the reciprocal insertion.
1932 (execute_cse_reciprocals): Compute post-dominators, if necessary.
1933 * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
1934 expressions are invariant only if trapping math is not in effect.
1935
1936 2005-08-01 Razya Ladelsky <razya@il.ibm.com>
1937
1938 * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
1939 cgraph_function_versioning): New declarations.
1940 * cgraphunit.c: Add include to ipa-prop.h.
1941 (update_call_expr, cgraph_copy_node_for_versioning,
1942 cgraph_function_versioning): New functions.
1943 * integrate.c (copy_decl_for_inlining): Remove.
1944 * ipa-prop.h (ipa_replace_map): New struct.
1945 (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
1946 * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
1947 ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
1948 ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
1949 ipcp_iterate_stage, ipcp_method_scale_print,
1950 ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
1951 ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
1952 ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
1953 ipcp_update_bb_counts, ipcp_update_profiling,
1954 ipcp_update_edges_counts): New functions.
1955 (ipcp_method_cval_init): Remove restriction regarding local methods.
1956 (ipcp_init_stage): Add ipcp_method_compute_scale.
1957 (ipcp_insert_stage): Add versioning.
1958 (ipcp_structures_print): Add ipcp_method_scale_print.
1959 (ipcp_driver): Dump profiling info.
1960 * Makefile.in: Remove integrate.h dependency from tree-inline.o.
1961 Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
1962 * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
1963 (struct inline_data): Add versioning_p, ipa_info, new fields.
1964 (remap_decl, mark_local_for_remap_r, setup_one_parameter,
1965 declare_return_variable): Replace calls to copy_decl_for_inlining with
1966 copy_decl_for_dup.
1967 (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
1968 versioning support.
1969 (copy_decl_for_dup): Rename from copy_decl_for_inlining.
1970 Add argument VERSIONING.
1971 (copy_arguments_for_versioning, copy_static_chain,
1972 function_versionable_p, tree_versionable_function_p,
1973 tree_function_versioning, replace_ref_tree): New functions.
1974 * tree-inline.h: Include varray.h.
1975 (tree_versionable_function_p, tree_function_versioning,
1976 tree copy_decl_for_dup): New declarations.
1977
1978 2005-08-01 Razya Ladelsky <razya@il.ibm.com>
1979
1980 * ipa-cp.c: New file. Contains IPCP specific functionality.
1981 * ipa-prop.h: New file. Contains structures/definitions that can be
1982 used by several interprocedural data flow optimizations (and also IPCP).
1983 * ipa-prop.c: New file.
1984 * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
1985 * common.opt: Add ipa-cp flag.
1986 * timevar.def: Add IPCP optimization.
1987 * tree-optimize.c (init_tree_optimization_passes): Schedule
1988 pass_ipa_cp.
1989 * tree-pass.h (pass_ipa_cp): Declare.
1990
1991 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
1992
1993 * dwarf2out.c, fold-const.c, ipa-type-escape.c,
1994 loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
1995 tree-sra.c, config/arm/arm.c, config/crx/crx.c,
1996 config/i386/i386.c, config/mips/mips.h,
1997 config/rs6000/rs6000.h, config/sh/sh.c,
1998 config/stormy16/stormy16.c: Fix comment typos.
1999
2000 2005-08-01 Joseph S. Myers <joseph@codesourcery.com>
2001
2002 PR c/22311
2003 * c-typeck.c (build_binary_op): Use common_type wrapper on
2004 shortened types.
2005 (common_type): Update comment.
2006
2007 2005-07-31 Steven Bosscher <stevenb@suse.de>
2008
2009 PR target/23095
2010 * common.opt (flag_gcse_after_reload): Don't initialize to 2.
2011 (flag_rerun_cse_after_loop): Initialize this to 2 instead.
2012 * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
2013
2014 2005-07-31 Jan Hubicka <jh@suse.cz>
2015
2016 * pretty-print.h (pp_widest_integer): New macro.
2017 * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
2018 counts.
2019
2020 2005-07-31 Jan Hubicka <jh@suse.cz>
2021
2022 * output.h (enum section_category): Export from varasm.c
2023 (categorize_decl_for_section): Likewise.
2024 * varasm.c (enum section_category): Kill.
2025 (categorize_decl_for_section): Make global.
2026 * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
2027 Declare.
2028 * i386.c (ix86_section_threshold): New static variable.
2029 (ix86_in_large_data_p, ix86_encode_section_info,
2030 x86_64_elf_unique_section,
2031 x86_64_elf_select_section): New functions.
2032 (TARGET_ENCODE_SECTION_INFO): Define
2033 (override_options): Enable medium model for PIC.
2034 (ix86_expand_prologue): Expand gen_set_got_rex64.
2035 (legitimate_constant_p): Handle new UNSPECs.
2036 (legitimate_pic_address_disp_p): Likewise.
2037 (legitimize_pic_address): Lower MEDIUM model addressing.
2038 * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
2039 (enum cmodel): Add MEDIUM_PIC.
2040 (SYMBOL_REF_FAR_ADDR_P): New macro.
2041 (SYMBOL_FLAG_FAR_ADDR): New flag.
2042 * i386.md (movdi): Support medium model.
2043 (set_got_rex64): New pattern.
2044 * i386.opt (mlarge-data-threshold): New flag.
2045 * predicates.md (zext_operand/sext_operand): Deal with medium model.
2046 * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
2047 (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
2048 TARGET_ASM_UNIQUE_SECTION): New.
2049
2050 * invoke.texi (-mlarge_data_threshold): Document
2051
2052 2005-07-31 Jan Hubicka <jh@suse.cz>
2053
2054 * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
2055 (coalesce_vars): Likewise.
2056 * tree-ssa-live.c (coalesce_cost): New.
2057 (build_tree_conflict_graph): Use coalesce_cost.
2058 * tree-ssa-live.h (coalesce_cost): Declare.
2059
2060 2005-07-30 Richard Earnshaw <richard.earnshaw@arm.com>
2061
2062 * arm.md (all peepholes for post-increment operations): Delete.
2063 (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
2064 (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
2065 (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
2066 (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
2067 (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
2068
2069 2005-07-30 James A. Morrison <phython@gcc.gnu.org>
2070
2071 * fold-const.c (tree_expr_nonnegative_p): Always return true for
2072 non-integral types.
2073
2074 2005-07-29 Wolfgang Bangerth <bangerth@dealii.org>
2075
2076 PR target/22582
2077 * doc/invoke.texi: Document -rdynamic.
2078
2079 2005-07-30 Joseph S. Myers <joseph@codesourcery.com>
2080
2081 PR c/23143
2082 * c-parser.c (c_parser_parms_list_declarator): Call
2083 mark_forward_parm_decls.
2084 * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
2085 decls with visibility structure.
2086
2087 2005-07-30 Paul Brook <paul@codesourcery.com>
2088
2089 * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
2090
2091 2005-07-30 Paul Brook <paul@codesourcery.com>
2092
2093 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
2094 prototype.
2095 * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
2096 value for mode.
2097 * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
2098
2099 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
2100
2101 PR c/529
2102 * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
2103 nested function declarators.
2104 (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
2105 (grokparms): Call warn_if_shadowing for parameters used within the
2106 parameter list.
2107 (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
2108 not used within the parameter list.
2109 (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
2110
2111 2005-07-30 Jan Hubicka <jh@suse.cz>
2112
2113 * expr.c (expand_expr_real_1): Do not load mem targets into register.
2114 * i386.c (ix86_fixup_binary_operands): Likewise.
2115 (ix86_expand_unary_operator): Likewise.
2116 (ix86_expand_fp_absneg_operator): Likewise.
2117 * optabs.c (expand_vec_cond_expr): Validate dest.
2118
2119 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
2120
2121 PR c/21720
2122 * real.c (real_from_string): Also set last bit if there is a
2123 nonzero hex digit beyond GCC's internal precision after ".".
2124
2125 2005-07-29 David Edelsohn <edelsohn@gnu.org>
2126
2127 * config/rs6000/altivec.md: Convert UNSPEC numerical values to
2128 define_constants. Change duplicate values to unassigned numbers.
2129 Change UNSPEC_SUBS to UNSPEC_VSUBS.
2130 (*altivec_vspltsf): New.
2131 (altivec_vperm_v4sf): Delete.
2132 (altivec_vperm_<mode>): Use mode macro V.
2133 (altivec_vsldoi_<mode>): Convert to mode macro pattern.
2134 (altivec_predicate_v4sf): Delete.
2135 (altivec_predicate_<mode>): Use mode macro V.
2136 (*altivec_lvesfx): New.
2137 (*altivec_stvesfx): New.
2138 (vec_realign_load_v4sf): Delete.
2139 (vec_realign_load_<mode>): Use mode macro V.
2140 * config/rs6000/rs6000.c (generate_set_vrsave): Use
2141 UNSPECV_SET_VRSAVE.
2142
2143 2005-07-29 Mark Mitchell <mark@codesourcery.com>
2144
2145 PR bootstrap/23131
2146 * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
2147 string.
2148 * configure: Regenerated.
2149
2150 2005-07-29 Paul Brook <paul@codesourcery.com>
2151
2152 * doc/install.texi: Add link to GFortran binaries wiki page.
2153
2154 2005-07-29 David Ung <davidu@mips.com>
2155
2156 * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
2157 (mips_rtx_cost_data): Add costs for 5kc and 5kf.
2158 * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
2159 * config/mips/mips.md (cpu): Add 5kf name.
2160 (includes): Includes 5k.md.
2161 * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
2162 * doc/invoke.texi (MIPS Options): Updated cpu name supported with
2163 -march flag.
2164
2165 2005-07-29 Diego Novillo <dnovillo@redhat.com>
2166
2167 PR 22550
2168 * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
2169 (cleanup_tree_cfg): ... here.
2170 Call cleanup_tree_cfg_1 until there are no more cleanups to
2171 do.
2172
2173 2005-07-29 James A. Morrison <phython@gcc.gnu.org>
2174
2175 * tree-vrp.c (compare_range_with_value): Return true or false
2176 for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
2177 EQ_EXPR respectively.
2178
2179 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
2180
2181 * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
2182 Fix comment typos.
2183
2184 2005-07-29 Diego Novillo <dnovillo@redhat.com>
2185
2186 * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
2187 (tree_ssa_dominator_optimize): Increment it.
2188 (dump_dominator_optimization_stats): Print it.
2189
2190 2005-07-29 Richard Earnshaw <richard.earnshaw@arm.com>
2191 Steven Bosscher <stevenb@suse.de>
2192
2193 PR rtl-optimization/23117
2194 * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
2195 when head == tail. Tidy comment.
2196
2197 2005-07-28 Richard Henderson <rth@redhat.com>
2198
2199 * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
2200 * cselib.c (rtx_equal_for_cselib_p): Likewise.
2201 * jump.c (rtx_renumbered_equal_p): Likewise.
2202 * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
2203 CONST_INT and CONST_DOUBLE.
2204 (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
2205 * reload.c (operands_match_p): Special case CONST_INT and
2206 CONST_DOUBLE; check mode earlier.
2207
2208 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
2209
2210 PR c/22240
2211 * c-typeck.c (convert_for_assignment): Do not check
2212 DECL_IN_SYSTEM_HEADER on NULL fundecl.
2213
2214 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
2215
2216 PR c/22192
2217 * c-typeck.c (composite_type): Prefer constant size arrays to
2218 VLAs.
2219
2220 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
2221
2222 PR c/21720
2223 * real.c (real_from_string): Set last bit if there is a nonzero
2224 hex digit beyond GCC's internal precision.
2225
2226 2005-07-28 Richard Henderson <rth@redhat.com>
2227
2228 PR rtl-opt/22619
2229 * cfgcleanup.c (try_forward_edges): Watch out for end of
2230 insn chain.
2231
2232 2005-07-28 James E Wilson <wilson@specifixinc.com>
2233
2234 PR c/23106
2235 * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
2236
2237 2005-07-28 Jan Hubicka <jh@suse.cz>
2238
2239 * Makefile.in (rtl-profile.o): Kill all traces of it.
2240 * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
2241 * coverage.h (rtl_coverage_counter_ref): Kill.
2242 * opts.c (flag_speculative_prefetching_set): Kill.
2243 (flag_loop_optimize_set): New.
2244 (common_handle_option): Disable loop optimizer when profiling;
2245 do not handle speculative prefetching.
2246 * passes.c (init_optimization_passes): Replace pass_profiling combo
2247 by branch_prob pass.
2248 * profile.c (compute_value_histograms): Update for simplified value
2249 profiles.
2250 (rtl_register_profile_hooks): Kill.
2251 (pass_profiling): Kill.
2252 (rest_of_handle_branch_prob): Do not profile.
2253 * toplev.c (process_options): Remove speculative prefetching.
2254 * toplev.h (flag_tree_based_profiling): Kill.
2255 * tree-profile.c (prepare_instrumented_value,
2256 tree_gen_interval_profiler, tree_gen_pow2_profiler,
2257 tree_gen_one_value_profiler, do_tree_profiling): Update for
2258 simplified datastructures.
2259 * value-prof.c: Add comment that speculative prefetching was dropped;
2260 update rest of file for simplified datastructures.
2261 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
2262 rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
2263 find_mem_reference_1, find_mem_reference_2, find_mem_reference,
2264 rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
2265 rtl_mod_subtract, gen_speculative_prefetch,
2266 rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
2267 rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
2268 (gate_handle_value_profile_transformations,
2269 rest_of_handle_value_profile_transformations,
2270 pass_value_profile_transformations): Kill.
2271 * value-prof.h (histogram_value_t): Remove IL based unions.
2272 (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
2273 rtl_profile_hooks): Remove hooks.
2274
2275 * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
2276
2277 * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
2278 (cgraph_clone_node): Likewise.
2279 * cgraph.h (cgraph_clone_edge): Update prototype.
2280 (cgraph_clone_node): Likewise.
2281 * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
2282 cgraph_clone_node.
2283 (lookup_recursive_calls): Consider profile.
2284 (cgraph_decide_recursive_inlining): Fix updating; use new
2285 probability argument; use profile.
2286 * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
2287 * tree-inline.c (copy_bb): Update clal of clone_edge.
2288 * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
2289
2290 * invoke.texi (min-inline-recursive-probability): Document.
2291
2292 2005-07-28 Gerald Pfeifer <gerald@pfeifer.com>
2293
2294 * doc/install.texi (Configuration): Update Valgrind homepage.
2295
2296 2005-07-28 Richard Henderson <rth@redhat.com>
2297
2298 PR middle-end/21362
2299 * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
2300 labels we want to delete.
2301 (cfg_layout_merge_blocks): Likewise.
2302
2303 2005-07-28 Richard Henderson <rth@redhat.com>
2304
2305 PR target/17692
2306 * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
2307 when expanding to nothing.
2308
2309 2005-07-28 Josh Conner <jconner@apple.com>
2310
2311 * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
2312 (cgraph_decide_inlining_of_small_functions): Likewise.
2313
2314 2005-07-28 Josh Conner <jconner@apple.com>
2315
2316 * ipa-inline.c (cgraph_edge_badness): Update comments. Invert shift
2317 direction of badness if negative.
2318 (cgraph_default_inline_p): Add reason to parameters, and assign it
2319 a value.
2320 (cgraph_decide_inlining_of_small_functions): New parameter in call
2321 to cgraph_default_inline_p.
2322 (cgraph_decide_inlining_incrementally): Likewise.
2323 * cgraphunit.c (decide_is_function_needed): Likewise.
2324 * cgraph.h (cgraph_default_inline_p): Likewise.
2325
2326 2005-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2327
2328 * builtins.c: Fix comment typo(s).
2329 * genautomata.c: Likewise.
2330 * gimplify.c: Likewise.
2331 * tree-dfa.c: Likewise.
2332 * tree-flow-inline.h: Likewise.
2333 * tree-into-ssa.c: Likewise.
2334 * tree-ssa-alias.c: Likewise.
2335 * tree-ssa-ccp.c: Likewise.
2336 * tree-ssa-copy.c: Likewise.
2337 * tree-ssa-dce.c: Likewise.
2338 * tree-ssa-dom.c: Likewise.
2339 * tree-ssa-operands.c: Likewise.
2340 * tree-tailcall.c: Likewise.
2341 * tree-vectorizer.c: Likewise.
2342 * tree-vrp.c: Likewise.
2343 * tree.c: Likewise.
2344
2345 2005-07-28 Jeff Law <law@redhat.com>
2346
2347 * tree-vrp.c (test_for_singularity): Extracted from ...
2348 (simplify_cond_using_ranges): Attempt to simplify a relational
2349 test to NE_EXPR. Dump information when a COND_EXPR is simplified.
2350
2351 2005-07-28 Dorit Nuzman <dorit@il.ibm.com>
2352
2353 PR tree-optimization/22506
2354 * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
2355 phis whose argument is constant.
2356
2357 2005-07-28 J"orn Rennecke <joern.rennecke@st.com>
2358
2359 PR rtl-optimization/18992
2360 Back out this patch:
2361 2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2362 PR optimization/12142
2363 * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
2364 uses of the register in the SET_SRC. Remove unnecessary argument.
2365
2366 Replace it with this:
2367 * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
2368 if flag_non_call_exceptions is set and the insn may trap, pass
2369 pc_rtx as dest for recursion.
2370 In SET_SRC part of SET case, if dest is already set, pass it down
2371 unchanged.
2372
2373 2005-07-28 Jan Hubicka <jh@suse.cz>
2374
2375 * cfg.c (update_bb_profile_for_threading): Use RDIV.
2376 (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
2377 (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
2378 roundoff errors.
2379 * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
2380 profile when available.
2381
2382 2005-07-28 Jan Beulich <jbeulich@novell.com>
2383
2384 * config/ia64/ia64.c (ia64_load_pair_ok): New.
2385 (ia64_print_operand): Describe and handle 'X'.
2386 (ia64_register_move_cost): Also handle FP_REGS.
2387 (ia64_preferred_reload_class): Likewise.
2388 (ia64_secondary_reload_class): Likewise.
2389 (ia64_dependencies_evaluation_hook): New local variable c. Initialize
2390 it. Also check for ITANIUM_CLASS_FLDP.
2391 * config/ia64/ia64.h (FP_REGNO_P): New.
2392 (HARD_REGNO_MODE_OK): Remove explusion of TImode.
2393 (reg_class): Add FP_REGS.
2394 (REG_CLASS_NAMES): Adjust for it.
2395 (REG_CLASS_CONTENTS): Likewise.
2396 (REGNO_REG_CLASS): Use FP_REGS where appropriate.
2397 (REG_CLASS_FROM_LETTER): Handle 'x'.
2398 (CLASS_MAX_NREGS): Handle FP_REGS.
2399 (MEMORY_MOVE_COST): Likewise.
2400 * config/ia64/ia64.md (itanium_class): Add fldp.
2401 (type): Handle fldp.
2402 (movti_internal): More allowable operand combinations. Use ldfp8 when
2403 splitting unnecessary. Remove predicable attribute. Adjust
2404 itanium_class attribute.
2405 (smuldi3_highpart): Remove outdated comment.
2406 (mulditi3, umulditi3, rotlti3): New expanders.
2407 (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
2408 (absti2): Disabled new insn for future reference.
2409 Respective new splitters.
2410 * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
2411 * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
2412 * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
2413
2414 2005-07-25 James A. Morrison <phython@gcc.gnu.org>
2415
2416 PR rtl-optimization/23047
2417 * simplify-rtx.c (simplify_const_relational_operation): Respect
2418 flag_wrapv for comparisons with ABS.
2419
2420 2005-07-27 James A. Morrison <phython@gcc.gnu.org>
2421
2422 PR tree-optimization/22493
2423 * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
2424 VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
2425
2426 2005-07-27 Aldy Hernandez <aldyh@redhat.com>
2427
2428 * config/frv/frv.opt (moptimize-membar): New.
2429
2430 * doc/invoke.texi: Document -moptimize-membar and its inverse.
2431
2432 * config/frv/frv.h: Remove machine_function definition.
2433
2434 * config/frv/frv.c (struct frv_io): New.
2435 (struct machine_function): Moved from frv.h. Add has_membar_p.
2436 (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
2437 (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
2438 (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
2439 (frv_optimize_membar_global, frv_optimize_membar): New functions.
2440 (frv_reorg): Call frv_optimize_membar when appropriate.
2441 (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
2442 (frv_expand_builtin): Adjust calls accordingly.
2443 (frv_io_address_cookie): New function.
2444 (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
2445 load or store rather than a special insn. Add ccnstant address and
2446 io-type operands to the membar.
2447 (frv_ifcvt_modify_tests): Unsign regno.
2448 (frv_ifcvt_modify_tests): Same.
2449
2450 * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}. Change
2451 UNSPEC_OPTIONAL_MEMBAR constant.
2452 (builtin_read_<mode>): Delete.
2453 (builtin_write_<mode>): Delete.
2454 ("optional_membar_<mode>"): Add operand.
2455
2456 * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
2457 * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
2458 * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
2459 * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
2460 * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
2461 * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
2462 * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
2463 * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
2464 * testsuite/gcc.target/frv/all-read-write-1.c: New.
2465
2466 2005-07-28 Kaz Kojima <kkojima@gcc.gnu.org>
2467
2468 * df.c (df_uses_record): Handle SCRATCH.
2469
2470 2005-07-28 Steven Bosscher <stevenb@suse.de>
2471
2472 PR debug/20161
2473 * passes.c (rest_of_decl_compilation): If decl is a type and
2474 we have encountered errors, don't emit debug information.
2475
2476 2005-07-27 Kenneth Zadeck <zadeck@naturalbridge.com>
2477
2478 * params.def: Fixed comment.
2479
2480 2005-07-27 Bjoern Haase <bjoern.m.haase@web.de>
2481
2482 PR target/19885
2483 * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
2484 (TARGET_ASM_UNALIGNED_HI_OP): Add.
2485 (TARGET_ASM_UNALIGNED_SI_OP): Add.
2486
2487 2005-07-27 Steven Bosscher <stevenb@suse.de>
2488
2489 PR c++/22003
2490 * varasm.c (assemble_start_function): Don't do anything that may
2491 require a CFG if the current function is a thunk.
2492
2493 2005-07-25 Geoffrey Keating <geoffk@apple.com>
2494
2495 * doc/install.texi (Prerequisites): Mention that perl is needed
2496 to do export control in libstdc++ targetting Darwin.
2497
2498 2005-07-27 Steven Bosscher <stevenb@suse.de>
2499
2500 PR rtl-optimization/17808
2501 * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
2502 (sched_insns_conditions_mutex_p): Split out from...
2503 (add_dependence): ...here. But don't call it from here.
2504 (add_dependence_list): Check sched_insns_conditions_mutex_p
2505 before calling add_dependence.
2506 (add_dependence_list_and_free): Likewise.
2507 (fixup_sched_groups): Likewise.
2508 (sched_analyze_1): Likewise.
2509 (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
2510 (sched_analyze): Likewise.
2511 (sched_analyze_insn): Likewise.
2512 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
2513 * sched-rgn.c (add_branch_dependences): Likewise. Also, add
2514 dependencies on all COND_EXEC insns to jumps ending basic blocks
2515 when doing intrablock scheduling.
2516 * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
2517
2518 2005-07-27 Jeff Law <law@redhat.com>
2519
2520 * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
2521 meeting a VR_ANTI_RANGE with a VR_RANGE. When intersecting
2522 equivalency sets, correctly handle the case were vr0 has an
2523 equivalency set, but vr1 does not.
2524
2525 2005-07-27 Dorit Nuzman <dorit@il.ibm.com>
2526
2527 PR tree-optimization/23073
2528 * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
2529 vect_print_dump_info before fprintf.
2530
2531 2005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
2532
2533 PR tree-optimize/22348
2534 * tree-ssa-loop-niter.c (number_of_iterations_cond):
2535 Fold the partial computation.
2536
2537 2005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
2538
2539 PR tree-optimization/22325
2540 * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
2541 Declare.
2542 * tree-scalar-evolution.c (scev_const_prop): Add generic final
2543 value replacement.
2544 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
2545 (force_var_cost): ... this function.
2546 (compute_phi_arg_on_exit): Export.
2547
2548 2005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
2549
2550 PR tree-optimization/20773
2551 * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
2552 edge.
2553
2554 2005-07-27 Richard Guenther <rguenther@suse.de>
2555
2556 * tree-ssa-structalias.c (push_fields_onto_fieldstack):
2557 Avoid pushing again if current struct contains only
2558 fields we decomposed.
2559
2560 2005-07-27 Jan Hubicka <jh@suse.cz>
2561
2562 PR tree-optimization/22574
2563 * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
2564 not available.
2565
2566 * tree-tailcall.c (decrease_profile): New function.
2567 (eliminate_tail_call): Use it.
2568
2569 * cgraphunit.c (cgraph_function_and_variable_visibility): Set
2570 visibility flags correctly in whole program mode.
2571
2572 2005-07-26 Steve Ellcey <sje@cup.hp.com>
2573
2574 PR rtl-optimization/22472
2575 * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
2576
2577 2005-07-26 Steven Bosscher <stevenb@suse.de>
2578
2579 PR tree-optimization/22504
2580 * tree-complex.c (expand_complex_addition): Use 'code' instead
2581 of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
2582
2583 2005-07-26 Aldy Hernandez <aldyh@redhat.com>
2584
2585 * config.gcc (cpu_type): Add frv case.
2586 (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
2587 (supported_defaults): Add fr550 case.
2588
2589 2005-07-26 Diego Novillo <dnovillo@redhat.com>
2590
2591 PR 22591
2592 * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
2593 whether a pointer of type T * may point to objects of type T *.
2594
2595 2005-07-26 DJ Delorie <dj@redhat.com>
2596
2597 * configure: Regenerate.
2598
2599 2005-07-26 Dale Johannesen <dalej@apple.com>
2600
2601 * postreload-gcse.c (alloc_mem): Start CUID numbering at 1.
2602
2603 2005-07-26 Mark Mitchell <mark@codesourcery.com>
2604
2605 * doc/install.texi (--with-build-sysroot): Fix grammatical error.
2606 Clarify use of "build" in name.
2607
2608 2005-07-26 Aldy Hernandez <aldyh@redhat.com>
2609
2610 * doc/extend.texi (Raw read/write Functions): New section.
2611 * testsuite/gcc.target/frv/all-builtin-read8.c: New.
2612 * testsuite/gcc.target/frv/all-builtin-read16.c: New.
2613 * testsuite/gcc.target/frv/all-builtin-read32.c: New.
2614 * testsuite/gcc.target/frv/all-builtin-read64.c: New.
2615 * testsuite/gcc.target/frv/all-builtin-write8.c: New.
2616 * testsuite/gcc.target/frv/all-builtin-write16.c: New.
2617 * testsuite/gcc.target/frv/all-builtin-write32.c: New.
2618 * testsuite/gcc.target/frv/all-builtin-write64.c: New.
2619 * config/frv/frv.c: Add bdesc_loads global.
2620 Add bdesc_stores global.
2621 (frv_init_builtins): Add support for __builtin_{read/write}*.
2622 (frv_volatile_memref): New.
2623 (frv_expand_load_builtin): New.
2624 (frv_expand_store_builtin): New.
2625 * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
2626 FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
2627 FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
2628 FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
2629 * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
2630 UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
2631 (builtin_read_<mode>): New.
2632 (builtin_write_<mode>): New.
2633 (builtin_write64): New.
2634 (optional_membar_<mode>): New.
2635
2636 2005-07-26 J"orn Rennecke <joern.rennecke@st.com>
2637
2638 * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
2639 (rather than units) against HOST_BITS_PER_WIDE_INT.
2640
2641 2005-07-26 Kazu Hirata <kazu@codesourcery.com>
2642
2643 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
2644 ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
2645 ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
2646 config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
2647 FSF address.
2648
2649 * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
2650 tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
2651 config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
2652 comment typos.
2653 * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
2654
2655 2005-07-26 Richard Guenther <rguenther@suse.de>
2656
2657 PR tree-optimization/22486
2658 * fold-const.c (fold_unary): Fold away useless component
2659 references of the form (T *)&T.x, if the address
2660 doesn't change.
2661
2662 2005-07-25 James E Wilson <wilson@specifixinc.com>
2663
2664 * dwarf2out.c (add_call_src_coords_attributes): New.
2665 (gen_inlined_subroutine_die): Call it.
2666 (maybe_emit_file, init_file_table): Add comments.
2667 (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
2668 maybe_emit_file.
2669 * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
2670 (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
2671 * tree.h (BLOCK_SOURCE_LOCATION): New.
2672 (struct tree_block): New field locus.
2673
2674 2005-07-26 Andreas Schwab <schwab@suse.de>
2675
2676 PR rtl-optimization/23043
2677 * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
2678 when allocating a struct unoccr.
2679
2680 2005-07-25 Richard Henderson <rth@redhat.com>
2681
2682 PR 22626
2683 * tree-complex.c (gate_no_optimization): True if errors.
2684 * Makefile.in (tree-complex.o): Update dependencies.
2685
2686 2005-07-25 Aldy Hernandez <aldyh@redhat.com>
2687
2688 * config/frv/predicates.md (integer_register_operand): Use
2689 GPR_AP_OR_PSEUDO_P.
2690
2691 2005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
2692
2693 PR tree-opt/22484
2694 * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
2695 after fold.
2696 * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
2697
2698 2005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
2699
2700 * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
2701 types when flag_unsafe_math_optimizations is true.
2702
2703 2005-07-25 Mark Mitchell <mark@codesourcery.com>
2704
2705 * gcc.c (option_map): Add --sysroot.
2706 (process_command): Handle --sysroot.
2707 (display_help): Document it.
2708 * doc/cppopts.tex (-isysroot): Document.
2709 * doc/invoke.texi (--sysroot): Document.
2710 * doc/install.texi (--with-build-sysroot): Document.
2711
2712 * Makefile.in (inhibit_libc): New variable.
2713 (INHIBIT_LIBC_CFLAGS): Likewise.
2714 (LIBGCC2_CFLAGS): Include
2715 $(INHIBIT_LIBC_CFLAGS).
2716 (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
2717 ($(T)crtbegin.o): Do not use @inhibit_libc@.
2718 ($(T)crtend.o): Likewise.
2719 ($(T)crtbeginS.o): Do not use @inhibit_libc@.
2720 ($(T)crtendS.o): Likewise.
2721 ($(T)crtbeginT.o): Do not use @inhibit_libc@.
2722 ($(T)crtendT.o): Likewise.
2723 (stmp-fixinc): Do not complain about missing headers if
2724 inhibit_libc.
2725 * configure.ac (inhibit_libc): Set it to true/false.
2726 (--with-build-sysroot): New option. Use it to set
2727 SYSTEM_HEADER_DIR.
2728 * configure: Regenerated.
2729
2730 2005-07-25 Manfred Hollstein <mh@suse.com>
2731
2732 * calls.c (store_one_arg): Fix unsigned comparison warning.
2733
2734 2005-07-25 Serge Belyshev <belyshev@depni.sinp.msu.ru>
2735
2736 PR other/22337
2737 * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
2738 (ggc_print_statistics): Initialize variable before use.
2739
2740 2005-07-25 Richard Guenther <rguenther@suse.de>
2741
2742 * tree-dfa.c (mark_new_vars_to_rename): Protect against
2743 calling with a PHI_NODE argument.
2744
2745 * tree-flow-inline.h (overlap_subvar): Protect against
2746 possible overflow.
2747
2748 2005-07-25 Paolo Bonzini <bonzini@gnu.org>
2749
2750 * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
2751 * configure: Regenerate.
2752
2753 2005-07-25 Ira Rosen <irar@il.ibm.com>
2754
2755 * expr.c (highest_pow2_factor): Make extern.
2756 * tree-data-ref.c (ptr_decl_may_alias_p): New function.
2757 (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
2758 record_array_differ_p, array_ptr_differ_p): Likewise.
2759 (base_object_differ_p): Rename (from array_base_name_differ_p). Support
2760 additional cases. Call the above functions.
2761 (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
2762 base_object_differ_p when there are two base objects. Otherwise, compare
2763 base address and offset. Call may_alias_p.
2764 (dump_data_reference): Use a correct field name.
2765 (analyze_array): Make static. Initialize new data-ref fields.
2766 (analyze_indirect_ref): New function.
2767 (init_data_ref): Initialize new data-ref fields.
2768 (strip_conversion): Moved from tree-vect-analyze.c.
2769 (analyze_offset_expr, get_ptr_offset, address_analysis,
2770 object_analysis): Likewise.
2771 (analyze_offset): New function.
2772 (create_data_ref): Likewise.
2773 (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
2774 dimensions for ARRAY_REFs only.
2775 (build_classic_dist_vector): Make static.
2776 (access_functions_are_affine_or_constant_p): Call macro to get the
2777 address of access functions.
2778 (compute_all_dependences): Add new parameter
2779 compute_self_and_read_read_dependences. Compute self and read-read
2780 dependences if it is true.
2781 (find_data_references_in_loop): Call create_data_ref. Initialize new
2782 data-ref fields.
2783 (compute_data_dependences_for_loop): Add new parameter
2784 compute_self_and_read_read_dependences. Remove parameter nb_loops,
2785 compute nb_loops. Call compute_all_dependences,
2786 build_classic_dist_vector and build_classic_dir_vector with correct
2787 parameters.
2788 (analyze_all_data_dependences): Call compute_data_dependences_for_loop
2789 with correct parameters. Compare dimensions for ARRAY_REFs only.
2790 (free_data_refs): Call macro to free access functions.
2791 * tree-data-ref.h (struct first_location_in_loop): New structure. Move
2792 fields from stmt_vinfo.
2793 (struct base_object_info): New structure.
2794 (struct data_reference): Move fields to base_object_info. Add fields
2795 first_location and object_info for above structures. Move fields from
2796 stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
2797 aligned_to. Add macros to access the new fields.
2798 Update functions declarations.
2799 * tree-flow.h (is_aliased_with): Declare.
2800 * tree-loop-linear.c (linear_transform_loops): Call
2801 compute_data_dependences_for_loop with correct parameters.
2802 * tree-ssa-alias.c (is_aliased_with): New function.
2803 * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
2804 (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
2805 (vect_analyze_data_ref_dependence): Get ddr. Remove call to
2806 vect_base_addr_differ_p, compute_subscript_distance and
2807 build_classic_dist_vector. Add printings. Check absolute value of
2808 distance.
2809 (vect_analyze_data_ref_dependences): Go through ddrs instead of
2810 data-refs.
2811 (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
2812 stmt. Check aligned_to. Check if the base is aligned. Remove conversion
2813 to bytes. Add printing.
2814 (vect_compute_data_refs_alignment): Go through loads and stores in one
2815 loop.
2816 (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
2817 vect_analyze_data_ref_access): Likewise.
2818 (vect_analyze_pointer_ref_access): Remove.
2819 (vect_address_analysis, vect_object_analysis): Likewise.
2820 (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
2821 and analyze data-refs in the loop.
2822 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
2823 fields of data-ref instead of stmt. Add init to the offset from the
2824 base.
2825 (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
2826 (vect_update_init_of_dr): Likewise.
2827 (vect_update_inits_of_drs): Go through loads and stores in one loop.
2828 * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
2829 removed fields.
2830 (new_loop_vec_info): Initialize new fields.
2831 (destroy_loop_vec_info): Free new fields.
2832 (vect_strip_conversion): Remove.
2833 * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
2834 (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
2835 datarefs. Add new field ddrs.
2836 Add macros for the new fields access.
2837 (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
2838 base_aligned_p, misalignment, memtag, ptr_info and subvars.
2839 Remove their macros.
2840 * tree.h (highest_pow2_factor): Declare.
2841
2842 2005-07-25 Jakub Jelinek <jakub@redhat.com>
2843
2844 * calls.c (store_one_arg): Check for sibling call MEM arguments
2845 from already clobbered incoming argument area.
2846
2847 2005-07-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2848
2849 * c-common.c (check_missing_format_attribute): New.
2850 * c-common.h (check_missing_format_attribute): Likewise.
2851 * c-typeck.c (convert_for_assignment): Use it.
2852
2853 2005-07-24 Andreas Schwab <schwab@suse.de>
2854
2855 * config/m68k/m68k.md ("extendqidi2"): When source is an address
2856 register use a word move. Correct operand of ext.w in 68000 code.
2857
2858 2005-07-23 Mark Mitchell <mark@codesourcery.com>
2859
2860 * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
2861 variables as declarations, rather than definitions.
2862
2863 2005-07-24 Ira Rosen <irar@il.ibm.com>
2864
2865 PR tree-optimization/22526
2866 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
2867 of the zero node.
2868
2869 2005-07-24 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2870
2871 * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
2872 that C99 reserve for future use. Use it to define clog10,
2873 clog10f and clog10l.
2874
2875 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2876
2877 * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
2878 * configure.ac: Check for -Wmissing-format-attribute.
2879
2880 * configure: Regenerate.
2881
2882 2005-07-23 Richard Henderson <rth@redhat.com>
2883
2884 PR tree-optimization/22623
2885 * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
2886
2887 2005-07-23 Giovanni Bajo <giovannibajo@libero.it>
2888
2889 PR target/22577
2890 * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
2891
2892 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2893
2894 * Makefile.in (C_TREE_H): Update dependencies.
2895 * c-tree.h: Include toplev.h.
2896 * diagnostic.h (diagnostic_set_info): Add format attribute.
2897 * rtl-error.c (diagnostic_for_asm): Likewise.
2898
2899 2005-07-23 Chao-ying Fu <fu@mips.com>
2900
2901 * config/mips/mips-dsp.md: New file.
2902 * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
2903 * config/mips/mips.c (mips_function_type): Add types for DSP builtin
2904 functions.
2905 (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
2906 MIPS_BUILTIN_BPOSGE32.
2907 (mips_expand_builtin_direct): Add one parameter to indicate that
2908 builtin functions need to return a value.
2909 (mips_expand_builtin_bposge): New for expanding "bposge" builtin
2910 functions.
2911 (mips_regno_to_class): Add classes for 12 new DSP registers.
2912 (mips_subword): Change to check four HI registers.
2913 (mips_output_move): Output move to and from 6 new DSP accumulators.
2914 (override_options): Make sure -mdsp and -mips16 are not used together.
2915 Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS. Enable DSP accumulators
2916 for machine modes.
2917 (mips_conditional_register_usage): Disable 6 new DSP accumulators
2918 when !TARGET_DSP.
2919 (print_operand): Add 'q' for printing DSP accumulators.
2920 (mips_cannot_change_mode_class): Check ACC_REGS.
2921 (mips_secondary_reload_class): Check ACC_REGS.
2922 (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
2923 (mips_register_move_cost): Check ACC_REGS.
2924 (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
2925 (CODE_FOR_mips_subu_qb): New code-aliasing macros.
2926 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
2927 (dsp_bdesc): New array.
2928 (bdesc_arrays): Add DSP builtin function table.
2929 (mips_prepare_builtin_arg): Check predicate again after
2930 copy_to_mode_reg.
2931 (mips_expand_builtin): Add one more parameter to
2932 mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
2933 MIPS_BUILTIN_BPOSGE32.
2934 (mips_init_builtins): Initialize new function types.
2935 (mips_expand_builtin_direct): Check if builtin functions need to
2936 return a value and pass operands properly.
2937 (mips_expand_builtin_bposge): New function.
2938 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
2939 (ASM_SPEC): Map -mdsp to -mdsp in GAS.
2940 (FIRST_PSEUDO_REGISTER): Increase to 188.
2941 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
2942 Update for 12 new DSP registers.
2943 (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
2944 (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
2945 (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
2946 (reg_class): Add DSP_ACC_REGS and ACC_REGS.
2947 (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
2948 (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
2949 (REG_ALLOC_ORDER): Update for 12 new DSP registers.
2950 (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
2951 (UIMM6_OPERAND, IMM10_OPERAND): New macros.
2952 (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
2953 (REGISTER_NAMES): Add names for 12 new DSP registers.
2954 * config/mips/mips.md: Include mips-dsp.md.
2955 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
2956 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
2957 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
2958 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
2959 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
2960 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
2961 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
2962 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
2963 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
2964 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
2965 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
2966 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
2967 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
2968 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
2969 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
2970 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
2971 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
2972 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
2973 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
2974 (UNSPEC_RDDSP): New constants.
2975 (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
2976 (*movsi_internal): Change 'x' to 'a' for ACC_REGS. Add an
2977 A<-d alternative.
2978 * config/mips/mips.opt (-mdsp): New option.
2979 * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
2980 (reg_imm10_operand): New predicates.
2981 * doc/extend.texi (MIPS DSP Built-in Functions): New section.
2982 * doc/invoke.texi (-mdsp): Document new option.
2983
2984 2005-07-22 DJ Delorie <dj@redhat.com>
2985
2986 * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
2987 to warning calls.
2988 * tree-inline.c (inlinable_function_p): Likewise.
2989
2990 2005-07-22 Mark Mitchell <mark@codesourcery.com>
2991
2992 PR debug/21828
2993 * toplev.c (check_global_declarations): Do not mark undefined
2994 variables as DECL_IGNORED_P.
2995 * varasm.c (first_global_object_name): GTY it.
2996 (weak_global_object_name): Likewise.
2997 (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
2998 a string to go into {weak,first}_global_object_name.
2999
3000 2005-07-22 DJ Delorie <dj@redhat.com>
3001
3002 * c-format.c (check_function_format): Change warning control
3003 option from OPT_Wattribute to OPT_Wmissing_format_attribute.
3004
3005 2005-07-22 Diego Novillo <dnovillo@redhat.com>
3006
3007 * tree-ssa-alias.c (count_ptr_derefs): Do not consider
3008 &PTR->FLD a dereference of PTR.
3009 * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
3010 a potential dereference of PTR.
3011
3012 2005-07-22 J"orn Rennecke <joern.rennecke@st.com>
3013
3014 PR rtl-optimization/20370
3015 * ifcvt.c (dead_or_predicable): Before calling propagate_block,
3016 call allocate_reg_info if necessary.
3017
3018 PR rtl-optimization/21848
3019 * calls.c (emit_library_call_value_1): For const functions, add
3020 USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
3021
3022 PR rtl-optimization/22445
3023 * cselib.c (target.h): Include.
3024 (rtx_equal_for_cselib_p): Allow commutative matches.
3025 (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
3026 Remove MODE parameter. Changed all callers.
3027
3028 PR rtl-optimization/22258
3029 * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
3030 New functions.
3031 (try_combine): Use likely_spilled_retval_p.
3032
3033 2005-07-22 Paul Woegerer <paul.woegerer@nsc.com>
3034
3035 * config.gcc: Add crx-elf support.
3036
3037 * doc/contrib.texi: Mention crx.
3038 * doc/extend.texi: Document crx extensions.
3039 * doc/install.texi: Document crx install.
3040 * doc/invoke.texi: Document crx options.
3041 * doc/md.texi: Document crx constraints.
3042
3043 * config/crx/crx-protos.h: New file.
3044 * config/crx/crx.c: New file.
3045 * config/crx/crx.h: New file.
3046 * config/crx/crx.md: New file.
3047 * config/crx/crx.opt: New file.
3048 * config/crx/t-crx: New file.
3049
3050 2005-07-22 Manfred Hollstein <mh@suse.com>
3051
3052 * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
3053 warnings.
3054 (int_add_graph_edge): Likewise.
3055 (collapse_nodes): Likewise.
3056 (process_unification_queue): Likewise.
3057
3058 2005-07-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3059 Laurent GUERBY <laurent@guerby.net>
3060
3061 PR tree-optimization/22336
3062 * function.c (record_block_change): Check for
3063 cfun->ib_boundaries_block.
3064
3065 2005-07-21 James A. Morrison <phython@gcc.gnu.org>
3066
3067 * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
3068 (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
3069
3070 2005-07-21 DJ Delorie <dj@redhat.com>
3071
3072 * toplev.c (warn_deprecated_use): Add warning control to warning
3073 call.
3074 * c-typeck.c (parser_build_binary_op): Likewise.
3075 (c_finish_if_stmt): Likewise.
3076 * c-common.c (check_function_sentinel): Likewise.
3077 (check_nonnull_arg): Likewise.
3078
3079 2005-07-21 Richard Henderson <rth@redhat.com>
3080
3081 PR tree-opt/22504
3082 * tree-complex.c (complex_ssa_name_components): New.
3083 (cvc_lookup): Allow entry not found.
3084 (create_components): Remove.
3085 (create_one_component_var, get_component_var): New.
3086 (get_component_ssa_name, set_component_ssa_name): New.
3087 (extract_component): Use get_component_ssa_name.
3088 (update_complex_components): Use set_component_ssa_name.
3089 (update_complex_components_on_edge): Likewise.
3090 (update_phi_components): Create new PHI nodes directly, instead
3091 of adding insns to edges.
3092 (tree_lower_complex): Allocate and free complex_variable_components
3093 and complex_ssa_name_components here.
3094
3095 2005-07-20 Daniel Berlin <dberlin@dberlin.org>
3096
3097 * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
3098 revert to returning false.
3099
3100 2005-07-21 Uros Bizjak <uros@kss-loka.si>
3101
3102 PR target/21149
3103 * config/i386/i386.md (sse_movhlps): Fix vec_select values.
3104
3105 2005-07-21 Uros Bizjak <uros@kss-loka.si>
3106
3107 PR target/22576
3108 * config/i386/i386.md (cmpxf): Change operand constraints
3109 to "nonmemory_operand".
3110
3111 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
3112
3113 * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
3114
3115 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
3116
3117 PR middle-end/21180
3118 * fold-const.c (fold_build1): Add checksum for the operands.
3119 (fold_build2): Likewise.
3120 (fold_build3): Likewise.
3121
3122 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
3123
3124 PR middle-end/19055
3125 * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
3126
3127 2005-07-21 Paolo Bonzini <bonzini@gnu.org>
3128
3129 * common.opt (-fforward-propagate): Committed by mistake,
3130 removed.
3131
3132 2005-07-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3133
3134 * reg-stack.c: Fix comment typo(s).
3135 * tree-ssa-operands.c: Likewise.
3136 * tree-vectorizer: Likewise.
3137
3138 2005-07-21 Nick Clifton <nickc@redhat.com>
3139
3140 * config/sh/symbian.c: Replace C++ style line comments with C
3141 style line comments.
3142 (symbian_add_attribute): Do not use a ? operator on the LHS of
3143 an assignment.
3144 (sh_symbian_handle_dll_attribute): Change the type of the
3145 method vector to "VEC(tree,gc)*" and use vector accessor
3146 macros to walk over the elements.
3147 (symbian_export_vtable_and_rtti_p): Likewise.
3148 (symbian_class_needs_attribute_p): Likewise.
3149
3150 2005-07-21 Paolo Bonzini <bonzini@gnu.org>
3151
3152 PR target/22085
3153 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
3154 initialize targetm.resolve_overloaded_builtin here.
3155 (altivec_expand_overloaded_builtin): Make it non-static.
3156 * config/rs6000/rs6000-protos.h
3157 (altivec_expand_overloaded_builtin): New prototype.
3158 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
3159 targetm.resolve_overloaded_builtin here.
3160 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
3161
3162 2005-07-21 Paolo Bonzini <bonzini@gnu.org>
3163 Zdenek Dvorak <dvorakz@suse.cz>
3164
3165 PR tree-optimization/19210
3166 * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
3167 New.
3168 * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
3169 * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
3170 rely on unproven assumptions.
3171 * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
3172 * tree-flow.h (number_of_iterations_exit): Add final parameter.
3173 * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
3174 to number_of_iterations_exit.
3175 * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
3176 * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
3177 * tree-ssa-loop-niter.c (find_loop_niter,
3178 estimate_numbers_of_iterations_loop): Likewise.
3179 (number_of_iterations_exit): Honor the new options.
3180 * doc/invoke.texi (Wunsafe-loop-optimizations,
3181 funsafe-loop-optimizations): Document them.
3182
3183 2005-07-21 Richard Sandiford <richard@codesourcery.com>
3184
3185 PR rtl-optimization/22167
3186 * gcse.c (hoist_code): Fix hoist_exprs[] check.
3187
3188 2005-07-20 Adam Nemet <anemet@lnxw.com>
3189
3190 * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
3191 __do_global_dtors_aux longcall.
3192
3193 2005-07-20 Kazu Hirata <kazu@cs.umass.edu>
3194
3195 * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
3196 (old_special_pred_table): Don't reference
3197 SPECIAL_MODE_PREDICATES.
3198 * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
3199 * config/arc/arc.h: Don't mention PREDICATE_CODES.
3200 * config/sh/predicates.h: Don't mention
3201 SPECIAL_MODE_PREDICATES.
3202 * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
3203 Remove.
3204
3205 2005-07-20 DJ Delorie <dj@redhat.com>
3206
3207 * config.gcc: Add m32c-elf support.
3208
3209 * doc/contrib.texi: Mention m32c.
3210 * doc/extend.texi: Document m32c extensions.
3211 * doc/install.texi: Mention m32c.
3212 * doc/invoke.texi: Document m32c options.
3213 * doc/md.texi: Document m32c constraints.
3214
3215 * config/m32c/addsub.md: New file.
3216 * config/m32c/bitops.md: New file.
3217 * config/m32c/cond.md: New file.
3218 * config/m32c/jump.md: New file.
3219 * config/m32c/m32c-lib1.S: New file.
3220 * config/m32c/m32c-lib2.c: New file.
3221 * config/m32c/m32c-modes.def: New file.
3222 * config/m32c/m32c-pragma.c: New file.
3223 * config/m32c/m32c-protos.h: New file.
3224 * config/m32c/m32c.abi: New file.
3225 * config/m32c/m32c.c: New file.
3226 * config/m32c/m32c.h: New file.
3227 * config/m32c/m32c.md: New file.
3228 * config/m32c/m32c.opt: New file.
3229 * config/m32c/minmax.md: New file.
3230 * config/m32c/mov.md: New file.
3231 * config/m32c/muldiv.md: New file.
3232 * config/m32c/predicates.md: New file.
3233 * config/m32c/prologue.md: New file.
3234 * config/m32c/shift.md: New file.
3235 * config/m32c/t-m32c: New file.
3236
3237 2005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
3238
3239 * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
3240 (stack_protect_set, stack_protect_test): New expanders.
3241 (stack_protect_set_si, stack_protect_set_si_media,
3242 stack_protect_set_di_media, stack_protect_test_si,
3243 stack_protect_test_si_media, stack_protect_test_di_media):
3244 New insns.
3245
3246 2005-07-20 Andrew Pinski <pinskia@physics.uc.edu>
3247
3248 * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
3249
3250 2005-07-20 James A. Morrison <phython@gcc.gnu.org>
3251
3252 * tree.h (tree_expr_nonzero_p): Export.
3253 * fold-const.c (tree_expr_nonzero_p): Likewise.
3254 Return true for CALL_EXPRs that are alloca calls.
3255 (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
3256 against zero.
3257 * tree-flow.h (expr_computes_nonzero): Remove.
3258 * tree-vrp.c (expr_computes_nonzero): Remove.
3259 (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
3260 (extract_range_from_unary_expr): Likewise.
3261 * tree-ssa-dom.c (record_equivalences_from_stmt): Use
3262 tree_expr_nonzero_p.
3263
3264 2005-07-20 Bernd Schmidt <bernd.schmidt@analog.com>
3265
3266 * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
3267 * config/bfin/bfin.c (legitimize_pic_address): Now static. Take
3268 extra arg "picreg" and use it instead of pic_offset_table_rtx.
3269 All callers changed.
3270 (frame_related_constant_load): New arg "related" which controls
3271 setting of RTX_FRAME_RELATED_P. All callers changed.
3272 (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
3273 (bfin_expand_prologue): Add stack limit checking.
3274 * config/bfin/bfin.md (trapifcc): New pattern.
3275
3276 * config/bfin/bfin.c: Include "langhooks.h".
3277 (def_builtin): Go through lang_hooks to call builtin_function.
3278
3279 * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
3280 * config/bfin/predicates.md (symbol_ref_operand): New.
3281 (call_insn_operand): Delete. All callers changed to use
3282 register_no_elim_operand.
3283 * config/bfin/bfin.c (init_cumulative_args): Initialize the new
3284 call_cookie field.
3285 (function_arg): Use it to generate the call's operand 2.
3286 (bfin_longcall_p): New function.
3287 (bfin_expand_call): Extra arg "cookie". All callers and declaration
3288 changed. Emit extra USE in the pattern. Use bfin_longcall_p to
3289 determine if the address needs to be in a REG.
3290 (bfin_handle_longcall_attribute): New function.
3291 (bfin_attribute_table): Add "longcall" and "shortcall".
3292 * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
3293 (CUMULATIVE_ARGS): New member call_cookie.
3294 (PREDICATE_CODES): Add symbol_ref_operand.
3295 * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
3296 extra USE to the pattern.
3297 (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
3298 New patterns, split off call_insn, sibcall_insn, call_value_insn and
3299 sibcall_value_insn; now the new patterns handle direct calls and the
3300 old ones indirect calls.
3301 * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
3302
3303 2005-07-20 Zdenek Dvorak <dvorakz@suse.cz>
3304
3305 * doc/trouble.texi: Update section on handling of empty loops.
3306
3307 2005-07-20 Kazu Hirata <kazu@codesourcery.com>
3308
3309 * config.gcc: Remove support for sparc-*-openbsd*,
3310 i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
3311 ns32k-*-netbsd*.
3312 * config.host: Remove support for i860-*-sysv4* as a host.
3313 * config/i860/*, config/ip2k/*, config/ns32k/*,
3314 config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
3315 * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
3316 mention obsolete ports.
3317
3318 2005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
3319
3320 * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
3321 soft frame pointer.
3322 (sh_expand_prologue): Use hard_frame_pointer_rtx instead
3323 of frame_pointer_rtx.
3324 (sh_expand_epilogue): Likewise.
3325 (sh_set_return_address): Likewise.
3326 (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
3327 instead of FRAME_POINTER_REGNUM if needed. Add elimination
3328 offsets from FRAME_POINTER_REGNUM.
3329 * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
3330 (sh_register_names): Add initializer for sfp.
3331 (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
3332 (VALID_REGISTER_P): Likewise.
3333 (FIRST_PSEUDO_REGISTER): Update.
3334 (DWARF_FRAME_REGISTERS): Define.
3335 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
3336 (HARD_FRAME_POINTER_REGNUM): Define.
3337 (FRAME_POINTER_REGNUM): Redefine.
3338 (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
3339 but HARD_FRAME_POINTER_REGNUM instead. Add eliminations
3340 from FRAME_POINTER_REGNUM.
3341 (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
3342 FRAME_POINTER_REGNUM.
3343 (REG_CLASS_CONTENTS): Add sfp.
3344 (REG_ALLOC_ORDER): Likewise.
3345 (FRAME_GROWS_DOWNWARD): Set to 1. Update comment.
3346 (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
3347 of frame_pointer_rtx.
3348 (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
3349
3350 2005-07-19 James A. Morrison <phython@gcc.gnu.org>
3351
3352 * fold-const.c (tree_expr_nonnegative_p): Only return true for
3353 ABS_EXPR when flag_wrapv is false because of INT_MIN.
3354 (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
3355 of an ABS_EXPR.
3356 (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
3357 ABS_EXPR<x>.
3358
3359 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
3360
3361 Make CONSTRUCTOR use VEC to store initializers.
3362 * c-common.c (complete_array_type): Update to cope with VEC in
3363 CONSTRUCTOR_ELTS.
3364 * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
3365 (pp_c_constructor_elts): New function.
3366 * c-pretty-print.h (pp_c_constructor_elts): Declare.
3367 * c-typeck.c (build_function_call, build_c_cast, digest_init,
3368 struct constructor_stack, struct initializer_stack,
3369 constructor_elements, push_init_level, pop_init_level,
3370 add_pending_init, find_init_member, output_init_element): Update to
3371 cope with VEC in CONSTRUCTOR_ELTS.
3372 * coverage.c (build_fn_info_value, build_ctr_info_value,
3373 build_gcov_info): Likewise.
3374 * expr.c (categorize_ctor_elements_1, store_constructor,
3375 expand_expr_real_1): Likewise.
3376 * fold-const.c (fold_ternary): Likewise.
3377 * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
3378 gimplify_init_constructor, gimplify_expr): Likewise.
3379 * tree-dump.c (dequeue_and_dump): Likewise.
3380 * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
3381 node.
3382 * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
3383 CONSTRUCTOR_ELTS.
3384 * tree-sra.c (generate_element_init_1): Likewise.
3385 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
3386 * tree-ssa-operands.c (get_expr_operands): Likewise.
3387 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3388 * tree-vect-transform.c (vect_get_vec_def_for_operand):
3389 (get_initial_def_for_reduction): Likewise.
3390 * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
3391 value handle in annotations.
3392 * tree.c (tree_node_kind, tree_code_size, make_node_stat,
3393 tree_node_structure): Add support for constr_kind.
3394 (build_vector_from_ctor, build_constructor_single,
3395 build_constructor_from_list): New functions.
3396 (build_constructor): Update to take a VEC instead of a TREE_LIST.
3397 (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
3398 Update to cope with VEC in CONSTRUCTOR_ELTS.
3399 * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
3400 * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
3401 CONSTRUCTOR_APPEND_ELT): New macros.
3402 (struct constructor_elt, struct tree_constructor): New data types.
3403 (union tree_node): Add tree_constructor field.
3404 * treestruct.def: Define TS_CONSTRUCTOR.
3405 * varasm.c (const_hash_1, compare_constant, copy_constant,
3406 compute_reloc_for_constant, output_addressed_constants,
3407 initializer_constant_valid_p, output_constant,
3408 array_size_for_constructor, output_constructor): Update to cope with
3409 VEC in CONSTRUCTOR_ELTS.
3410 * vec.h (VEC_empty, VEC_copy): New macros.
3411
3412 2005-07-19 Devang Patel <dpatel@apple.com>
3413
3414 * dbxout.c (dbxout_type): Check Objective-C++ lang.
3415
3416 2005-07-19 Richard Henderson <rth@redhat.com>
3417
3418 PR tree-opt/22278
3419 * gimplify.c (gimplify_expr): Use main variant type for the temp
3420 destination for a discarded volatile read.
3421 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
3422 casts between non-void types that change volatility.
3423
3424 2005-07-15 DJ Delorie <dj@redhat.com>
3425
3426 * toplev.h: Add comment about the first parameter for warning().
3427 * errors.h: Likewise.
3428
3429 * c.opt (Wpragmas): New.
3430 * doc/invoke.texi: Document it.
3431
3432 * function.c (do_warn_unused_parameter): Add warning control to
3433 warning call.
3434 * c-decl.c (warn_if_shadowing): Likewise.
3435 * c-lex.c (cb_def_pragma): Likewise.
3436 * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
3437 (pop_alignment): Likewise.
3438 (handle_pragma_pack): Likewise.
3439 (apply_pragma_weak): Likewise.
3440 (handle_pragma_weak): Likewise.
3441 (handle_pragma_redefine_extname): Likewise.
3442 (add_to_renaming_pragma_list): Likewise.
3443 (handle_pragma_extern_prefix): Likewise.
3444 (maybe_apply_renaming_pragma): Likewise.
3445 (handle_pragma_visibility): Likewise.
3446
3447 * config/c4x/c4x-c.c (BAD): Likewise.
3448 (c4x_parse_pragma): Likewise.
3449 * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
3450 * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
3451 (rs6000_pragma_longcall): Likewise.
3452 * config/v850/v850-c.c (pop_data_area): Likewise.
3453 (ghs_pragma_section): Likewise.
3454 (ghs_pragma_section): Likewise.
3455 (ghs_pragma_interrupt): Likewise.
3456 (ghs_pragma_starttda): Likewise.
3457 (ghs_pragma_startsda): Likewise.
3458 (ghs_pragma_startzda): Likewise.
3459 (ghs_pragma_endtda): Likewise.
3460 (ghs_pragma_endsda): Likewise.
3461 (ghs_pragma_endzda): Likewise.
3462
3463 2005-07-19 Danny Berlin <dberlin@dberlin.org>
3464 Kenneth Zadeck <zadeck@naturalbridge.com>
3465
3466 * Makefile.in: Removed tree-promote-statics.c
3467 * tree-promote-statics.c: Removed.
3468 * common.opt: Removed flag-promote-statics.
3469 * opts.c: Ditto.
3470 * passes.c: Removed tree-promote-statics pass.
3471 * tree-pass.h: Ditto.
3472 * timevar.def: Removed TV_PROMOTE_STATICS.
3473
3474
3475 2005-07-19 Gerald Pfeifer <gerald@pfeifer.com>
3476
3477 * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
3478 and *-*-freebsd9.
3479 * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
3480
3481 2005-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3482
3483 PR c/22476
3484 * c-common.c (check_function_arguments): Call
3485 'check_function_format' if either -Wformat or
3486 -Wmissing-format-attribute are specified.
3487 * c-format.c (check_function_format): Check -Wformat before
3488 calling 'check_format_info'.
3489 * c-opts.c (c_common_post_options): Don't warn for
3490 -Wmissing-format-attribute without -Wformat.
3491 * c-typeck.c (convert_for_assignment): Detect additional cases for
3492 -Wmissing-format-attribute.
3493 * doc/invoke.texi (-Wmissing-format-attribute): Document new
3494 behavior.
3495
3496 2005-07-19 Richard Guenther <rguenther@suse.de>
3497
3498 * config/i386/i386.md (lrint<mode>2): Use temporary
3499 instead of clobbering non-existent memory.
3500
3501 2005-07-19 Nick Clifton <nickc@redhat.com>
3502
3503 * config/avr/avr.c (legitimate_address_p): Fix debugging print
3504 statement to avoid displaying ASCII control characters.
3505
3506 2005-07-19 Ben Elliston <bje@au.ibm.com>
3507
3508 * bt-load.c (link_btr_uses): Fix uninitialised warnings.
3509 * cfganal.c (find_edge_index): Ditto.
3510 * combine.c (combine_instructions): Ditto.
3511 * ddg.c (create_scc): Ditto.
3512 (find_successors): Ditto.
3513 (find_predecessors): Ditto.
3514 (find_nodes_on_paths): Ditto.
3515 (longest_simple_path): Ditto.
3516 * flow.c (update_life_info): Ditto.
3517 (count_or_remove_death_notes): Ditto.
3518 (clear_log_links): Ditto.
3519 * modulo-sched.c (generate_reg_moves): Ditto.
3520 (find_max_asap): Ditto.
3521 (find_max_hv_min_mob): Ditto.
3522 (find_max_dv_min_mob): Ditto.
3523 * sbitmap.c (sbitmap_first_set_bit): Ditto.
3524 * sched-rgn.c (extract_edgelst): Ditto.
3525 * tree-into-ssa.c (prepare_names_to_update): Ditto.
3526 (dump_update_ssa): Ditto.
3527 (ssa_names_to_replace) Ditto.
3528 (switch_virtuals_to_full_rewrite): Ditto.
3529 (update_ssa): Ditto.
3530 * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
3531
3532 2005-07-18 Daniel Berlin <dberlin@dberlin.org>
3533
3534 Fix PR tree-optimization/22483
3535
3536 * tree-complex.c (create_components): Use
3537 safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
3538 * tree-flow-inline.h (fill_referenced_var_vec): New function.
3539 * tree-flow.h (safe_referenced_var_iterator): New structure.
3540 (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
3541 * tree-ssa-alias.c (setup_pointers_and_addressables): Use
3542 safe_referenced_var iterator.
3543 (add_type_alias): Ditto.
3544
3545 2005-07-19 Steven Bosscher <stevenb@suse.de>
3546
3547 * loop-init.c (rest_of_handle_loop2): Remove.
3548 (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
3549 rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
3550 (pass_rtl_loop_init, pass_rtl_loop_done,
3551 pass_rtl_move_loop_invariants, pass_rtl_unswitch,
3552 pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
3553 * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
3554 pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
3555 pass_tree_loop_done, and pass_tree_unswitch.
3556 (gate_loop): Rename to gate_tree_loop.
3557 * passes.c (init_optimization_passes): Update for renamed tree
3558 loop passes. Add the new loop2 passes as subpasses of loop2.
3559 * tree-pass.h: Add extern declarations for the new loop2 subpasses.
3560 Update for the renamed tree loop passes.
3561
3562 2005-07-18 Ian Lance Taylor <ian@airs.com>
3563
3564 PR middle-end/22057
3565 * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
3566 blocks when optimizing.
3567
3568 2005-07-18 Steve Ellcey <sje@cup.hp.com>
3569
3570 * common.opt (frename-registers): Initialize to 2.
3571 (fweb): Ditto.
3572 (fgcse-after-reload): Ditto.
3573 * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
3574 (process_options): Only change flag_web, flag_rename_registers,
3575 and flag_rerun_cse_after_loop if not explicitly set by user.
3576
3577 2005-07-18 Jan Beulich <jbeulich@novell.com>
3578
3579 * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
3580 ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
3581 in 64-bit mode the same as DImode in 32-bit mode.
3582 (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
3583 ix86_split_lshr): Likewise. Rename to no longer refer to a specific
3584 mode. Add new mode parameter.
3585 * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
3586 * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
3587 x86_64_shift_adj): New expanders.
3588 (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
3589 *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
3590 insns.
3591 Respective new splitters. Use renamed shift splitter helpers in 32-bit
3592 DImode shift splitters.
3593 * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
3594 ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
3595 mode parameter.
3596
3597 2005-07-18 Jan Beulich <jbeulich@novell.com>
3598
3599 * i386.md (movdi_extzv_1): New.
3600 (zero_extendhidi2): Combine alternatives and never force use of
3601 REX64 prefix.
3602 (zero_extendqidi2): Likewise. Don't restrict input selection.
3603
3604 2005-07-17 Daniel Berlin <dberlin@dberlin.org>
3605
3606 Fix PR tree-optimization/22531
3607 * tree-ssa-pre.c (do_eustores): Make sure LHS is a decl for the
3608 moment.
3609
3610 2005-07-17 Daniel Berlin <dberlin@dberlin.org>
3611
3612 * tree-promote-statics.c (pass_promote_statics): Change dump file
3613 name.
3614
3615 2005-07-17 Daniel Berlin <dberlin@dberlin.org>
3616
3617 * tree-optimize.c (init_tree_optimization_passes): Add
3618 pass_eliminate_useless_stores pass.
3619 * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
3620 * tree-ssa-pre.c (is_copy_stmt): New function.
3621 (follow_copies_till_vuse): Ditto.
3622 (do_eustores): Ditto.
3623 (gate_eustores): Ditto.
3624
3625 2005-07-16 Richard Henderson <rth@redhat.com>
3626
3627 * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
3628
3629 2005-07-16 Danny Berlin <dberlin@dberlin.org>
3630 Kenneth Zadeck <zadeck@naturalbridge.com>
3631
3632 * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
3633 ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
3634 ipa-type-escape.h, tree-promote-statics.c
3635 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
3636 ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
3637 tree-promote-statics.c: new files.
3638 * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
3639 nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
3640 int nonlocal_set_p, mark_constant_function): Deleted.
3641 (rest_of_handle_cfg): Removed call to mark_constant_function.
3642 (nonoverlapping_component_refs_p): Added calls to support
3643 type based aliasing.
3644 * tree-ssa-alias.c (may_alias_p,
3645 compute_flow_insensitive_aliasing): Ditto.
3646 * calls.c (flags_from_decl_or_type): Removed reference to
3647 cgraph_rtl_info.
3648 * c-typeck.c (convert_arguments): Make builtins tolerant of having
3649 too many arguments. This is necessary for Spec 2000.
3650 * cgraph.h (const_function, pure_function): Removed.
3651 * common.opt: Added "fipa-pure-const", "fipa-reference",
3652 "fipa-type-escape", and "ftree-promote-static".
3653 * opts.c: Ditto.
3654 * passes.c: Added ipa and tree-promote-statics passes.
3655 * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
3656 TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
3657 * tree-dfa.c (referenced_var_lookup_if_exists): New function.
3658 * tree-flow.h: Added exposed sra calls and addition of
3659 reference_vars_info field for FUNCTION_DECLS.
3660 * tree-pass.h: Added passes.
3661 * tree-sra.c: (sra_init_cache): New function.
3662 (sra_insert_before, sra_insert_after) Made public.
3663 (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
3664 and made public.
3665 * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
3666 aliasing. (may_alias_p): Added code to use type escape analysis to
3667 improve alias sets.
3668 * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
3669 code to prune clobbers of static variables based on information
3670 produced in ipa-reference pass. Changed call clobbering so that
3671 statics are not marked as clobbered if the call does not clobber
3672 them.
3673
3674 2005-07-16 Daniel Berlin <dberlin@dberlin.org>
3675
3676 * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
3677 too.
3678
3679 2005-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
3680
3681 * doc/install.texi (*-*-solaris2*): Document recommended version
3682 of GNU binutils and mention GNU linker problem on Solaris 10.
3683
3684 2005-07-16 Joseph S. Myers <joseph@codesourcery.com>
3685
3686 PR c/22421
3687 * c-decl.c (c_build_bitfield_integer_type): New function.
3688 (finish_struct): Call it.
3689 * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
3690
3691 2005-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3692
3693 * c-typeck.c (digest_init): Call 'convert_for_assignment'
3694 before returning.
3695
3696 2005-07-16 Jan Hubicka <jh@suse.cz>
3697
3698 * cfg.c (update_bb_profile_for_threading): Fix profile updating.
3699 (scale_bbs_frequencies_int): Watch roundoff errors.
3700 * predict.c (return_prediction): Initialize return_stmt.
3701
3702 2005-07-16 Jan Hubicka <jh@suse.cz>
3703
3704 * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
3705 after RTL profiling.
3706
3707 2005-07-11 Andrew Pinski <pinskia@physics.uc.edu>
3708
3709 PR middle-end/22398
3710 * fold-const.c (build_range_check): Convert high/low to etype
3711 if we are only comparing against exp.
3712
3713 2005-07-13 Daniel Berlin <dberlin@dberlin.org>
3714
3715 Fix PR tree-optimization/22376
3716 * tree-ssa-structalias.c (build_constraint_graph): We really meant
3717 special var here.
3718 (need_to_solve): New function.
3719 (compute_points_to_sets): Use it.
3720
3721 2005-07-15 Jan Hubicka <jh@suse.cz>
3722
3723 * cfg.c (update_bb_profile_for_threading): More diagnostic.
3724 * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
3725
3726 2005-07-15 Richard Guenther <rguenther@suse.de>
3727
3728 * c-common.c (handle_flatten_attribute): New function.
3729 Add flatten function attribute.
3730 * doc/extend.texi: Document flatten function attribute.
3731 * Makefile.in (ipa-inline.o): Depend on hashtab.h.
3732 * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
3733 New functions.
3734 (cgraph_decide_inlining): Handle functions with flatten
3735 attribute.
3736
3737 2005-07-14 David Edelsohn <edelsohn@gnu.org>
3738
3739 * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
3740 UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
3741 UNSPEC_XCHG, UNSPEC_AND): New.
3742 (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
3743 UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
3744 * config/rs6000/sync.md (FETCHOP): New code macro.
3745 (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
3746 New code attrs.
3747 (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
3748 (sync_compare_and_swap<mode>): Same.
3749 (sync_lock_test_and_set<mode>): Same.
3750 (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
3751 for QImode and HImode, and not PPC405.
3752 (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
3753 (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
3754 (sync_<fetchop>{si,di}_internal): New.
3755 (sync_nand{si,di}_internal): New.
3756 (sync_old_<fetchop>{si,di}_internal): New.
3757 (sync_old_nand{si,di}_internal): New
3758 (sync_new_<fetchop>{si,di}_internal): New.
3759 (sync_new_nand{si,di}_internal): New.
3760 (atomic_and{si,di}): New.
3761 (sync_new_nand{si,di}_internal): New.
3762 (atomic_and{si,di}): New.
3763 (sync_add<mode>_internal): Delete.
3764 (sync_addshort_internal): Use unspec instead of unspec_volatile.
3765 (sync_sub<mode>_internal): Delte.
3766 (sync_subshort_internal): New.
3767 (sync_andsi_internal): Use unspec instead of unspec_volatile.
3768 (sync_anddi_internal): Delete.
3769 (sync_boolsi_internal): Use unspec instead of unspec_volatile.
3770 (sync_booldi_internal): Delete.
3771 (sync_boolc<mode>_internal): Delete.
3772 (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
3773 (sync_boolc<mode>_internal2): Delete.
3774 (sync_boolcc<mode>_internal): Delete.
3775 (isync, lwsync): Use unspec instead of unspec_volatile.
3776 * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
3777 Revert UNSPEC_VOLATILE.
3778 (rs6000_split_atomic_op): New.
3779 * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
3780
3781 2005-07-14 Eric Christopher <echristo@redhat.com>
3782
3783 * config/mips/mips.c (mips_canonicalize_comparison): Cast
3784 argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
3785
3786 2005-07-14 Eric Christopher <echristo@redhat.com>
3787
3788 * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
3789
3790 2005-07-14 Steven Bosscher <stevenb@suse.de>
3791
3792 PR tree-optimization/22230
3793 * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
3794 the computation of the four cross productions for "range op range".
3795
3796 2005-07-14 Alexandre Oliva <aoliva@redhat.com>
3797 Ulrich Weigand <uweigand@de.ibm.com>
3798
3799 PR target/20126
3800 * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
3801 in some insn.
3802
3803 2005-07-14 Ulrich Weigand <uweigand@de.ibm.com>
3804
3805 * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
3806
3807 2005-07-14 Steve Ellcey <sje@cup.hp.com>
3808
3809 * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
3810
3811 2005-07-14 Richard Guenther <rguenther@suse.de>
3812
3813 PR middle-end/22347
3814 * config/i386/i386-protos.h (ix86_function_value): Change
3815 prototype to match new target hook.
3816 * config/i386/i386.c (ix86_value_regno): Change prototype
3817 to take extra type argument.
3818 (TARGET_FUNCTION_VALUE): Define.
3819 (ix86_function_ok_for_sibcall): Pass extra argument to
3820 ix86_value_regno, check return slot rtx for exact match.
3821 (ix86_function_value): Take extra parameter. Dispatch to
3822 ix86_value_regno with fndecl/fntype as provided.
3823 (ix86_value_regno): Handle extra type argument.
3824 * config/i386/i386.h (FUNCTION_VALUE): No longer define.
3825
3826 * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
3827 * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
3828 * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
3829 * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
3830 * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
3831
3832 2005-07-14 Richard Guenther <rguenther@suse.de>
3833
3834 * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
3835 * calls.c (expand_call): Pass fntype to hard_function_value.
3836 (emit_library_call_value_1): Likewise.
3837 * explow.c: Include target.h.
3838 (hard_function_value): Take extra argument, the fntype.
3839 Use new target hook for function_value.
3840 * expr.h (hard_function_value): Change prototype.
3841 * function.c (aggregate_value_p): Pass 0 as fntype to
3842 hard_function_value.
3843 (assign_parms): Use new target hook for function_value.
3844 Pass 0 as fntype to hard_function_value.
3845 (expand_function_end): Likewise.
3846 * reg-stack.c: Include target.h.
3847 (stack_result): Use new target hook for function_value.
3848 * target-def.h: New target hook function_value.
3849 * target.h: Likewise.
3850 * targhooks.c (default_function_value): New function.
3851 * targhooks.h (default_function_value): Declare.
3852
3853 2005-07-13 Ian Lance Taylor <ian@airs.com>
3854
3855 * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
3856
3857 2005-07-14 Jan Hubicka <jh@suse.cz>
3858
3859 * tree-dfa.c (dump_variable): Use default_def function.
3860 * tree-ssa-alias.c (dump_points_to_info): Likewise.
3861 * tree-ssa.c (verify_use): Likewise.
3862 * tree-ssanames.c (release_ssa_name): Likewise.
3863 * tree-tailcall.c (eliminate_tail_call): Likewise.
3864 (tree_optimize_tail_calls_1): Likewise.
3865 * tree-vrp.c (get_value_range): Likewise.
3866
3867 2005-07-14 Ben Elliston <bje@au.ibm.com>
3868
3869 * gcc.c (main): Compare language[0] with '*' when iterating over
3870 the infiles.
3871
3872 2005-07-13 Adrian Strae½tling <straetling@de.ibm.com>
3873
3874 * config/s390/s390.c: (s390_cc_modes_compatible): Move before
3875 "s390_emit_compare". Add handling of CCZ1mode.
3876 (s390_canonicalize_comparison): Simplify cascaded EQ, NE.
3877 (390_emit_compare): Use "s390_cc_modes_compatible" for mode
3878 checking.
3879 (s390_branch_condition_mask): Add CCZ1mode handling.
3880 * config/s390/s390.md: ("seq", "*seq"): New pattern.
3881 ("sync_compare_and_swap_cc<mode>", "*sync_compare_and_swap_cc<mode>"):
3882 Use CCZ1mode instead of CCZmode.
3883 * config/s390/s390-modes.def: Add CCZ1mode. Comment new mode.
3884
3885 2006-07-13 Adrian Strae½tling <straetling@de.ibm.com>
3886
3887 * config/s390/s390.md: ("cmpstrsi", "*cmpstr<mode>"): New
3888 pattern.
3889 ("strlen<mode>", "*strlen<mode>"): Use hard reg 0 in SImode.
3890
3891 2005-07-13 Eric Christopher <echristo@redhat.com>
3892
3893 * config/mips/mips.c (mips_canonicalize_comparison): New.
3894 (mips_emit_int_relational): Use.
3895
3896 2005-07-13 Eric Christopher <echristo@redhat.com>
3897
3898 * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
3899 static extra parts.
3900 * config/s390/s390.md: Include tpf.md. Move tpf specific
3901 patterns...
3902 * config/s390/tpf.md: To here.
3903 * config/s390/s390.opt: Move tpf specific options...
3904 * config/s390/tpf.opt: to here. Add mmain option.
3905 * config/s390/tpf-unwind.h: Remove unnecessary defines.
3906 * config/s390/tpf.h: Rewrite.
3907
3908 2005-07-13 H.J. Lu <hongjiu.lu@intel.com>
3909
3910 * doc/tm.texi: Remove @xref{Cross-profiling}.
3911
3912 2005-07-13 Jeff Law <law@redhat.com>
3913
3914 * fold-const.c (fold_binary): When comparing two simple ADDR_EXPR
3915 expressions, test their _DECL operands for pointer equality rather
3916 than using operand_equal_p.
3917
3918 2005-07-13 H.J. Lu <hongjiu.lu@intel.com>
3919
3920 * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Renamed to ...
3921 (TARGET_POSIX_IO): This.
3922 * config/darwin.h: Likewise.
3923 * config/freebsd.h: Likewise.
3924 * config/linux.h: Likewise.
3925 * config/lynx.h: Likewise.
3926 * config/netbsd.h: Likewise.
3927 * config/rs6000/linux64.h: Likewise.
3928 * config/rs6000/linux.h: Likewise.
3929 * config/s390/tpf.h: Likewise.
3930 * config/sh/embed-elf.h: Likewise.
3931 * config/sparc/linux64.h: Likewise.
3932 * config/sparc/linux.h: Likewise.
3933 * config/svr4.h: Likewise.
3934 * gcov-io.h: Likewise.
3935
3936 * doc/tm.texi: Updated.
3937
3938 * libgcov.c (create_file_directory): Defined only if
3939 TARGET_POSIX_IO is defined.
3940 (gcov_exit): Call create_file_directory only if TARGET_POSIX_IO
3941 is defined.
3942
3943 2005-07-13 Jan Hubicka <jh@suse.cz>
3944
3945 * tree-ssa-operands.c (get_expr_operands): Fix typo in previous patch.
3946
3947 2005-07-13 David Edelsohn <edelsohn@gnu.org>
3948
3949 * tree-ssa-dom.c (lookup_avail_expr): Do not pass member in freed
3950 structure as argument.
3951
3952 2005-07-13 Paolo Bonzini <bonzini@gnu.org>
3953
3954 PR tree-optimization/21921
3955 * tree-iterator.c (tsi_link_before): Support the case when
3956 tsi_end_p (tsi) == true.
3957
3958 2005-07-12 Zdenek Dvorak <dvorakz@suse.cz>
3959
3960 PR tree-optimization/22442
3961 * tree-chrec.c (chrec_fold_multiply_poly_poly): Associate chrecs
3962 correctly.
3963
3964 2005-07-12 Zdenek Dvorak <dvorakz@suse.cz>
3965
3966 PR rtl-optimization/20376
3967 * toplev.c (process_options): Enable -fweb and -frename-registers when
3968 unrolling.
3969 * doc/invoke.texi: Update the information about when -fweb and
3970 -frename-registers are enabled.
3971
3972 2005-07-12 Andrew Pinski <pinskia@physics.uc.edu>
3973
3974 PR tree-opt/21840
3975 * tree-ssa-pre.c (eliminate): Convert the sprime to the correct type
3976 if *rhs_p is not a SSA_NAME.
3977
3978 2005-07-12 Daniel Berlin <dberlin@dberlin.org>
3979
3980 Fix PR tree-optimization/22422
3981 * tree-ssa-structalias.c (struct variable_info): Add flag for
3982 special vars.
3983 (get_varinfo): Now a static function.
3984 (new_varinfo): init has_union and is_special_var to false.
3985 (solution_set_add): Check has_union.
3986 (do_da_constraint): Move temporary variable so it gets reset
3987 properly.
3988 Also check for special variable.
3989 (do_ds_constraint): Ditto.
3990 (do_sd_constraint): Ditto.
3991 (do_structure_copy): Check for special variable.
3992 (find_func_aliases): Ditto.
3993 (init_base_vars): Set special vars properly.
3994
3995 2005-07-13 Jan Hubicka <jh@suse.cz>
3996
3997 * cfgexpand.c (expand_one_stack_var): Do not expand variables when we
3998 do unit-at-a-time.
3999
4000 * tree-ssa-operands.c (parse_ssa_operands): Fix formatting.
4001 (get_expr_operands): Fix thinko wrt flags and subvars.
4002
4003 PR tree-optimize/22379
4004 * tree-inline.c (expand_call_inline): Do not output sorry in early
4005 inlining.
4006
4007 2005-07-12 Dale Johannesen <dalej@apple.com>
4008
4009 * config/rs6000.c (rs6000_rtx_cost): Move FLOAT_EXTEND.
4010
4011 2005-07-12 Andrew Pinski <pinskia@physics.uc.edu>
4012
4013 PR bootstrap/21704
4014 * host-linux.h: Include limits.h.
4015
4016 2005-07-12 Dale Johannesen <dalej@apple.com>
4017
4018 * expr.c (compress_float_constant): Add cost check.
4019 * config/rs6000.c (rs6000_rtx_cost): Adjust FLOAT_EXTEND cost.
4020
4021 2005-07-12 Dale Johannesen <dalej@apple.com>
4022
4023 * gcc.target/i386/compress-float-sse.c: New.
4024 * gcc.target/i386/compress-float-sse-pic.c: New.
4025 * gcc.target/i386/compress-float-387.c: New.
4026 * gcc.target/i386/compress-float-387-pic.c: New.
4027 * gcc.dg/compress-float-ppc.c: New.
4028 * gcc.dg/compress-float-ppc-pic.c: New.
4029
4030 2005-07-12 Eric Christopher <echristo@redhat.com>
4031
4032 * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
4033 static extra parts.
4034 * config/s390/s390.md: Include tpf.md. Move tpf specific
4035 patterns...
4036 * config/s390/tpf.md: To here.
4037 * config/s390/s390.opt: Move tpf specific options...
4038 * config/s390/tpf.opt: to here. Add mmain option.
4039 * config/s390/tpf-unwind.h: Remove unnecessary defines.
4040 * config/s390/tpf.h: Rewrite.
4041
4042 2005-07-12 Eric Christopher <echristo@redhat.com>
4043
4044 * gcc.c (struct infile): Update comment for language.
4045 (main): Rewrite input file resetting code.
4046
4047 2005-07-12 Andrew Pinski <pinskia@physics.uc.edu>
4048
4049 PR tree-opt/22335
4050 * tree-ssa-dom.c (eliminate_redundant_computations): Reject the prop if
4051 requiring a cast in a non RHS of modify_expr. Add a cast when required.
4052 (lookup_avail_expr): Use constant_boolean_node instead
4053 of boolean_false_node/boolean_true_node.
4054
4055 2005-07-12 Ben Elliston <bje@au.ibm.com>
4056
4057 * tree-cfg.c (dump_cfg_stats): Add a new fmt_str_2 format string
4058 and use it when printing num_edges.
4059
4060 2005-07-12 Bernd Schmidt <bernd.schmidt@analog.com>
4061
4062 * doc/extend.texi (Blackfin Built-in Functions): New section.
4063 * doc/invoke.texi (mcsync-anomaly, mno-csync-anomaly): Fix the
4064 @opindex.
4065
4066 2005-07-12 Adrian Straetling <straetling@de.ibm.com>
4067
4068 * builtins.c: (expand_builtin_memcmp, expand_builtin_strncmp):
4069 s/cmpstrsi/cmpstrnsi
4070 (expand_builtin_strcmp): Rewrite to support both 'cmpstrsi' and
4071 'cmpstrnsi'.
4072 * optabs.c: (prepare_cmp_insn): Add availability of 'cmpstrn'.
4073 (init_optabs): Initialize cmpstrn_optab.
4074 * optabs.h: (enum insn_code cmpstrn_optab): Declare.
4075 * genopinit.c: (optabs[]): Add 'cmpstrn' to initialisation.
4076 * expr.c: (enum insn_code cmpstrn_optab): Declare.
4077 * config/i386/i386.md: s/cmpstr/cmpstrn
4078 * config/c4x/c4x.md: s/cmpstr/cmpstrn
4079 * doc/md.texi: Update documentation.
4080
4081 2005-07-11 Richard Henderson <rth@redhat.com>
4082
4083 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use
4084 build_va_arg_indirect_ref.
4085 (alpha_gimplify_va_arg): Likewise.
4086 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
4087 * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
4088 * config/mips/mips.c (mips_gimplify_va_arg_expr): Likewise.
4089 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
4090 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
4091 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg):
4092 Likewise.
4093 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
4094
4095 2005-07-12 Zdenek Dvorak <dvorakz@suse.cz>
4096
4097 * tree-flow.h (remove_empty_loops, single_dom_exit): Declare.
4098 * passes.c (init_optimization_passes): Add pass_empty_loop.
4099 * tree-pass.h (pass_empty_loop): Declare.
4100 * tree-ssa-loop-ivcanon.c (empty_loop_p, remove_empty_loop,
4101 try_remove_empty_loop, remove_empty_loops): New functions.
4102 * tree-ssa-loop-ivopts.c (single_dom_exit): Export.
4103 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): New.
4104
4105 2005-07-12 Peter Barada <peter@the-baradas.com>
4106
4107 PR middle-end/16719
4108 PR middle-end/18421
4109 * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Disallow bytes
4110 in address registers.
4111 * config/m68k/m68k.c (hard_regno_mode_ok): Likewise.
4112 * config/m68k/m68k.md: Replace 's' with 'i' in 4th
4113 alternative of addsi3_5200.
4114
4115 2005-07-11 Ian Lance Taylor <ian@airs.com>
4116
4117 * config/mips/mips.md (ffs<mode>2): Remove.
4118
4119 2005-07-11 Ian Lance Taylor <ian@airs.com>
4120
4121 * doc/tree-ssa.texi (Cleanups): Improve description of
4122 TRY_FINALLY_EXPR.
4123 (GIMPLE Exception Handling): Clarify TRY_CATCH_EXPR cases.
4124
4125 2005-07-11 Daniel Berlin <dberlin@dberlin.org>
4126
4127 * print-tree.c (print_node): Use DECL_ARGUMENT_FLD.
4128 * tree.h (DECL_ARGUMENT_FLD): New macro.
4129
4130 2005-07-11 Daniel Berlin <dberlin@dberlin.org>
4131
4132 Fix PR tree-optimization/22404
4133
4134 * tree-ssa-structalias.c (create_variable_info_for): Use
4135 correct offset.
4136
4137 2005-07-11 Bernd Schmidt <bernd.schmidt@analog.com>
4138
4139 * config/bfin/bfin.md (cmpsi, compare_eq, compare_ne, compare_lt,
4140 compare_le, compare_leu, compare_ltu): Use reg_or_const_int_operand
4141 for second comparison operand.
4142 * config/bfin/predicates.md (reg_or_const_int_operand): New.
4143
4144 * config/bfin/bfin.md (define_attr "type"): Add "sync".
4145 (define_insn_reservation "alu"): Likewise.
4146 (csync, ssync): Now of type sync.
4147 * config/bfin/bfin.h (TARGET_DEFAULT): Defaults to
4148 -mcsync-anomaly -mspecld-anomaly.
4149 * config/bfin/bfin.opt (mcsync): Remove.
4150 (mcsync-anomaly, mspecld-anomaly): Add.
4151 * config/bfin/bfin.c: Include "insn-codes.h".
4152 (bfin_reorg): Extend to handle the CSYNC anomaly as well.
4153 (TARGET_DEFAULT_TARGET_FLAGS): New.
4154 * doc/invoke.texi: Document -mcsync-anomaly, -mspecld-anomaly.
4155
4156 2005-07-11 Steven Bosscher <stevenb@suse.de>
4157
4158 * basic-block.h: Give the BB flags enum a name, bb_flags.
4159 Add new flags BB_FORWARDER_BLOCK, and BB_NONTHREADABLE_BLOCK.
4160 * cfgcleanup.c (enum bb_flags): Remove here.
4161 (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG): Remove.
4162 (notice_new_block): Set/test bb->flags instead of aux via BB_FLAGS.
4163 (update_forwarder_flag): Likewise.
4164 (thread_jump): Likewise.
4165 (try_forward_edges): Likewise.
4166 (try_optimize_cfg): Likewise. Clear bb->flags before updating the
4167 forwarder flags. Don't clear bb->aux for all basic blocks. Only
4168 reset the BB_FORWARDER_BLOCK and BB_NONTHREADABLE_BLOCK flags.
4169
4170 2005-07-11 Richard Guenther <rguenther@suse.de>
4171
4172 * config/i386/i386.opt: New target option -msseregparm.
4173 * config/i386/i386.c (override_options): Error out for
4174 -msseregparm but no SSE support.
4175 (ix86_function_sseregparm): Check for global sseregparm.
4176 * doc/invoke.texi: Document -msseregparm.
4177
4178 2005-07-11 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4179
4180 * config.gcc (m32r-*-linux*): Use the default extra_parts.
4181 (m32rle-*-linux*): Ditto.
4182
4183 2005-07-11 Jakub Jelinek <jakub@redhat.com>
4184
4185 * cfgexpand.c (stack_protect_classify_type): Use TYPE_SIZE_UNIT (type)
4186 instead of TYPE_MAX_VALUE (TYPE_DOMAIN (type)) to get array size in
4187 bytes.
4188
4189 2005-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4190
4191 PR middle-end/22239
4192 PR target/20126
4193 * loop.c (loop_givs_rescan): Use expand_simple_binop instead of
4194 gen_rtx_MINUS to handle non-replaceable (plus ((x) (const)).
4195
4196 2005-07-07 Daniel Berlin <dberlin@dberlin.org>
4197
4198 * tree-ssa-structalias.c (struct variable_info): Heapify complex.
4199 (varmap): Heapify varmap.
4200 (constraints): Heapify constraints.
4201 (struct constraint_graph): Heapify succs and preds.
4202 (constraint_vec_find): Update for heapification.
4203 (constraint_set_union): Ditto.
4204 (insert_into_complex): Ditto.
4205 (constraint_edge_vec_find): Ditto.
4206 (erase_graph_self_edge): Ditto.
4207 (add_graph_edge): Ditto.
4208 (get_graph_weights): Ditto.
4209 (merge_graph_nodes): Ditto.
4210 (build_constraint_graph): Ditto.
4211 (topo_visit): Ditto.
4212 (solve_graph): Ditto.
4213 (create_variable_info_for): Ditto.
4214 (init_base_vars): Ditto.
4215 (delete_points_to_sets): Free graph, varmap, and complex constraints.
4216 (condese_varmap_nodes): Free complex vector.
4217 (clear_edges_for_node): Clear succs and preds vector.
4218
4219 2005-07-10 Daniel Berlin <dberlin@dberlin.org>
4220
4221 * tree-ssa-structalias.c (update_alias_info): Change counting of
4222 references to not include vdefs.
4223
4224 2005-07-10 Daniel Berlin <dberlin@dberlin.org>
4225
4226 * tree-ssa-alias.c (free_used_part_map): Add missing free.
4227 (up_insert): Ditto.
4228
4229 2005-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4230
4231 * pa.c (pa_commutative_p): Make PLUS commutative when
4232 TARGET_NO_SPACE_REGS is true.
4233
4234 2005-07-09 Diego Novillo <dnovillo@redhat.com>
4235
4236 * Makefile.in (tree-ssa-alias.o): Depend on tree-ssa-structalias.h
4237 * tree-cfg.c (CHECK_OP): Only test for is_gimple_val.
4238 * tree-dfa.c (dump_subvars_for): New.
4239 (debug_subvars_for): New.
4240 (dump_variable): Show subvariables if VAR has them.
4241 * tree-flow-inline.h (get_subvar_at): New.
4242 (overlap_subvar): Change offset and size to unsigned HOST_WIDE_INT.
4243 * tree-flow.h (struct ptr_info_def): Remove field pt_malloc.
4244 Update all users.
4245 (struct subvar): Change fields offset and size to unsigned
4246 HOST_WIDE_INT.
4247 (dump_subvars_for): Declare.
4248 (debug_subvars_for): Declare.
4249 (get_subvar_at): Declare.
4250 (okay_component_ref_for_subvars): Change 2nd and 3rd argument
4251 to unsigned HOST_WIDE_INT *.
4252 (overlap_subvar): Likewise.
4253 * tree-gimple.c (is_gimple_reg): Always return false for
4254 SFTs and memory tags.
4255 * tree-pass.h (pass_build_pta, pass_del_pta): Remove.
4256 Update all callers.
4257 * tree-ssa-alias.c: Include tree-ssa-structalias.h.
4258 (compute_may_aliases): Call compute_points_to_sets.
4259 (collect_points_to_info_for): Remove.
4260 (compute_points_to_and_addr_escape): Remove.
4261 (delete_alias_info): Call delete_points_to_sets.
4262 (compute_flow_sensitive_aliasing): If the call to
4263 find_what_p_points_to returns false, call set_pt_anything.
4264 (add_may_alias): Set TREE_ADDRESSABLE when adding a new alias.
4265 (set_pt_anything): Clear pi->pt_vars.
4266 (set_pt_malloc): Remove.
4267 (merge_pointed_to_info): Remove.
4268 (add_pointed_to_expr): Remove.
4269 (add_pointed_to_var): Remove.
4270 (collect_points_to_info_r): Remove.
4271 (is_escape_site): Make extern.
4272 (create_sft): New.
4273 (create_overlap_variables_for): Call it.
4274 * tree-ssa-copy.c (merge_alias_info): Never merge
4275 flow-sensitive alias information.
4276 * tree-ssa-operands.c (get_expr_operands): Adjust variables
4277 offset and size to be unsigned HOST_WIDE_INT.
4278 (add_to_addressable_set): Rename from note_addressable.
4279 Set TREE_ADDRESSABLE as the variables are added to the set.
4280 Update all users.
4281 (add_stmt_operand): Do not try to micro-optimize unmodifiable
4282 operands into VUSEs when adding V_MAY_DEFs for members in an
4283 alias set.
4284 * tree-ssa-operands.h (add_to_addressable_set): Declare.
4285 * tree-ssa-structalias.c: Include tree-ssa-structalias.h last.
4286 (struct variable_info): Add bitfield is_heap_var.
4287 (var_anyoffset, anyoffset_tree, anyoffset_id): Declare.
4288 (new_var_info): Initialize is_heap_var.
4289 (get_constraint_for): Add HEAP variables to the symbol table.
4290 Mark them with is_heap_var.
4291 (update_alias_info): New. Taken mostly from the old
4292 compute_points_to_and_addr_escape.
4293 (handle_ptr_arith): New.
4294 (find_func_aliases): Call update_alias_info.
4295 Call handle_ptr_info for tcc_binary expressions.
4296 Call mark_stmt_modified.
4297 (create_variable_info_for): If DECL has subvars, do not create
4298 variables for its subvars. Always add all the fields.
4299 (set_uids_in_ptset): If the solution includes ANYOFFSET and
4300 SFTs, then add all the SFTs of the structure.
4301 If VI->DECL is an aggregate with subvariables, add the SFT at
4302 VI->OFFSET.
4303 (find_what_p_points_to): If VI is an artificial variable,
4304 translate to bitfields in SSA_NAME_PTR_INFO.
4305 If the solution is empty, set pi->pt_vars to NULL
4306 (init_base_vars): Create ANYOFFSET.
4307 (compute_points_to_sets): Rename from create_alias_vars.
4308 Make extern.
4309 (pass_build_pta): Remove.
4310 (delete_points_to_sets): Rename from delete_alias_vars.
4311 (pass_del_pta): Remove.
4312 * tree-ssa-structalias.h (struct alias_info): Move from
4313 tree-ssa-alias.h.
4314 (NUM_REFERENCES, NUM_REFERENCES_CLEAR, NUM_REFERENCES_INC,
4315 NUM_REFERENCES_SET): Likewise.
4316 (compute_points_to_sets, delete_points_to_sets): Declare.
4317
4318 2005-07-09 Richard Henderson <rth@redhat.com>
4319
4320 * config/alpha/alpha.c (emit_insxl, alpha_expand_compare_and_swap_12,
4321 alpha_split_compare_and_swap_12, alpha_expand_lock_test_and_set_12,
4322 alpha_split_lock_test_and_set_12): New functions.
4323 * config/alpha/alpha-protos.h: Update.
4324 * config/alpha/alpha.md (UNSPEC_MB, UNSPEC_ATOMIC,
4325 UNSPEC_CMPXCHG, UNSPEC_XCHG): Rename from UNSPECV_FOO.
4326 * config/alpha/sync.md (I12MODE): New.
4327 (memory_barrier, mb_internal): Use unspec instead of unspec_volatile.
4328 (sync_<fetchop_name><I48MODE>): Likewise.
4329 (sync_nand<I48MODE>): Likewise.
4330 (sync_old_<fetchop_name><I48MODE>): Likewise.
4331 (sync_new_<fetchop_name><I48MODE>): Likewise.
4332 (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
4333 (sync_compare_and_swap<I48MODE>): Likewise.
4334 (sync_lock_test_and_set<I48MODE>): Likewise.
4335 (sync_compare_and_swap<I12MODE>): New.
4336 (sync_compare_and_swap<I12MODE>_1): New.
4337 (sync_lock_test_and_set<I12MODE>): New.
4338 (sync_lock_test_and_set<I12MODE>_1): New.
4339
4340 2005-07-09 Diego Novillo <dnovillo@redhat.com>
4341
4342 PR 21356
4343 PR 22332
4344 * passes.c (execute_todo): Cleanup the CFG before updating SSA.
4345
4346 2005-07-09 Jakub Jelinek <jakub@redhat.com>
4347
4348 * config/i386/i386.c (output_set_got): Don't omit OFFSET FLAT:
4349 in Intel syntax add %reg, OFFSET FLAT:_GLOBAL_OFFSET_TABLE_+(.-.Lx).
4350
4351 2005-07-09 Richard SAndiford <richard@codesourcery.com>
4352
4353 PR target/21656
4354 * config/mips/elf.h (NO_IMPLICIT_EXTERN_C): Define.
4355
4356 2005-07-08 David Edelsohn <edelsohn@gnu.org>
4357
4358 * config/rs6000/sync.md (load_locked_<mode>): Use Z for
4359 memory_operand constraint.
4360 (store_conditional_<mode>): Same.
4361 (sync_compare_and_swap<mode>): Same.
4362 (sync_lock_test_and_set<mode>): Same.
4363
4364 2005-07-08 Hans-Peter Nilsson <hp@axis.com>
4365
4366 Rewrite PIC support to more closely model actual instructions.
4367 * config/cris/cris-protos.h (cris_gotless_symbol, cris_got_symbol)
4368 (cris_symbol): Remove prototypes for removed functions.
4369 (cris_pic_symbol_type_of, cris_valid_pic_const)
4370 (cris_expand_pic_call_address): Prototypes for new functions.
4371 * config/cris/cris/cris.c (cris_pic_sympart_only): Remove unused
4372 variable.
4373 (cris_print_operand) <case 'v', 'P'>: Remove cases for unused
4374 modifiers.
4375 <case ':'>: Add case for new punctuation character.
4376 <case 'd'>: Temporarily set flag_pic = 2 instead of incorrectly
4377 emitting (extra) PIC modifier.
4378 <case UNSPEC>: Do not assert for PLT.
4379 (cris_initial_frame_pointer_offset, cris_simple_epilogue)
4380 (cris_expand_prologue, cris_expand_epilogue): Check
4381 for pic_offset_table_rtx usage instead of taking
4382 current_function_uses_pic_offset_table as the final word.
4383 (cris_rtx_costs, cris_address_cost, cris_side_effect_mode_ok):
4384 Remove flag_pic difference.
4385 (cris_valid_pic_const, cris_pic_symbol_type_of): New functions,
4386 the moral equivalents of...
4387 (cris_symbol, cris_gotless_symbol, cris_got_symbol): Remove
4388 functions.
4389 (cris_legitimate_pic_operand): Just call cris_valid_pic_const.
4390 (cris_handle_option): Mark ARG as unused.
4391 (cris_expand_pic_call_address): New worker function for "call",
4392 "call_value".
4393 (cris_asm_output_symbol_ref, cris_asm_output_label_ref): Do not
4394 output PIC constructs here.
4395 (cris_output_addr_const_extra): Changes for emitting PIC modifiers
4396 as symbol-specific modifers, not whole or part of operands.
4397 * config/cris/cris/cris.h (EXTRA_CONSTRAINT): Remove 'U' case.
4398 (EXTRA_CONSTRAINT_S): Changed semantics: allow only CONST-wrapped
4399 constants and flag_pic.
4400 (CONSTANT_INDEX_P): Adjust for new functions.
4401 (enum cris_pic_symbol_type): New helper type.
4402 (PRINT_OPERAND_PUNCT_VALID_P): Add ':'.
4403 * config/cris/cris/cris.md (CRIS_UNSPEC_GOTREL)
4404 (CRIS_UNSPEC_GOTREAD, CRIS_UNSPEC_PLTGOTREAD): New
4405 define_constants.
4406 ("movsi"): Emit actual instructions for GOT and relative access.
4407 ("*movsi_got_load"): New pattern to set up the register holding
4408 the GOT pointer.
4409 ("*movsi_internal"): Operand 1 is not a plain general_operand.
4410 Adjust FIXME for 'S'.
4411 <output for 'S' alternative>: Sanity-check UNSPEC types for PIC.
4412 Use "movs" for -fpic cases.
4413 ("addsi3"): Add alternative for 'S'; use adds.w when possible.
4414 ("uminsi3","*expanded_call_value"): Remove 'S' alternative.
4415 ("call", "call_value"): Just call cris_expand_pic_call_address for
4416 PIC addresses.
4417 ("*expanded_call_no_gotplt", "*expanded_call_value_no_gotplt"):
4418 Remove special pattern.
4419 ("*expanded_call_side", "*expanded_call_value_side"): New
4420 patterns.
4421 (gotplt-to-plt, gotplt-to-plt-side-call)
4422 (gotplt-to-plt-side-call-value, gotplt-to-plt-side): New
4423 peephole2:s.
4424 * config/cris/cris/predicates.md
4425 ("cris_general_operand_or_gotless_symbol"): Remove unused
4426 predicate.
4427 ("cris_general_operand_or_symbol"): Adjust for new functions.
4428
4429 2005-07-08 Andrew Pinski <pinskia@physics.uc.edu>
4430
4431 * config/darwin.h (TARGET_C99_FUNCTIONS): Define to 1.
4432
4433 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
4434
4435 * Makefile.in (TREE_H): Add treestruct.def.
4436 (c-decl.o): Add pointer-set.h
4437 * c-decl.c (diagnose_mismatched_decls): Don't attempt to look at
4438 visibility on regular DECL's.
4439 (merge_decls): Fix the copying of decl nodes of various types for
4440 the new structures. Don't update RTL, section name, weak status,
4441 etc, on DECL's without RTL.
4442 (grokdeclarator): DECL_ARG_TYPE_AS_WRITTEN is gone.
4443 Don't check volatile on non-variable types.
4444 (store_parm_decls_oldstyle): Use pointer_set instead of DECL_WEAK
4445 to check whether we have seen arguments.
4446 * c-objc-common.c (c_tree_printer): Reverse order of tests so that
4447 flag is checked before field (flag is common, field is not).
4448 * dwarf2out.c (decl_ultimate_origin): Only DECL's with
4449 TS_DECL_COMMON could have an origin.
4450 (add_location_or_const_value_attribute): Don't check section name
4451 on non-var/function decls.
4452 (dwarf2out_var_location): Reverse order of tests.
4453 * emit-rtl.c (set_reg_attrs_for_parm): DECL_CHECK is dead, replace
4454 with DECL_WRTL_CHECK.
4455 * expmed.c (make_tree): rtl is now in decl_with_rtl.
4456 * fold-const.c (fold_binary): Don't check weakness on
4457 non-var/function decls.
4458 (tree_expr_nonzero_p): Ditto.
4459 (fold_checksum_tree): Use tree_decl_extra as sizeof
4460 buffer.
4461 * ggc-page.c (extra_order_size_table): Add sizes for
4462 tree_decl_non_common, tree_parm_decl, tree_var_decl, and
4463 tree_field_decl.
4464 * gimplify.c (gimplify_bind_expr): Only set
4465 DECL_SEEN_IN_BIND_EXPR_P on VAR_DECL.
4466 * integrate.c (copy_decl_for_inlining): Don't set RTL on decl's
4467 without RTL.
4468 * langhooks-def.h (LANG_HOOK_INIT_TS): New.
4469 * langhooks.h (init_ts). New langhook.
4470 * passes.c (rest_of_decl_compilation): Reverse order of tests.
4471 * print-tree.c (print_node): Update to only print fields that
4472 exist in the structures the passed decl has.
4473 * toplev.c (wrapup_global_declarations): Don't reset
4474 DECL_DEFER_OUTPUT on DECL's that don't contain it.
4475 * tree-browser.c (browse_tree): DECL_ARG_TYPE_AS_WRITTEN removed.
4476 * tree-inline.c (remap_decl): Ditto.
4477 * tree-outof-ssa.c (create_temp): Reverse order of tests.
4478 * tree-pretty-print.c (print_declaration): Don't print
4479 DECL_REGISTER on things that don't contain it.
4480 * tree-vrp.c (expr_computes_nonzero): Don't check weakness on
4481 non-var/function decls.
4482 * tree.c (tree_contains_struct): New structure.
4483 (init_priority_for_decl): New hashtable.
4484 (tree_int_map): New structure.
4485 (tree_int_map_eq): New function.
4486 (tree_int_map_marked_p): Ditto.
4487 (tree_int_map_hash): Ditto.
4488 (tree_map): Move to tree.h.
4489 (tree_map_eq): Externalize.
4490 (tree_map_hash): Ditto.
4491 (tree_map_marked_p): Ditto.
4492 (init_ttree): Set up tree_contains_struct and call langhook.
4493 (decl_assembler_name): Use DECL_NON_COMMON_CHECK..
4494 (tree_code_size): Update for new structures.
4495 (tree_node_structure): Update for new structures.
4496 (make_node_stat): Don't try to set DECL_IN_SYSTEM_HEADER on decls
4497 without the field.
4498 (copy_node_stat): Copy init priority.
4499 (build_decl_stat): Ditto for visibility.
4500 (ts_enum_names): New.
4501 (tree_contains_struct_check_failed): New function.
4502 (decl_init_priority_lookup): Ditto.
4503 (decl_init_priority_insert): Ditto.
4504 * treestruct.def: New file.
4505 * tree.h (CODE_CONTAINS_STRUCT): New macro.
4506 (CONTAINS_STRUCT_CHECK): Ditto.
4507 (tree_contains_struct_check_failed): New prototype.
4508 (DECL_CHECK): Removed.
4509 (DECL_MINIMAL_CHECK): New.
4510 (DECL_COMMON_CHECK): Ditto.
4511 (DECL_WRTL_CHECK): Ditto.
4512 (DECL_NON_COMMON_CHECK): Ditto.
4513 (DECL_WITH_VIS_CHECK): Ditto.
4514 (VAR_OR_FUNCTION_DECL_P): Ditto
4515 (struct tree_decl_minimal): New structure.
4516 (struct tree_decl_common): Ditto.
4517 (struct tree_decl_with_rtl): Ditto.
4518 (struct tree_decl_with_vis): Ditto.
4519 (struct tree_decl_non_common): Ditto.
4520 (struct tree_field_decl): Ditto.
4521 (struct tree_parm_decl): Ditto.
4522 (struct tree_var_decl): Ditto.
4523 (struct tree_function_decl): Ditto.
4524 (struct tree_const_decl): Ditto.
4525 (struct tree_result_decl): Ditto.
4526 (union tree_node): Add new structures.
4527 * var-tracking.c (track_expr_p): Reverse order of tests.
4528
4529 * doc/c-tree.texi: Add documentation on DECL node internal structure.
4530
4531 2005-07-08 Kazu Hirata <kazu@codesourcery.com>
4532
4533 * cfgexpand.c (tree_expand_cfg): Don't use FINALIZE_PIC.
4534 * system.h: Poison FINALIZE_PIC.
4535 * doc/tm.texi (FINALIZE_PIC): Remove.
4536
4537 2005-07-08 Andrew Pinski <pinskia@physics.uc.edu>
4538
4539 PR tree-opt/22329
4540 * tree-ssa-propagate.c (fold_predicate_in): Convert the value
4541 to the correct type if we have a MODIFY_EXPR.
4542
4543 2005-07-08 Kazu Hirata <kazu@codesourcery.com>
4544
4545 PR tree-optimization/22360
4546 * tree.c (upper_bound_in_type): Fix calculations for casting
4547 to a non-wider signed type and casting a signed value to a
4548 wider unsigned type.
4549 (lower_bound_in_type): Fix calculations for casting to a
4550 non-wider signed type.
4551
4552 PR tree-optimization/20139
4553 * tree-cfg.c (remove_bb): Check in_ssa_p before calling
4554 release_defs.
4555 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call
4556 fold_cond_expr_cond.
4557 * tree-ssanames.c (release_defs): Assert in_ssa_p.
4558 * tree.c (upper_bound_in_type, lower_bound_in_type): Rewrite.
4559
4560 2005-07-08 Andrew Pinski <pinskia@physics.uc.edu>
4561
4562 PR tree-opt/22356
4563 * tree-complex.c (expand_complex_libcall): Produce
4564 REALPART_EXPR/IMAGPART_EXPR with the correct type.
4565
4566 2005-07-08 Kenneth Zadeck <zadeck@naturalbridge.com>
4567
4568 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
4569 bitmap_and_compl_into, bitmap_xor, bitmap_xor_into): Removed "a !=
4570 b" assert and inserted fastpath code for this case.
4571 (bitmap_ior): Removed "a != b" assert.
4572
4573 2005-07-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4574
4575 * config/m32r/linux.h (STARTFILE_SPEC): Support PIE.
4576 (ENDFILE_SPEC): Likewise.
4577 * config/m32r/m32r.h (ASM_SPEC): Likewise.
4578
4579 * config/m32r/m32r.c (m32r_output_function_epilogue): Care for
4580 a large stack frame at epilogue.
4581
4582 2005-07-08 David Billinghurst <David.Billinghurst@riotinto.com>
4583
4584 * final.c: Include sdbout.h when required.
4585
4586 2005-07-07 Geoffrey Keating <geoffk@apple.com>
4587
4588 * config.gcc (*-*-darwin*): Only one target-specific header file
4589 for generic darwin.
4590 (powerpc-*-darwin*): Add version-specific header files.
4591 * configure.in (gcc_AC_CHECK_DECLS): Add strverscmp.
4592 * config.in: Regenerate.
4593 * configure: Regenerate.
4594 * gcc.c: Include xregex.h.
4595 (version_compare_spec_function): New.
4596 (spec_function): Add version-compare.
4597 (replace_outfile_spec_function): Reformat comment.
4598 (compare_version_strings): New.
4599 * config/darwin-c.c (version_as_macro): New.
4600 (builtin_define): New.
4601 (darwin_cpp_builtins): New.
4602 * config/darwin-protos.h (darwin_cpp_builtins): New.
4603 * config/darwin.h (CPP_SPEC): Don't define APPLE_CC here.
4604 (LIB_SPEC): Make unconditional, update comment.
4605 (TARGET_C99_FUNCTIONS): Define.
4606 * config/darwin.opt: Sort.
4607 (mmacosx-version-min=): New.
4608 * config/darwin7.h: Delete.
4609 * config/darwin8.h: Delete.
4610 * config/i386/darwin.h (): Call darwin_cpp_builtins.
4611 * config/rs6000/darwin.h (): Call darwin_cpp_builtins.
4612 (TARGET_C99_FUNCTIONS): Define.
4613 * config/rs6000/darwin7.h: New.
4614 * config/rs6000/darwin8.h: New.
4615 * doc/invoke.texi (Darwin Options): Add -mmacosx-version-min=
4616 (-mmacosx-version-min): Document.
4617
4618 2005-07-07 Ian Lance Taylor <ian@airs.com>
4619
4620 * config/mips/mips.md (abs<mode>2) [GPR]: Remove.
4621
4622 2005-07-07 John David Anglin <dave.anglin@nrc-crc.gc.ca>
4623
4624 PR middle-end/22239
4625 * loop.c (loop_givs_rescan): Check that v->new_reg is a REG.
4626
4627 2005-07-07 Khem Raj <kraj@mvista.com>
4628
4629 * config/arm/arm.c (thumb_output_function_prologue): Calculate offset
4630 in bytes, not words.
4631
4632 2005-07-07 Paul Brook <paul@codesourcery.com>
4633
4634 * config/arm/arm.c (arm_pad_arg_upward): Compare return value of
4635 DEFAULT_FUNCTION_ARG_PADDING to upward.
4636
4637 2005-07-07 Richard Henderson <rth@redhat.com>
4638
4639 * function.c (locate_and_pad_parm): Record parameter alignment in
4640 stack_alignment_needed.
4641
4642 2005-07-07 David Edelsohn <edelsohn@gnu.org>
4643
4644 * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_SYNC_OP,
4645 UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC, UNSPEC_ISYNC): Delete.
4646 (UNSPECV_LL, UNSPECV_SC, UNSPECV_ATOMIC, UNSPECV_SYNC,
4647 UNSPECV_SYNC_OP, UNSPECV_CMPXCHG, UNSPECV_LWSYNC, UNSPECV_ISYNC): New.
4648 (define_attr "type"): Add isync, sync, load_l, store_c.
4649 * config/rs6000/sync.md (memory_barrier): Change to define_expand.
4650 Create scratch volatile MEM.
4651 (sync_internal): New. POWER mnemonic is dcs, not ics. Attribute
4652 sync.
4653 (load_locked_<mode>): New.
4654 (store_conditional_<mode>): New.
4655 (sync_compare_and_swap<mode>): Replace with splitter.
4656 (sync_lock_test_and_set<mode>): Replace with splitter.
4657 (sync_<fetchop><mode>): Change to unspec_volatile UNSPECV_SYNC_OP
4658 and UNSPECV_ISYNC.
4659 (isync): Change to unspec_volatile UNSPECV_ISYNC. POWER mnemonic
4660 is ics. Attribute isync.
4661 (lwsync): Change to unspec_volatile UNSPECV_LWSYNC. Attribute
4662 lwsync.
4663 * config/rs6000/rs6000.c (rs6000_emit_sync): Use UNSPEC_VOLATILE
4664 and UNSPECV_SYNC_OP.
4665 (emit_unlikely_jump): New.
4666 (emit_load_locked): New.
4667 (emit_store_conditional): New.
4668 (rs6000_split_compare_and_swap): New.
4669 (rs6000_split_lock_test_and_set): New.
4670 (is_dispatch_slot_restricted): Return 4 for TYPE_LOAD_L,
4671 TYPE_STORE_C, TYPE_ISYNC, TYPE_SYNC.
4672 * config/rs6000/rs6000-protos.h (rs6000_split_compare_and_swap,
4673 rs6000_split_lock_test_and_set): Declare.
4674 * config/rs6000/{40x.md,440.md,603.md,6xx.md,7450.md,7xx.md,8540.md,
4675 mpc.md,power4.md,power5.md,rios1.md,rios2.md,rs64.md): Add load_l,
4676 store_c, isync, sync.
4677
4678 2005-07-07 Kelley Cook <kcook@gcc.gnu.org>
4679
4680 * Makefile.in (echo_quoted_to_gtyp): New template for outputing
4681 filenames to gtyp-gen.h.
4682 (s-typ-gen): Use it in place of for loops.
4683
4684 2005-07-07 J"orn Rennecke <joern.rennecke@st.com>
4685
4686 * hooks.c (hook_bool_rtx_int_false): New function.
4687 * hooks.h (hook_bool_rtx_int_false): Declare.
4688 * target-def.h (TARGET_COMMUTATIVE_P): Define.
4689 (TARGET_INITIALIZER): Add TARGET_COMMUTATIVE_P.
4690 * target.h (struct gcc_target): Add commutative_p member.
4691 * targhooks.c (hook_bool_rtx_commutative_p): New function.
4692 * targhooks.h (hook_bool_rtx_commutative_p): Declare.
4693 * pa.c (TARGET_COMMUTATIVE_P): Redefine.
4694 (pa_commutative_p): New function.
4695 * jump.c (target.h): Include.
4696 (rtx_renumbered_equal_p): Use targetm.commutative_p.
4697 * doc/tm.texi: Document TARGET_COMMUTATIVE_P.
4698
4699 2005-07-07 Adrian Straetling <straetling@de.ibm.com>
4700
4701 * config/s390/s390-protos.h (s390_expand_clrmem): Delete.
4702 (s390_expand_setmem): New.
4703 * config/s390/s390.c: Likewise.
4704 (print_shift_count_operand): Truncate to 12 bits instead of 6.
4705 Adapt comments.
4706 * config/s390/s390.md: ("setmem<mode>"): Accept character as
4707 general_operand. Call new function "s390_expand_setmem".
4708 ("clrmem_long", "*clrmem_long"): Rewrite to ...
4709 ("setmem_long", "*setmem_long"): ... this.
4710
4711 2005-07-07 Adrian Straetling <straetling@de.ibm.com>
4712
4713 * config/s390/s390.c: (optimization_options): Enable
4714 TARGET_MVCLE at -Os.
4715 * doc/invoke.texi: Document changes in default behaviour.
4716 * config/s390/s390.opt: ("mvcle"): Fix typo: is "mmvcle".
4717
4718 2005-07-07 Adrian Straetling <straetling@de.ibm.com>
4719
4720 * expr.c: (set_storage_via_setmem): Convert opchar to mode
4721 defined by back-end.
4722
4723 2005-07-07 Jakub Jelinek <jakub@redhat.com>
4724
4725 * config/sparc/sparc.md (stack_protect_testsi): Put clobbers after
4726 all sets in the pattern.
4727 * config/rs6000/rs6000.md (stack_protect_testsi,
4728 stack_protect_testdi): Likewise.
4729
4730 2005-07-06 Jeff Law <law@redhat.com>
4731
4732 * tree-vrp.c (simplify_using_ranges): Kill.
4733 (vrp_finalize): Remove call to simplify_using_ranges.
4734 (simplify_stmt_using_ranges): New function extracted from
4735 simplify_using_ranges.
4736 (simplify_div_or_mod_using_ranges): Likewise.
4737 (simplify_abs_using_ranges): Likewise.
4738 (simplify_cond_using_ranges): New function.
4739 * tree-flow.h (simplify_stmt_using_ranges): Prototype.
4740 * tree-ssa-propagate.c (substitute_and_fold): Call
4741 simplify_stmt_using_ranges if we have range information.
4742
4743 2005-07-06 James E. Wilson <wilson@specifixinc.com>
4744
4745 * config/ia64/ia64.c (ia64_reorg): Check optimize before
4746 ia64_flag_schedule_isns2.
4747
4748 * config/ia64/ia64.c (ia64_expand_movxf_movrf): Don't word swap when
4749 reading/writing general registers.
4750 (ia64_function_arg): Revert 2005-06-18 change.
4751
4752 2005-07-06 John David Anglin <dave.anglin@nrc-crnc.gc.ca>
4753
4754 * pa.c (legitimize_pic_address): Use gcc_assert instead of abort.
4755 (legitimize_tls_address): Use gcc_unreachable instead of abort.
4756
4757 2005-07-06 Kaz Kojima <kkojima@gcc.gnu.org>
4758
4759 * function.c (expand_function_end): Revert part of 2005-06-27
4760 patch. Do sjlj_emit_function_exit_after after return_label.
4761
4762 2005-07-06 Kazu Hirata <kazu@codesourcery.com>
4763
4764 * doc/install.texi (--disable-libssp): New.
4765
4766 2005-07-06 Fariborz Jahanian <fjahanian@apple.com>
4767
4768 * doc/invoke.texi: Update -fforce-mem documentation.
4769 * dojump.c (compare_from_rtx,do_compare_rtx_and_jump): Remove
4770 code for -fforce-mem.
4771 * expmed.c: (store_bit_field,store_fixed_bit_field,
4772 extract_bit_field): Ditto.
4773 * expr.c: (convert_move): Ditto.
4774 * optabs.c: (expand_binop,expand_twoval_unop,expand_twoval_binop,
4775 expand_unop,emit_unop_insn,prepare_cmp_insn,emit_conditional_move,
4776 emit_conditional_add,expand_float,expand_fix): Ditto.
4777 * opts.c: (decode_options): Remove setting of flag_force_mem flag.
4778 (common_handle_option): Issue warning when -fforce-mem specified.
4779
4780 2005-07-06 Paul Brook <paul@codesourcery.com>
4781
4782 * aclocal.m4: Work around a bug in AC_PATH_PROGS when its last
4783 argument is empty.
4784 * configure: Regenerate.
4785
4786 2005-07-06 J"orn Rennecke <joern.rennecke@st.com>
4787
4788 * sh.c (final_prescan_insn): Undo bogus change from 2005-05-09.
4789
4790 2005-07-06 Daniel Berlin <dberlin@dberlin.org>
4791
4792 Fix PR tree-optimization/22319
4793 Fix PR tree-optimization/22140
4794 Fix PR tree-optimization/22310
4795
4796 * tree-ssa-structalias.c (do_structure_copy): Give up earlier on
4797 variable sized types.
4798 Use correct type for intermediate structure on *a = *b structure
4799 copies.
4800
4801 2005-07-06 Jakub Jelinek <jakub@redhat.com>
4802
4803 * config/rs6000/rs6000.h (RS6000_VARARGS_AREA, RS6000_VARARGS_SIZE):
4804 Remove.
4805 (STARTING_FRAME_OFFSET): Don't add RS6000_VARARGS_AREA.
4806 (machine_function): Move typedef to...
4807 * config/rs6000/rs6000.c (machine_function): ... here. Add
4808 varargs_save_offset field.
4809 (rs6000_stack_t): Remove varargs_size field.
4810 (setup_incoming_varargs): Allocate varargs save area using
4811 assign_stack_local, try to make it as small as possible.
4812 Save offset from virtual_stack_vars_rtx to the save area
4813 in cfun->machine->varargs_save_offset. Use UNITS_PER_FP_WORD
4814 instead of magic 8 when fp word byte size is used.
4815 (rs6000_va_start): Use cfun->machine->varargs_save_offset
4816 instead of -RS6000_VARARGS_SIZE.
4817 (rs6000_stack_info, debug_stack_info,
4818 rs6000_initial_elimination_offset): Remove all traces of
4819 varargs_size.
4820 * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Remove.
4821 * config/rs6000/darwin.h (STARTING_FRAME_OFFSET): Don't add
4822 RS6000_VARARGS_AREA.
4823
4824 2005-07-06 Zdenek Dvorak <dvorakz@suse.cz>
4825
4826 PR tree-optimization/21963
4827 * tree-ssa-loop-ivopts.c (get_computation_aff): Use
4828 constant_multiple_of in the same way get_computation_cost_at does.
4829
4830 2005-07-06 Jakub Jelinek <jakub@redhat.com>
4831
4832 * config/sparc/sparc.h (sparc_compare_emitted): New extern.
4833 * config/sparc/sparc.c (sparc_compare_emitted): New variable.
4834 (gen_compare_reg): If sparc_compare_emitted is set, clear it
4835 and return its previous value.
4836 (emit_v9_brxx_insn): Assert sparc_compare_emitted is NULL.
4837 * config/sparc/sparc.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
4838 constants.
4839 (stack_protect_set, stack_protect_test): New expanders.
4840 (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
4841 stack_protect_testdi): New insns.
4842 * config/sparc/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
4843 * config/sparc/linux64.h (TARGET_THREAD_SSP_OFFSET): Define.
4844
4845 2005-07-06 Jeff Law <law@redhat.com>
4846
4847 * tree-ssa-dce.c (cfg_altered): New global.
4848 (tree_dce_init): Initialize cfg_altered.
4849 (remove_dead_stmt): If we remove an edge in the CFG, then set
4850 CFG_ALTERED.
4851 (perform_tree_ssa_dce): If we altered the CFG, then invalidate
4852 the dominators.
4853
4854 2005-07-06 Kazu Hirata <kazu@codesourcery.com>
4855
4856 * Makefile.in (stamp-collect-ld): Use
4857 $(ORIGINAL_LD_FOR_TARGET) instead of $<. Don't remove
4858 ./collect-ld if it already exists.
4859 (stamp-nm): Use $(ORIGINAL_NM_FOR_TARGET) instead of $<.
4860 Don't remove ./nm if it already exists.
4861
4862 2005-07-05 Devang Patel <dpatel@apple.com>
4863
4864 * tree-vectorizer.h (struct _loop_vec_info): Remove loop_line_number.
4865 (LOOP_VINFO_LOC, LOOP_LOC): Remove.
4866 * tree-vectorizer.c (vect_loop_location): New.
4867 (vect_print_dump_info): Use vect_loop_location.
4868 (new_loop_vec_info): Do not set LOOP_VINFO_LOC.
4869 (vectorize_loops): Set vect_loop_location.
4870 * tree-vect-analyze.c (vect_analyze_offset_expr,
4871 vect_determin_vectorization_factor, vect_analyze_operations,
4872 vect_analyze_scalar_cycles, vect_analyze_data_ref_dependence,
4873 vect_analyze_data_ref_dependences, vect_compute_data_ref_alignment,
4874 vect_analyze_data_refs_alignment, vect_analyze_data_ref_access,
4875 vect_analyze_data_ref_accesses, vect_analyze_pointer_ref_access,
4876 vect_object_analysis, vect_analyze_data_refs, vect_mark_relevant,
4877 vect_stmt_relevant_p, vect_mark_stmts_to_be_vectorized,
4878 vect_can_advance_ivs_p, vect_get_loop_niters, vect_analyze_loop_form,
4879 vect_analyze_loop): Adjust vect_print_dump_info API.
4880 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
4881 vect_create_data_ref_ptr, vect_init_vector, vect_get_vec_def_for_operand,
4882 vect_finish_stmt_generation, vectorizable_assignment,
4883 vectorizable_operation, vectorizable_store, vectorizable_load,
4884 vectorizable_live_operation, vectorizable_condition, vect_transform_stmt,
4885 vect_update_ivs_after_vectorizer, vect_do_peeling_for_loop_bound,
4886 vect_gen_ninters_for_prolog_loop, vect_do_peeling_for_alignment,
4887 vect_transform_loop): Same.
4888 * tree-vectorizer.c (get_vectype_for_scalar_type, vect_is_simple_use,
4889 vect_is_simple_reduction, vect_is_simple_iv_evolution, vectorize_loops):
4890 Same.
4891
4892 2005-07-05 Randolph Chung <tausq@debian.org>
4893
4894 * configure.ac (hppa*-*-linux*: Check for a TLS capable gas.
4895 * configure: Regenerate.
4896 * config/pa/pa-protos.h (tls_symbolic_operand): Declare.
4897 (pa_tls_referenced_p): Declare.
4898 * config/pa/pa.c (legitimize_pic_address): Reject TLS operands.
4899 (gen_tls_tga, gen_tls_get_addr, hppa_tls_call): New.
4900 (legitimize_tls_address): New.
4901 (hppa_legitimize_address): Handle TLS addresses.
4902 (pa_tls_symbol_ref_1, pa_tls_referenced_p): New.
4903 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
4904 (emit_move_sequence): Handle TLS addresses.
4905 (pa_encode_section_info): Call default handler to handle common
4906 sections.
4907 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): New.
4908 (CONSTANT_ADDRESS_P): Reject TLS operands.
4909 (TARGET_HAVE_TLS) [HAVE_AS_TLS]: Define.
4910 * config/pa/pa.md (UNSPEC_TP, UNSPEC_TLSGD, UNSPEC_TLSLDM)
4911 (UNSPEC_TLSLDO, UNSPEC_TLSLDBASE, UNSPEC_TLSIE)
4912 (UNSPEC_TLSLE): Define new constants.
4913 (tgd_load, tld_load, tld_offset_load, tp_load, tie_load, tle_load): New.
4914 * config/pa/predicates.md (symbolic_operand): Reject TLS operands.
4915 (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand)
4916 (tie_symbolic_operand, tle_symbolic_operand): New
4917
4918 2005-07-06 Kelley Cook <kcook@gcc.gnu.org>
4919
4920 * aclocal.m4: Update macros for autoconf 2.59 style.
4921 * configure.ac: Likewise.
4922
4923 2005-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4924
4925 * pa.c (function_value): Handle small aggregates on 32-bit targets.
4926 (function_arg): Pass small aggregates in general registers on 32-bit
4927 targets.
4928 * som.h (MEMBER_TYPE_FORCES_BLK): Delete define.
4929
4930 2005-07-05 Andrew Pinski <pinskia@physics.uc.edu>
4931
4932 * Makefile.in (final.o): Fix dependencies.
4933
4934 2005-07-05 Joseph S. Myers <joseph@codesourcery.com>
4935
4936 PR c/22013
4937 PR c/22098
4938 * langhooks.h (struct lang_hooks): Add expr_to_decl.
4939 * langhooks.c (lhd_expr_to_decl): New.
4940 * langhooks-def.h (lhd_expr_to_decl, LANG_HOOKS_EXPR_TO_DECL):
4941 New.
4942 (LANG_HOOKS_INITIALIZER): Update.
4943 * tree.c (recompute_tree_invarant_for_addr_expr): Call
4944 expr_to_decl langhook.
4945 * c-tree.h (c_expr_to_decl): Declare.
4946 * c-typeck.c (c_expr_to_decl): New.
4947 (build_unary_op): Do not handle ADDR_EXPR of COMPOUND_LITERAL_EXPR
4948 specially.
4949 * c-objc-common.h (LANG_HOOKS_EXPR_TO_DECL): Define.
4950
4951 2005-07-05 Joseph S. Myers <joseph@codesourcery.com>
4952
4953 PR c/22308
4954 * c-decl.c (finish_struct): Also copy C_TYPE_FIELDS_READONLY,
4955 C_TYPE_FIELDS_VOLATILE and C_TYPE_VARIABLE_SIZE to type variants.
4956
4957 2005-07-05 Paolo Bonzini <bonzini@gnu.org>
4958
4959 * Makefile.in: Adjust dependencies.
4960 * tree-pass.h: Add new passes and passes formerly in tree-optimize.c.
4961 * basic-block.h (duplicate_computed_gotos): Remove, it is now static.
4962 * alias.c (rest_of_handle_cfg, pass_cfg): New.
4963 * bb-reorder.c (duplicate_computed_gotos): Make it static.
4964 * cfgexpand.c (tree_expand_cfg): Add code formerly at the beginning of
4965 rest_of_compilation.
4966
4967 * bb-reorder.c (gate_duplicate_computed_gotos,
4968 pass_duplicate_computed_gotos, gate_handle_reorder_blocks,
4969 rest_of_handle_reorder_blocks, pass_reorder_blocks,
4970 gate_handle_partition_blocks, rest_of_handle_partition_blocks,
4971 pass_partition_blocks): New.
4972 * bt-load.c (gate_handle_branch_target_load_optimize,
4973 rest_of_handle_branch_target_load_optimize,
4974 pass_branch_target_load_optimize): New.
4975 * cfgcleanup.c (rest_of_handle_jump, pass_jump, rest_of_handle_jump2,
4976 pass_jump2): New.
4977 * cfglayout.c (pass_insn_locators_initialize): New.
4978 * cfgrtl.c (pass_free_cfg): New.
4979 * combine.c (gate_handle_combine, rest_of_handle_combine,
4980 pass_combine): New.
4981 * cse.c (gate_handle_cse, rest_of_handle_cse, pass_cse,
4982 gate_handle_cse2, rest_of_handle_cse2, pass_cse2): New.
4983 * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes): New.
4984 * except.c (pass_set_nothrow_function_flags,
4985 pass_convert_to_eh_region_ranges, gate_handle_eh, rest_of_handle_eh,
4986 pass_rtl_eh): New.
4987 * final.c (pass_compute_alignments, rest_of_handle_final, pass_final,
4988 rest_of_handle_shorten_branches, pass_shorten_branches,
4989 rest_of_clean_state, pass_clean_state): New.
4990 * flow.c (pass_recompute_reg_usage, gate_remove_death_notes,
4991 rest_of_handle_remove_death_notes, pass_remove_death_notes,
4992 rest_of_handle_life, pass_life, rest_of_handle_flow2,
4993 pass_flow2): New.
4994 * function.c (pass_instantiate_virtual_regs, pass_init_function,
4995 rest_of_handle_check_leaf_regs, pass_leaf_regs): New.
4996 * gcse.c (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
4997 pass_jump_bypass, gate_handle_gcse, rest_of_handle_gcse,
4998 pass_gcse): New.
4999 * global.c (rest_of_handle_global_alloc, pass_global_alloc): New.
5000 * ifcvt.c (gate_handle_if_conversion, rest_of_handle_if_conversion,
5001 pass_rtl_ifcvt, gate_handle_if_after_combine,
5002 rest_of_handle_if_after_combine, pass_if_after_combine,
5003 gate_handle_if_after_reload, rest_of_handle_if_after_reload,
5004 pass_if_after_reload): New.
5005 * integrate.c (pass_initial_value_sets): New.
5006 * jump.c (pass_cleanup_barriers, purge_line_number_notes,
5007 pass_purge_lineno_notes): New.
5008 * mode-switching.c (rest_of_handle_mode_switching,
5009 pass_mode_switching): New.
5010 * local-alloc.c (rest_of_handle_local_alloc, pass_local_alloc): New.
5011 * loop-init.c (gate_handle_loop2, rest_of_handle_loop2,
5012 pass_loop2): New.
5013 * loop.c (gate_handle_loop_optimize, rest_of_handle_loop_optimize,
5014 pass_loop_optimize): New.
5015 * modulo-sched.c (gate_handle_sms, rest_of_handle_sms,
5016 pass_sms): New.
5017 * postreload-gcse.c (gate_handle_gcse2, rest_of_handle_gcse2,
5018 pass_gcse2): New.
5019 * postreload.c (gate_handle_postreload, rest_of_handle_postreload,
5020 pass_postreload_cse): New.
5021 * profile.c (gate_handle_profiling, pass_profiling,
5022 rest_of_handle_branch_prob, pass_branch_prob): New.
5023 * recog.c (pass pass_split_for_shorten_branches, gate_do_final_split,
5024 pass_split_before_regstack, gate_handle_split_before_regstack,
5025 gate_handle_peephole2, rest_of_handle_peephole2, pass_peephole2,
5026 rest_of_handle_split_all_insns, pass_split_all_insns): New.
5027 * reg-stack.c (gate_handle_stack_regs, rest_of_handle_stack_regs,
5028 pass_stack_regs): New.
5029 * regmove.c (gate_handle_regmove, rest_of_handle_regmove, pass_regmove,
5030 gate_handle_stack_adjustments, rest_of_handle_stack_adjustments,
5031 pass_stack_adjustments): New.
5032 * regrename.c (gate_handle_regrename, rest_of_handle_regrename,
5033 pass_regrename): New.
5034 * reorg.c (gate_handle_delay_slots, rest_of_handle_delay_slots,
5035 pass_delay_slots, gate_handle_machine_reorg,
5036 rest_of_handle_machine_reorg, pass_machine_reorg): New.
5037 * rtl.h (extern void purge_line_number_notes): New.
5038 * sched-rgn.c (gate_handle_sched, rest_of_handle_sched,
5039 gate_handle_sched2, rest_of_handle_sched2, pass_sched,
5040 pass_sched2): New.
5041 * tracer.c (gate_handle_tracer, rest_of_handle_tracer,
5042 pass_tracer): New.
5043 * value-prof.c (gate_handle_value_profile_transformations,
5044 rest_of_handle_value_profile_transformations,
5045 pass_value_profile_transformations): New.
5046 * var-tracking.c (gate_handle_var_tracking,
5047 pass_variable_tracking): New.
5048 * web.c (gate_handle_web, rest_of_handle_web, pass_web): New.
5049
5050 * passes.c (open_dump_file, close_dump_file, rest_of_handle_final,
5051 rest_of_handle_delay_slots, rest_of_handle_stack_regs,
5052 rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
5053 rest_of_handle_old_regalloc, rest_of_handle_regrename,
5054 rest_of_handle_reorder_blocks, rest_of_handle_partition_blocks,
5055 rest_of_handle_sms, rest_of_handle_sched, rest_of_handle_sched2,
5056 rest_of_handle_gcse2, rest_of_handle_regmove,
5057 rest_of_handle_tracer, rest_of_handle_if_conversion,
5058 rest_of_handle_if_after_combine, rest_of_handle_if_after_reload,
5059 rest_of_handle_web, rest_of_handle_branch_prob,
5060 rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
5061 rest_of_handle_jump_bypass, rest_of_handle_combine,
5062 rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
5063 rest_of_handle_gcse, rest_of_handle_loop_optimize,
5064 rest_of_handle_loop2, rest_of_handle_branch_target_load_optimize,
5065 rest_of_handle_mode_switching, rest_of_handle_jump,
5066 rest_of_handle_eh, rest_of_handle_stack_adjustments,
5067 rest_of_handle_flow2, rest_of_handle_jump2,
5068 rest_of_handle_peephole2, rest_of_handle_postreload,
5069 rest_of_handle_shorten_branches, rest_of_clean_state,
5070 rest_of_compilation): Remove.
5071
5072 * cgraphunit.c (ipa_passes): Moved from tree-optimize.c.
5073 * passes.c (dump_flags, in_gimple_form, all_passes,
5074 all_ipa_passes, all_lowering_passes, register_one_dump_file,
5075 register_dump_files, next_pass_1, last_verified, execute_todo,
5076 execute_one_pass, execute_pass_list, execute_ipa_pass_list): Moved
5077 from tree-optimize.c.
5078 (init_optimization_passes): Moved from tree-optimize.c,
5079 adding the RTL optimizations.
5080 * tree-dump.h (dump_info_p, dump_flag): Moved from tree.h.
5081 * tree-optimize.c (dump_flags, in_gimple_form, all_passes,
5082 all_ipa_passes, all_lowering_passes, register_one_dump_file,
5083 register_dump_files, next_pass_1, last_verified, execute_todo,
5084 execute_one_pass, execute_pass_list, execute_ipa_pass_list,
5085 init_tree_optimization_passes, ipa_passes): Delete.
5086 * tree-pass.h (enum tree_dump_index): Moved from tree.h, removing
5087 the RTL dumps.
5088 (TDF_*, get_dump_file_name, dump_enabled_p, dump_initialized_p,
5089 dump_begin, dump_end, dump_node, dump_switch_p, dump_flag_name): Moved
5090 from tree.h.
5091 (ipa_passes): Remove.
5092 (all_passes, all_ipa_passes, all_lowering_passes): Now extern.
5093 * tree.h (enum tree_dump_index, TDF_*, get_dump_file_name,
5094 dump_enabled_p, dump_initialized_p, dump_begin, dump_end, dump_node,
5095 dump_switch_p, dump_flag_name): Moved to tree-pass.h.
5096 (dump_info_p, dump_flag): Moved to tree-dump.h.
5097
5098 * Makefile.in: Adjust dependencies for tree-pretty-print.c,
5099 cgraph.c, opts.c.
5100 * passes.c (finish_optimization_passes): Use dump_begin
5101 and dump_end, TDI_end.
5102 (gate_rest_of_compilation): New.
5103 (pass_rest_of_compilation): Use it.
5104 (gate_postreload, pass_postreload): New.
5105 * toplev.c (general_init): Rename init_tree_optimization_passes.
5106 * toplev.h (init_tree_optimization_passes): Rename to
5107 init_optimizations_passes.
5108 * tree-dump.c (dump_flag): Make static.
5109 (dump_files): Remove RTL dumps.
5110 * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
5111 pass_cleanup_cfg, pass_free_cfg_annotations,
5112 pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
5113 pass_init_datastructures, pass_fixup_cfg): Make non-static.
5114 * tree-pretty-print.c: Include tree-pass.h.
5115 * cgraph.c: Include tree-dump.h.
5116
5117 2005-07-04 Daniel Berlin <dberlin@dberlin.org>
5118
5119 * tree-ssa-structalias.c (get_constraint_exp_from_ssa_var):
5120 Only fall back to saying it points to readonly memory if
5121 we can't do better.
5122
5123 2005-07-05 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5124
5125 * config/m32r/m32r-protos.h: Remove m32r_finalize_pic.
5126 * config/m32r/m32r.c (m32r_compute_frame_size,
5127 m32r_expand_prologue): Take current_function_profile into
5128 account whenever we reference
5129 current_function_uses_pic_offset_table.
5130 (m32r_finalize_pic): Remove.
5131 * config/m32r/m32r.h (FINALIZE_PIC): Likewise.
5132
5133 2005-07-05 Kazu Hirata <kazu@codesourcery.com>
5134
5135 * Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET)
5136 instead of $<. Don't remove ./as if it already exists.
5137
5138 2005-07-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5139
5140 PR target/21723
5141 * pa.md: Remove fcpy alternative from movhi and movqi patterns.
5142 * pa32-regs.h (HARD_REGNO_NREGS): Return two floating point registers
5143 for complex modes when generating code for PA 1.0.
5144 (VALID_FP_MODE_P): New macro.
5145 (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P. Use non-overlapping register
5146 sets for all general and floating point modes. Align wide floating
5147 point modes to even register boundaries to comply with architectural
5148 requirements.
5149 (CLASS_MAX_NREGS): Update to align with change to HARD_REGNO_NREGS.
5150 * pa64-regs.h (HARD_REGNO_NREGS): Update comment and formatting.
5151 (VALID_FP_MODE_P): New macro.
5152 (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P. Use non-overlapping register
5153 sets for all general and floating point modes. Align wide floating
5154 point modes to even register boundaries to comply with architectural
5155 requirements.
5156
5157 2005-07-04 Diego Novillo <dnovillo@redhat.com>
5158
5159 * tree-dump.c (dump_files): Initialize dump number for .cgraph
5160 to 0.
5161
5162 2005-07-04 Diego Novillo <dnovillo@redhat.com>
5163
5164 * tree-ssa-structalias.c: Don't include expr.h.
5165
5166 2005-07-04 Diego Novillo <dnovillo@redhat.com>
5167
5168 * tree-iterator.h (TSI_NEW_STMT, TSI_SAME_STMT): Fix
5169 comments.
5170
5171 2005-07-04 Daniel Berlin <dberlin@dberlin.org>
5172
5173 Fix PR tree-optimization/22279
5174
5175 * tree-ssa-structalias.c (offset_overlaps_with_access): Use
5176 correct operator.
5177
5178 2005-07-04 J"orn Rennecke <joern.rennecke@st.com>
5179
5180 * sh.c (output_ieee_ccmpeq): Replace "\\;" with "\n\t".
5181
5182 2005-07-03 Joseph S. Myers <joseph@codesourcery.com>
5183
5184 * bb-reorder.c, c-pch.c, c-pragma.c, c.opt, cfghooks.c, cfgloop.c,
5185 cfgrtl.c, cgraphunit.c, config/c4x/c4x.c, config/cris/cris.c,
5186 config/frv/frv.c, config/host-darwin.c, config/iq2000/iq2000.c,
5187 config/lynx.h, config/m68k/m68k.c, config/pa/pa.c, config/sh/sh.h,
5188 config/stormy16/stormy16.c, config/v850/v850.c,
5189 config/vax/netbsd-elf.h, coverage.c, dwarf2out.c, emit-rtl.c,
5190 except.c, gcc.c, tree-cfg.c, tree-eh.c, tree-ssa.c, xcoffout.c:
5191 Avoid "." or "\n" at end of diagnostics and capital letters at
5192 start of diagnostics.
5193 * combine.c, cse.c: Don't translate dump file output.
5194 * toplev.c (print_version): Only translate output if going to
5195 stderr.
5196
5197 2005-07-03 Kazu Hirata <kazu@codesourcery.com>
5198
5199 * c-decl.c, tree-object-size.c, tree-vectorizer.c,
5200 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Fix comment
5201 typos.
5202
5203 2005-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5204
5205 * pa.c (fix_range): Fix typo in comment.
5206
5207 2005-07-03 Kazu Hirata <kazu@codesourcery.com>
5208
5209 * tree-vrp.c (extract_range_from_assert): Replace
5210 fold (build (...)) with fold_build2.
5211
5212 2005-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5213
5214 * c-format.c (gcc_gfc_format_type, gcc_gfc_flag_pairs,
5215 gcc_gfc_char_table, init_dynamic_gfc_info): New.
5216 (format_types_orig, handle_format_attribute): Add support for
5217 format "gcc_gfc".
5218
5219 2005-07-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
5220
5221 * varasm.c (assemble_variable): Fix format specifier thinko.
5222
5223 2005-07-03 Ira Rosen <irar@il.ibm.com>
5224
5225 PR tree-optimization/22029 (and 22135)
5226 * tree-pretty-print.c (dump_generic_node): Check that the node is not
5227 a phi node before calling dump_vops.
5228
5229 2005-07-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
5230
5231 * tree-dump.h (dump_string_field): Declare.
5232 * tree-dump.c: Use it instead of dump_string.
5233 (dump_string_field): Make non-static.
5234
5235 2005-07-03 Kaz Kojima <kkojima@gcc.gnu.org>
5236
5237 * config/sh/sh.c (sh_output_mi_thunk): Initialize and clean
5238 up the minimal CFG stuff always when optimize > 0. Call
5239 split_all_insns_noflow in PIC case if needed.
5240
5241 2005-07-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
5242 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
5243
5244 PR c++/18279
5245 * c-decl.c (c_write_global_declarations): Dump contents of
5246 external scope to.
5247 * tree-dump.c (dequeue_and_dump): Dump abstract origin of a decl.
5248 <TRY_FINALLY_EXPR>, <RETURN_EXPR>, <CASE_LABEL_EXPR>, <LABEL_EXPR>,
5249 <GOTO_EXPR>, <SWITCH_EXPR>: Add.
5250 (dump_enabled_p): Return TRUE if PHASE is TDI_all and any dump
5251 is enabled.
5252
5253 2005-07-03 Joseph S. Myers <joseph@codesourcery.com>
5254
5255 * c-common.h (GCC_DIAG_STYLE): Define.
5256 * c-tree.h (GCC_DIAG_STYLE): Do not define. Change minimum GCC
5257 version for format checking to 4.1.
5258 * c-format.c: Include toplev.h after c-common.h.
5259 (enum format_type): Add gcc_tdiag_format_type.
5260 (gcc_tdiag_length_specs, gcc_tdiag_flag_pairs,
5261 gcc_tdiag_flag_specs, gcc_tdiag_char_table): New.
5262 (format_types_orig): Add gcc_tdiag.
5263 (init_dynamic_diag_info): Support gcc_tdiag formats.
5264 (handle_format_attribute): Likewise.
5265 * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Remove.
5266 (GCC_DIAG_STYLE): Default to __gcc_tdiag__. Change minimum GCC
5267 version for format checking to 4.1.
5268 (warning0, warning, error, pedwarn, sorry): Use
5269 ATTRIBUTE_GCC_DIAG.
5270 * config/rs6000/rs6000.c (altivec_expand_builtin), varasm.c
5271 (finish_aliases_1): Do not use %qE.
5272 * config/arm/arm.c, config/i386/i386.c, config/mmix/mmix.c,
5273 config/pdp11/pdp11.c, stor-layout.c, tree-eh.c, tree-ssa.c:
5274 Correct format bugs.
5275 * config/v850/v850-protos.h (v850_output_aligned_bss): Change size
5276 parameter to unsigned HOST_WIDE_INT.
5277 * config/v850/v850.c (v850_output_aligned_bss): Likewise.
5278
5279 2005-07-02 David Edelsohn <edelsohn@gnu.org>
5280
5281 PR middle-end/21742
5282 * expr.c (write_complex_part): Use adjust_address for MEM.
5283 (read_complex_part): Same.
5284
5285 2005-07-02 Daniel Berlin <dberlin@dberlin.org>
5286
5287 Fix PR tree-optimization/22280
5288
5289 * tree-sra.c (generate_element_init): Remove useless loop.
5290
5291 2005-07-02 Richard Henderson <rth@redhat.com>
5292
5293 * config/alpha/alpha.c (alpha_legitimize_address): Check for
5294 TLS_MODEL_NONE.
5295 (alpha_stdarg_optimize_hook): Use DECL_UID with va_list_vars.
5296
5297 2005-07-02 Andrew Pinski <pinskia@physics.uc.edu>
5298
5299 PR middle-end/14490
5300 * fold-const.c (fold_binary): Handle the return value of
5301 fold_to_nonsharp_ineq_using_bound if we get back the same operand back.
5302 Implement "X +- C1 CMP C2" folding to "X CMP C2 -+ C1".
5303
5304 2005-07-02 Jeff Law <law@redhat.com>
5305
5306 * tree-ssa-dom.c (find_equivalent_equality_comparison): Do not
5307 a eliminate type conversion which feeds an equality comparison
5308 if the original type or either operand in the comparison is a
5309 function pointer.
5310
5311 2005-07-02 Joseph S. Myers <joseph@codesourcery.com>
5312
5313 * c.opt, common.opt, config/bfin/bfin.opt, config/pa/pa.opt,
5314 config/rs6000/rs6000.opt, params.def: Remove "." from end of help
5315 texts.
5316 * config/avr/avr.c: Do not use '`' as left quote.
5317 * config/rs6000/rs6000.c, config/s390/s390.c, opts.c, tree.c:
5318 Remove "." from end of diagnostics. Make diagnostics start with
5319 lowercase letter.
5320
5321 2005-07-02 Zack Weinberg <zack@codesourcery.com>
5322 Joseph S. Myers <joseph@codesourcery.com>
5323
5324 * toplev.c (default_tree_printer): Handle setting location with
5325 '+' flag.
5326 * c-objc.common.c (c_tree_printer): Likewise.
5327 * c-format.c (gcc_diag_flag_specs): Add '+'.
5328 (gcc_cdiag_char_table): Allow '+' flag for tree formats.
5329 (format_types_orig): Allow '+' flag for gcc_diag and gcc_cdiag
5330 formats.
5331 * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c,
5332 config/arm/pe.c, config/i386/winnt.c, config/ia64/ia64.c,
5333 config/mcore/mcore.c, config/sh/symbian.c, config/sol2.c,
5334 config/v850/v850.c, function.c, stor-layout.c, toplev.c,
5335 tree-inline.c, tree-optimize.c, tree.c, varasm.c: Use '+' flag
5336 instead of %J or %H. Use 'q' flag for quoting. Avoid '.' at end
5337 of diagnostics. Use %q+D not %s for a decl. Do not pass excess
5338 format arguments where %J is used without %D.
5339
5340 2005-07-02 Jakub Jelinek <jakub@redhat.com>
5341
5342 * gcc.c (LINK_SSP_SPEC): Define.
5343 (link_ssp_spec): New variable.
5344 (LINK_COMMAND_SPEC): Add %(link_ssp).
5345 (static_specs): Add link_ssp_spec.
5346 * configure.ac (TARGET_LIBC_PROVIDES_SSP): New test.
5347 * configure: Rebuilt.
5348 * config.in: Rebuilt.
5349
5350 * config/rs6000/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
5351 * config/rs6000/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
5352 * config/i386/linux.h (TARGET_THREAD_SSP_OFFSET): Likewise.
5353 * config/i386/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
5354 * config/rs6000/rs6000.md (stack_protect_set, stack_protect_test):
5355 If TARGET_THREAD_SSP_OFFSET is defined, use -0x7010(13) resp.
5356 -0x7008(2) instead of reading __stack_chk_guard variable.
5357 * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): Change
5358 number.
5359 (UNSPEC_SP_TLS_SET, UNSPEC_SP_TLS_TEST): New constants.
5360 (stack_protect_set, stack_protect_test): Use *_tls* patterns
5361 if TARGET_THREAD_SSP_OFFSET is defined.
5362 (stack_tls_protect_set_si, stack_tls_protect_set_di,
5363 stack_tls_protect_test_si, stack_tls_protect_test_di): New insns.
5364
5365 Revert:
5366 2005-06-27 Richard Henderson <rth@redhat.com>
5367 * libgcc-std.ver (GCC_4.1.0): New.
5368 * libgcc.h (__stack_chk_guard): Declare.
5369 (__stack_chk_fail, __stack_chk_fail_local): Declare.
5370 * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
5371 * mklibgcc.in (lib2funcs): Add them.
5372
5373 2005-07-01 Richard Henderson <rth@redhat.com>
5374
5375 * config/i386/linux-unwind.h (x86_64_fallback_frame_state): Cast to
5376 void * before struct sigcontext *.
5377 (x86_fallback_frame_state): Likewise.
5378
5379 2005-07-01 James E. Wilson <wilson@specifixinc.com>
5380
5381 * doc/invoke.texi (-funit-at-a-time): Correct grammar in second bullet.
5382
5383 2005-07-01 Andrew Pinski <pinskia@physics.uc.edu>
5384
5385 PR tree-opt/22269
5386 * tree-ssa-reassoc.c (should_transpose): Fix which operand
5387 we check for SSA_NAME for.
5388
5389 2005-07-01 Daniel Berlin <dberlin@dberlin.org>
5390
5391 Fix PR tree-optimization/22071
5392
5393 * tree-ssa-structalias.c (offset_overlaps_with_access): New
5394 function.
5395 (get_constraint_for_component_ref): Use it.
5396
5397 2005-07-01 Andrew Pinski <pinskia@physics.uc.edu>
5398
5399 PR other/22264
5400 * diagnostic.c (diagnostic_report_current_module): Use pp_newline to
5401 print out the last new line.
5402
5403 2005-07-01 Hans-Peter Nilsson <hp@axis.se>
5404
5405 * config/cris/cris.md (CRIS_CC0_REGNUM): New constant.
5406 Swap numbers for CRIS_AP_REGNUM and CRIS_MOF_REGNUM.
5407 * config/cris/cris.c (cris_conditional_register_usage): Adjust
5408 reg_names[CRIS_CC0_REGNUM] for early CRIS versions.
5409 (cris_print_operand) <case REG>: Handle CRIS_CC0_REGNUM.
5410 (cris_md_asm_clobbers): Clobber CRIS_CC0_REGNUM for all asms.
5411 * config/cris/cris.h (CRIS_CANONICAL_CC0_REGNUM): New macro.
5412 (enum reg_class): New member CC0_REGS.
5413 (REG_CLASS_FROM_LETTER): Add 'c' for CC0_REGS.
5414 (FIRST_PSEUDO_REGISTER, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
5415 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, REG_CLASS_NAMES)
5416 (CRIS_SPECIAL_REGS_CONTENTS, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
5417 (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
5418 Adjust for register now described.
5419
5420 2005-07-01 Jakub Jelinek <jakub@redhat.com>
5421
5422 PR target/22262
5423 * config/i386/i386.md (stack_protect_test_si,
5424 stack_protect_test_di): Add earlyclobber for scratch 3.
5425 * config/rs6000/rs6000.md (stack_protect_testsi,
5426 stack_protect_testdi): Add earlyclobber for scratch 3,
5427 remove earlyclobber from scratch 4.
5428
5429 Older entries for 2005 can be found in ChangeLog-2005.
This page took 0.285215 seconds and 5 git commands to generate.