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