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