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