1 2006-10-04 Richard Henderson <rth@redhat.com>
2 Jakub Jelinek <jakub@redhat.com>
4 * Makefile.in (libgcc.mk, LIBGCC_DEPS): Add emutls.c.
5 * builtin-types.def (BT_WORD): Make unsigned.
6 (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
7 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
8 (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
9 * c-decl.c (grokdeclarator): Don't error if !have_tls.
10 * c-parser.c (c_parser_omp_threadprivate): Likewise.
11 * cgraph.c (decide_is_variable_needed): Look at force_output.
12 Recurse for emulated tls.
13 * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Remove
14 checks redundant with decide_is_variable_needed.
15 (cgraph_build_static_cdtor): Do cgraph_varpool_assemble_pending_decls.
16 * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
18 * expr.c (emutls_var_address): New.
19 (expand_expr_real_1): Expand emulated tls.
20 (expand_expr_addr_expr_1): Likewise.
21 * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
22 * output.h (emutls_finish): Declare.
23 * toplev.c (compile_file): Call it.
24 * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
25 address before wrapping in CONST.
26 * varasm.c (emutls_htab, emutls_object_type): New.
27 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
28 (get_emutls_object_name, get_emutls_object_type): New.
29 (get_emutls_init_templ_addr, emutls_decl): New.
30 (emutls_common_1, emutls_finish): New.
31 (assemble_variable): When emulating tls, swap decls; generate
32 constructor for the emutls objects.
33 (do_assemble_alias): When emulating tls, swap decl and target name.
34 (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
37 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
38 tls_object for real tls.
40 2006-10-04 Zack Weinberg <zackw@panix.com>
42 Fix bug in constraint-check generator, reported by Rask Ingemann
44 * genpreds.c (add_constraint): Don't remove anything from the
46 (write_tm_constrs_h): Detect whether "op" argument is used, and
47 mark it ARG_UNUSED if it isn't.
48 (write_insn_const_int_ok_for_constraint): Skip the part of the
49 expression that would test whether "op" (which is not available
52 2006-10-04 Ryan Mansfield <rmansfield@qnx.com>
55 * doc/invoke.texi (fdiagnostics-show-option): Fix typos.
57 2006-10-03 Geoffrey Keating <geoffk@apple.com>
59 * config/i386/darwin-libgcc.10.5.ver: Update to symbol list for
60 current Leopard versions.
61 * config/rs6000/darwin-libgcc.10.5.ver: Likewise.
63 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
65 * doc/install.texi: Fix typos.
67 2006-10-03 Eric Botcazou <ebotcazou@libertysurf.fr>
69 * builtins.c (expand_builtin_return_addr): Deal with FRAME_ADDR_RTX.
70 * doc/tm.texi (Basic Stack Layout): Document FRAME_ADDR_RTX.
71 * config/sparc/sparc.h (FRAME_ADDR_RTX): Define.
73 2006-10-02 Jack Howarth <howarth@bromo.med.uc.edu>
75 * unwind-dw2-fde-darwin.c (getsectdatafromheader_64): Fix first
76 arg to be struct mach_header_64* instead.
78 2006-10-02 Jakub Jelinek <jakub@redhat.com>
81 * gimplify.c (gimplify_self_mod_expr): Run inner expression's post
82 side effects after the outer expression's post side effects.
84 2006-10-01 Sandra Loosemore <sandra@codesourcery.com>
86 * tree.h (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET): Fix
87 comments to reflect actual behavior and relationship between
88 DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET, and DECL_OFFSET_ALIGN.
90 * doc/c-tree.texi (Working with declarations): Fix documentation
91 of FIELD_DECL likewise.
93 2006-10-01 Ryan Mansfield <rmansfield@qnx.com>
96 * doc/extend.texi: Add used variable attribute description.
98 2006-09-30 Joseph S. Myers <joseph@codesourcery.com>
101 * c.opt (Woverride-init): New.
102 * c-opts.c (c_common_post_options): Default warn_override_init to
104 * c-typeck.c (add_pending_init, output_init_element): Warn for
105 overriding initializers without side effects.
106 * doc/invoke.texi (-Woverride-init): Document.
109 2006-09-30 Eric Botcazou <ebotcazou@libertysurf.fr>
111 PR rtl-optimization/28096
112 * ifcvt.c (check_cond_move_block): Return FALSE if the source of an
113 assignment has already been used as a destination earlier in the block.
115 2006-09-29 Eric Botcazou <ebotcazou@adacore.com>
117 * builtins.c (expand_builtin_setjmp): Delete.
118 (expand_builtin) <BUILT_IN_SETJMP>: Mark as unreachable.
119 <BUILT_IN_SETJMP_SETUP>: New case.
120 <BUILT_IN_SETJMP_DISPATCHER>: Likewise.
121 <BUILT_IN_SETJMP_RECEIVER>: Likewise.
122 * builtins.def (BUILT_IN_SETJMP_SETUP): New built-in stub.
123 (BUILT_IN_SETJMP_DISPATCHER): Likewise.
124 (BUILT_IN_SETJMP_RECEIVER): Likewise.
125 * gimple-low.c (struct lower_data): New field calls_builtin_setjmp.
126 (lower_function_body): Initialize it to false. If it is set to true
127 at the end of the processing, emit the setjmp dispatcher.
128 (lower_stmt) <CALL_EXPR>: Invoke lower_builtin_setjmp if the callee
129 is __builtin_setjmp and set calls_builtin_setjmp to true as well.
130 <MODIFY_EXPR>: Fall through to above case if there is a CALL_EXPR
131 on the rhs of the assignment.
132 (lower_builtin_setjmp): New function.
133 * tree.c (build_common_builtin_nodes): Build BUILT_IN_SETJMP_SETUP,
134 BUILT_IN_SETJMP_DISPATCHER and BUILT_IN_SETJMP_RECEIVER nodes.
135 * tree-cfg.c (make_exit_edges) <CALL_EXPR>: Use specific predicate
136 to detect calls that can go to non-local labels. Use specific
137 helper to create the abnormal edges associated with them.
138 <MODIFY_EXPR>: Likewise.
139 (make_abnormal_goto_edges): New function extracted from...
140 (make_goto_expr_edges): ...here. Call it for computed gotos.
141 (simple_goto_p): Minor tweak.
142 (tree_can_make_abnormal_goto): New predicate.
143 (tree_redirect_edge_and_branch): Return zero on all abnormal edges.
144 (tree_purge_dead_abnormal_call_edges): New function.
145 * tree-flow.h (tree_can_make_abnormal_goto): Declare.
146 (tree_purge_dead_abnormal_call_edges): Likewise.
147 (make_abnormal_goto_edges): Likewise.
148 * tree-inline.c (expand_call_inline): Simplify statement frobbing.
149 Purge all dead abnormal edges if the call was in the last statement.
150 * tree-optimize.c (has_abnormal_outgoing_edge_p): New predicate.
151 (execute_fixup_cfg): If there are non-local labels in the function,
152 scan the basic blocks and split them at calls that can go to non-local
153 labels or add missing abnormal call edges. Write down the CFG in the
155 (pass_fixup_cfg): Remove TODO_dump_func flag.
156 * unwind-sjlj.c: Poison setjmp.
157 * doc/install.texi (enable-sjlj-exceptions): Use more general wording.
158 * doc/tm.texi (DWARF2_UNWIND_INFO): Likewise.
159 (TARGET_UNWIND_TABLES_DEFAULT): Fix typo.
160 (DONT_USE_BUILTIN_SETJMP): Document it.
162 2006-09-28 Geoffrey Keating <geoffk@apple.com>
165 * config/rs6000/rs6000.h [IN_LIBGCC2] (TARGET_POWERPC64): Define
166 to 1 when __ppc64__ is defined.
167 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Add ppc64-fp.c and
169 * config/rs6000/ppc64-fp.c: Also compile when __ppc64__ is defined.
171 2006-09-28 Steve Ellcey <sje@cup.hp.com>
173 * config/ia64/t-hpux (LIB2FUNCS_EXTRA): Remove unwind-hpux.c.
174 * config/ia64/unwind-hpux.c: Delete.
176 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
178 * gimplify.c (gimplify_init_ctor_preeval): Call maybe_with_size_expr
179 on the element before gimplifying it, instead of punting if it is of
182 2006-09-28 Zdenek Dvorak <dvorakz@suse.cz>
184 * doc/loop.texi: New file.
185 * doc/gccint.texi: Reference loop.texi.
186 * Makefile.in (loop.texi): Add.
188 2006-09-27 Geoffrey Keating <geoffk@apple.com>
190 * config/darwin.h (ENABLE_EXECUTE_STACK): New, use getpagesize not
192 * config/rs6000/darwin.h (ENABLE_EXECUTE_STACK): Remove.
193 * config/i386/darwin.h (ENABLE_EXECUTE_STACK): Remove.
195 2006-09-28 Kaz Kojima <kkojima@gcc.gnu.org>
197 * config/sh/sh.md (divsi_inv_m0): Remove unused variable.
199 2006-09-27 Steven G. Kargl <kargl@gcc.gnu.org>
201 * doc/install.texi: Document required versions of GMP and MPFR.
203 2006-09-27 Paul Brook <paul@codesourcery.com>
206 * config/arm/arm.md (arith_adjacentmem): Handle large offsets.
208 2006-09-27 Richard Sandiford <richard@codesourcery.com>
210 * reload1.c (alter_reg): Require the alignment of the stack slot to
211 be at least reg_max_ref_width bytes.
212 (scan_paradoxical_subregs): Record the largest width in
215 2006-09-26 Jakub Jelinek <jakub@redhat.com>
219 * tree-nested.c (struct nesting_info): Added static_chain_added.
220 (convert_call_expr): Set static_chain_added when adding static
221 chain. Handle OMP_PARALLEL and OMP_SECTION.
223 2006-09-25 Matthias Klose <doko@debian.org>
225 * doc/invoke.texi: Add missing full stop.
227 2006-09-25 Richard Henderson <rth@redhat.com>
229 * cgraph.c (dump_cgraph_varpool_node): Don't crash if called
230 before cgraph_function_flags_ready.
232 2006-09-24 Zdenek Dvorak <dvorakz@suse.cz>
233 Adam Nemet <anemet@caviumnetworks.com>
235 * tree-ssa-loop-ivopts.c (aff_combination_convert,
236 determine_common_wider_type): New functions.
237 (get_computation_aff): Use them to simplify arithmetic between
238 UBASE and CBASE if they are shortened from the same type.
240 2006-09-24 Kazu Hirata <kazu@codesourcery.com>
243 * config/m68k/m68k.md (negsf2, negdf2, negxf2): Use
244 -2147483647 - 1 instead of 0x80000000.
246 2006-09-23 Revital1 Eres <ERES@il.ibm.com>
248 * flags.h (HONOR_NANS): Fix typo in comment.
250 2006-09-23 Uros Bizjak <uros@kss-loka.si>
252 * config/i386/driver-i386.c (host_detect_local_cpu): Add prototype.
254 2006-09-23 Jakub Jelinek <jakub@redhat.com>
258 * tree.c (merge_attributes, attribute_list_contained): If both
259 TREE_VALUEs are TREE_LISTs, use simple_cst_list_equal instead of
261 * c-typeck.c (comptypes_internal): Don't consider aggregates
262 in different TUs as compatible if there one set of attributes is
263 not a subset of the other type's attributes.
264 (composite_type): Try harder not to create a new aggregate type.
266 2006-09-22 Geoffrey Keating <geoffk@apple.com>
268 * config/i386/driver-i386.c: Always define host_detect_local_cpu.
269 * config/i386/i386.h: Define EXTRA_SPEC_FUNCTIONS on any i386
270 or x86_64 host. Define HAVE_LOCAL_CPU_DETECT.
271 (CC1_CPU_SPEC): Make conditional on HAVE_LOCAL_CPU_DETECT rather
272 than replicating condition above.
273 * config.host (i[34567]86-*-*): Always use driver-i386.o.
275 * config/darwin.h (LINK_SYSROOT_SPEC): New.
276 (LINK_SPEC): If TARGET_SYSTEM_ROOT is defined, pass it to
277 the linker by default.
279 2006-09-22 Mike Stump <mrs@apple.com>
281 * config/rs6000/darwin.h (PROFILE_HOOK): Reassociate comment with
284 2006-09-22 Richard Guenther <rguenther@suse.de>
287 * cfgexpand.c (stack_var_size_cmp): Use DECL_UID to make
288 sort of stack variables stable.
290 2006-09-22 Peter Bergner <bergner@vnet.ibm.com>
293 * explow.c (force_reg): Set REG_POINTER flag according to
296 2006-09-22 Zdenek Dvorak <dvorakz@suse.cz>
298 PR tree-optimization/28888
299 * tree-if-conv.c (combine_blocks): Rewritten.
300 * tree-cfg.c (tree_verify_flow_info): Check that edges with
301 EDGE_TRUE/FALSE_VALUE follow COND_EXPR.
303 2006-09-22 Jakub Jelinek <jakub@redhat.com>
305 * tree-ssa-propagate.c (set_rhs): Copy EXPR_LOCATION if
308 2006-09-21 Richard Sandiford <richard@codesourcery.com>
310 * varasm.c (copy_constant): Fix reversed gcc_assert check.
312 2006-09-21 Janis Johnson <janis187@us.ibm.com>
314 * ginclude/decfloat.h (DEC*_DEN): Define using the correct builtins.
316 2006-09-21 Roger Sayle <roger@eyesopen.com>
319 * dwarf2out.c (dwarf2out_begin_prologue): Initialise the current label,
320 dw_fde_current_label, to be the start of the function, i.e. the same
321 value as dw_fde_begin.
323 2006-09-20 Richard Sandiford <richard@codesourcery.com>
325 * config/mips/mips.c (CODE_FOR_mips_abs_ps): Delete.
326 * config/mips/mips.md (UNSPEC_ABS_PS): New constant.
327 (UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2)
328 (UNSPEC_SINGLE_CC, UNSPEC_SCC): Bump values by 1.
329 (*nmadd<mode>, *nmadd<mode>_fastmath): Require !HONOR_NANS.
330 (*nmsub<mode>, *nmsub<mode>_fastmath): Likewise.
331 (abs<mode>2, neg<mode>2): Likewise.
332 * config/mips/mips-ps-3d.md (mips_abs_ps): New define_expand.
333 (*mips_abs_ps): New define_insn.
335 2006-09-20 Josh Conner <jconner@apple.com>
338 * calls.c (expand_call): Allow reuse of structure return stack
341 2006-09-20 Paul Brook <paul@codesourcery.com>
343 * config/arm/unwind-arm.c (selfrel_offset31): Clear top bit for
346 2006-09-20 Janis Johnson <janis187@us.ibm.com>
348 * doc/extend.texi (Decimal Float): Update for latest draft TR,
349 clean up terminology.
351 2006-09-20 Steve Ellcey <sje@cup.hp.com>
354 * ifcvt.c (dead_or_predicable): Don't predicate then blocks
355 with tablejumps in them.
357 2006-09-20 Jakub Jelinek <jakub@redhat.com>
360 * c-omp.c (c_finish_omp_atomic): If ADDR is not simple enough,
361 wrap it into TARGET_EXPR.
363 2006-09-20 Eric Christopher <echristo@apple.com>
365 * config/i386/i386.c (x86_fisttp): Remove.
366 * config/i386/i386.h (x86_fisttp): Ditto.
367 (TARGET_FISTTP): Ditto.
369 2006-09-19 Eric Christopher <echristo@apple.com>
371 * doc/tm.texi (OBJC_JBLEN): Describe.
372 * config/i386/darwin.h (OBJC_JBLEN): Define.
373 * config/rs6000/darwin.h: Ditto.
375 2006-09-19 Steven Bosscher <steven@gcc.gnu.org>
377 PR rtl-optimization/21299
378 * reload1.c (reload): Purge invalid ASMs in the final pass.
380 2006-09-19 Steve Ellcey <sje@cup.hp.com>
383 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow function
384 pointers as legitimate constants.
386 2006-09-19 Paul Brook <paul@codesourcery.com>
389 * config/arm/arm.c (arm_unwind_emit_set): Handle reg = sp + const.
391 2006-09-17 Zdenek Dvorak <dvorakz@suse.cz>
393 PR tree-optimization/28887
394 * tree-ssa-loop-prefetch.c (analyze_ref): Strip nonaddressable
395 component parts from the reference.
396 (gather_memory_references_ref): Record the reference without the
397 nonaddressable component parts.
399 2006-09-17 Steven Bosscher <steven@gcc.gnu.org>
402 * c-opts.c (c_common_handle_option): Ignore the -std options
403 if the input language is assembly.
405 2006-09-17 Ira Rosen <irar@il.ibm.com>
408 * tree-data-ref.c (ptr_decl_may_alias_p): Look for the name memory
410 (ptr_ptr_may_alias_p): Likewise.
411 (record_record_differ_p): New function.
412 (base_object_differ_p): Call record_record_differ_p.
414 2006-09-16 Andrew Pinski <pinskia@physics.uc.edu>
417 * tree-ssa-propagate.c (set_rhs): Reject MODIFY_EXPR right
418 away for the expr argument.
420 2006-09-16 Steven Bosscher <steven@gcc.gnu.org>
423 * tree-vectorizer.c (vectorize_loops): Clear vect_loop_location
424 before using it for dumping after vectorizing loops.
426 2006-09-16 Andrew Pinski <pinskia@physics.uc.edu>
427 Jack Howarth <howarth@bromo.med.uc.edu>
430 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_recurse)
431 skip on error_mark_node.
432 (rs6000_darwin64_record_arg_recurse): Likewise.
434 2006-09-16 Steven Bosscher <steven@gcc.gnu.org>
436 * rtl.h (LABEL_OUTSIDE_LOOP_P): Remove.
437 * doc/rtl.texi: Remove related documentation.
439 2006-09-16 Bernd Schmidt <bernd.schmidt@analog.com>
441 * loop-doloop.c (doloop_optimize): Remove bogus arg from debugging
444 2006-09-15 Jim Wilson <wilson@specifix.com>
446 * config/ia64/ia64.c (ia64_legitimate_constant_p, cast CONST):
447 Handle symbol offsets same as they are handled in ia64_expand_move
450 2006-09-16 Andreas Tobler <a.tobler@schweiz.org>
452 * loop-doloop.c (doloop_optimize): Change type of max_cost to int.
453 Add forgotten parameter to the fprintf call.
455 2006-09-15 Steve Ellcey <sje@cup.hp.com>
457 * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Add define.
459 2006-09-15 Uros Bizjak <uros@kss-loka.si>
461 * doc/contrib.texi: Add my entry.
463 2006-09-15 Nick Clifton <nickc@redhat.com>
465 * doc/md.texi (Processor pipeline description): Fix typo in
466 example of how to use the absence_set directive and reword the
467 description to make it slightly easier to read.
469 2006-09-15 Bernd Schmidt <bernd.schmidt@analog.com>
471 * params.def (PARAM_MAX_ITERATIONS_COMPUTATION_COST): New.
472 * loop-doloop.c (doloop_optimize): Use it to limit costs of
473 expanding the number of iterations.
474 * config/bfin/bfin.c (bfin_rtx_costs): Handle UDIV, UMOD.
476 * cfgrtl.c (emit_insn_at_entry): New function.
477 * rtl.h (emit_insn_at_entry): Declare it.
478 * integrate.c (emit_initial_value_sets): Use it.
480 * cfgrtl.c (emit_insn_at_entry): Use gcc_assert, not abort.
482 * config/bfin/bfin.c (struct loop_info): New members block_bitmap and
484 (struct loop_work and related VEC declarations): Delete.
485 (bfin_dump_loops): Print out new member bad.
486 (bfin_bb_in_loop): Use plain bitmap test. Don't recurse.
487 (bfin_scan_loop): Don't recurse.
488 (bfin_optimize_loop): Don't use a loop depth of -1 to indicate bad
489 loops. No longer need to update outer loops if the current one is
490 found bad. Move some validitiy checks to bfin_discover_loop.
491 (bfin_discover_loop): New function, mostly split from bfin_reorg_loops,
492 but changed not to check for nesting. Also changed to use the new bad
494 (bfin_reorg_loops): Use bfin_discover_loop to find single loops one at a
495 time. Use bitmap based test to discover loop nesting.
497 2006-09-15 Kazu Hirata <kazu@codesourcery.com>
499 * doc/tm.texi (TARGET_FUNCTION_VALUE): Put @deftypefn all in
502 2006-09-14 Richard Guenther <rguenther@suse.de>
503 Kazu Hirata <kazu@codesourcery.com>
506 * doc/tm.texi (TARGET_FUNCTION_VALUE): Document.
507 (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE): Deprecate.
508 Replace mentions of FUNCTION_VALUE and FUNCTION_OUTGOING_VALUE
509 with TARGET_FUNCTION_VALUE.
511 2006-09-14 Anatoly Sokolov <aesok@post.ru>
514 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Define.
516 2006-09-13 Aldy Hernandez <aldyh@redhat.com>
518 * doc/tree-ssa.texi (Jumps): RESULT_DECL can also be an operand
521 2006-09-13 Andrew Pinski <pinskia@physics.uc.edu>
524 * dwarf2out.c (loc_descriptor_from_tree_1): Handle
527 2006-09-13 Andreas Krebbel <krebbel1@de.ibm.com>
529 * basic_block.h (bb_has_eh_pred): Fix comment.
531 2006-09-13 Andreas Krebbel <krebbel1@de.ibm.com>
533 * flow.c (calculate_global_regs_live): Invalidate eh registers
534 on eh edges. Renamed invalidated_by_call to invalidated_by_eh_edge.
535 (propagate_block): Handle eh registers as if they were set at basic
537 * except.c (dw2_build_landing_pads): Don't emit clobbers for eh
539 * global.c (global_conflicts): Make eh registers to conflict with
540 pseudos live at basic block begin.
541 * basic_block.h (bb_has_eh_pred): New function.
543 2006-09-13 Richard Sandiford <richard@codesourcery.com>
545 PR rtl-optimization/28982
546 * reload.c (find_reloads_address_1): Use RELOAD_OTHER for the
547 index of a PRE_MODIFY or POST_MODIFY address.
548 * reload1.c (inc_for_reload): Use find_replacement on the original
549 base and index registers.
551 2006-09-12 H.J. Lu <hongjiu.lu@intel.com>
553 * doc/invoke.texi (mpreferred-stack-boundary): Remove exception
554 for -Os. Update __m128 alignment requirement.
556 2006-09-13 Jan Hubicka <jh@suse.cz>
558 * cfganal.c (compute_dominance_frontiers_1): Don't be quadratic.
560 2006-09-12 Eric Botcazou <ebotcazou@libertysurf.fr>
562 PR rtl-optimization/28243
563 * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
564 the insn to which the note was originally attached.
566 2006-09-12 Andrew Pinski <pinskia@physics.uc.edu>
567 Roger Sayle <roger@eyesopen.com>
569 * dwarf2out.c (file_table_last_lookup): Move this GC'd declaration
570 outside of #ifdef DWARF2_DEBUGGING_INFO to fix bootstrap failure
571 on platforms that don't use dwarf for debug info.
573 2006-09-12 Jason Merrill <jason@redhat.com>
576 * builtins.c (expand_builtin_setjmp_receiver): Clobber
577 hard_frame_pointer_rtx after using it to update the frame pointer.
579 2006-09-12 Roger Sayle <roger@eyesopen.com>
581 * target-def.h (TARGET_ASM_OPEN_PAREN): Guard with an #ifndef.
582 (TARGET_ASM_CLOSE_PAREN): Likewise.
583 * config/alpha/osf5.h (TARGET_ASM_OPEN_PAREN): Define.
584 (TARGET_ASM_CLOSE_PAREN): Likewise.
586 2006-09-12 Roger Sayle <roger@eyesopen.com>
589 * config/alpha/alpha.c (alpha_start_function): Don't emit stack
590 frame information for frames larger than 512 Kbytes on Tru64 when
591 using the native assembler.
593 2006-09-12 Roger Sayle <roger@eyesopen.com>
597 * cselib.c (cselib_hash_rtx): Avoid hashing on the address of labels
598 and symbols. Instead use the implementation from cse.c's hash_rtx.
600 2006-09-12 Jan Hubicka <jh@suse.cz>
602 PR rtl-optimization/28071
603 * tree-vect-transform.c (vect_create_data_ref_ptr): Kill cast.
604 (vect_transform_loop): Likewise.
605 * tree-vectorizer.c (new_loop_vec_info): Likewise.
606 (new_loop_vec_info): Likewise.
607 (destroy_loop_vec_info): Likewise.
608 * tree-dfa.c (create_var_ann): Use GCC_CNEW.
609 (create_stmt_ann): Likewise.
610 (create_tree_ann): Rename to ...
611 (create_tree_common_ann): ... this one; allocate only the common part
613 * tree-vn.c (set_value_handle): Use get_tree_common_ann.
614 (get_value_handle): Likewise.
615 * tree-ssa-pre.c (phi_translate): Delay annotation allocation for
617 * tree-vectorizer.h (set_stmt_info): Take stmt annotation.
618 (vinfo_for_stmt): Use stmt annotations.
619 * tree-flow.h (tree_ann_common_t): New type.
620 (tree_common_ann, get_tree_common_ann, create_tree_common_ann): New.
621 (tree_ann, get_tree_ann, create_tree_ann): New.
622 * tree-flow-inline.h (get_function_ann): Do more type checking.
623 (stmt_ann): Likewise.
624 (tree_ann): Rename to ...
625 (tree_common_ann): ... this one; return ony common_ann
626 (get_tree_ann): Rename to ...
627 (tree_common_ann): This one; return only common_ann.
628 * tree-vect-patterns.c (vect_pattern_recog_1): Update call
631 2006-09-11 Geoffrey Keating <geoffk@apple.com>
633 * config.gcc (i[34567]86-*-darwin*): Set with_arch and
636 * dwarf2out.c (dwarf_file_data): New.
637 (enum dw_val_class): Add dw_val_class_file.
638 (struct dw_val_struct): Add val_file.
639 (file_table): Change to a hash table.
640 (file_table_emitted): Delete.
641 (file_table_last_lookup_index): Delete.
643 (last_emitted_file): New.
644 (lookup_filename): Change prototype to return a struct dwarf_file_data.
645 (init_file_table): Delete.
646 (maybe_emit_file): Change prototype to take a struct dwarf_file_data.
647 (AT_addr): Add comment.
651 (print_die): Handle dw_val_class_file.
652 (print_dwarf_line_table): Update for new file table structure.
653 (attr_checksum): Do checksum a filename.
654 (same_dw_val_p, same_attr_p): Do compare a filename.
655 (size_of_die): Handle dw_val_class_file.
656 (value_format): Likewise.
657 (output_die): Likewise. Also, call maybe_emit_file here.
658 (struct file_info): Constify filenames. Make file_idx a pointer
659 to a struct dwarf_file_data.
660 (struct dir_info): Constify directory names. Remove 'used' field.
661 (struct file_name_acquire_data): New.
662 (file_name_acquire): New.
663 (output_file_names): Modify to handle new file data structures.
664 (add_src_coords_attributes): Use add_AT_file.
665 (add_call_src_coords_attributes): Likewise.
666 (dwarf2out_imported_module_or_decl): Likewise.
667 (gen_subprogram_die): Modify for new file data structures.
668 (gen_variable_die): Likewise.
669 (file_table_eq): New.
670 (file_table_hash): New.
671 (file_table_last_lookup): New.
672 (lookup_filename): Rewrite to handle new file data structures.
673 (maybe_emit_file): Rewrite to handle new file data structures.
674 (dwarf2out_source_line): Always call lookup_filename and
676 (dwarf2out_init): Create file_table here.
677 (prune_unused_types_walk_attribs): Don't call maybe_emit_file here.
678 (file_table_relative_p): New.
679 (dwarf2out_finish): Change detection of relative filenames
680 to work with new file data structures. Move output_line_info call
681 after debug_info output.
683 2006-09-11 H.J. Lu <hongjiu.lu@intel.com>
688 * config/i386/i386.c (override_options): Always default to 16
691 2006-09-11 Alexandre Oliva <aoliva@redhat.com>
694 * var-tracking.c (dump_dataflow_set): Start dumping at
696 (clobber_variable_part): Kill only the variable part in
697 registers holding it, leaving other variables alone.
699 2006-09-11 Josh Triplett <josh@freedesktop.org>
701 * doc/extend.texi (Other Builtins): Actually use the macro
702 argument in the documentation example for
703 __builtin_types_compatible_p.
705 2006-09-11 Eric Botcazou <ebotcazou@libertysurf.fr>
707 PR rtl-optimization/28726
708 * sched-deps.c (sched_analyze_reg): New function extracted from...
709 (sched_analyze_1): ...here. Call it to analyze references to
710 registers. Treat again writes to a stack register as writing to the
712 (sched_analyze_2): ...and here. Call it to analyze references to
713 registers. Treat again reads of a stack register as reading the
716 2006-09-11 Guenter Roeck <guenter@roeck-us.net>
717 David Edelsohn <edelsohn@gnu.org>
720 * config/rs6000/spe.md (frob_df_di): Remove %H.
721 (frob_di_df): Remove %H. Change evmergelo to mr.
722 (frob_di_df_2): Remove %H. Change evldd to two loads.
724 2006-09-11 Hideki Iwamoto <h-iwamoto@kit.hi-ho.ne.jp>
726 * doc/cpp.texi: Fix names of charset options.
728 2006-09-10 Andrew Pinski <pinskia@physics.uc.edu>
731 * config/i386/i386.c (override_options): Use 128-bit
732 stack boundary always for 64bits.
734 2006-09-10 Eric Botcazou <ebotcazou@libertysurf.fr>
736 PR rtl-optimization/28636
737 * combine.c (force_to_mode): Test for side-effects before
738 substituting by zero.
739 (simplify_shift_const): Likewise for zero or other constants.
741 2006-09-10 Steven Bosscher <steven@gcc.gnu.org>
744 * builtins.c (expand_builtin_setjmp): Force next_lab to be
747 2006-09-10 Richard Sandiford <richard@codesourcery.com>
750 * config/mips/mips-protos.h (mips_mem_fits_mode_p): Declare.
751 * config/mips/mips.c (mips_expand_unaligned_store): Use the mode
752 returned by mode_for_size, rather than the mode of src itself,
753 to choose between 32-bit and 64-bit patterns.
754 (mips_mem_fits_mode_p): New function.
755 * config/mips/mips.md (mov_<load>l, mov_<load>r): Use it to check
756 that the size of the source matches the size of the destination.
757 (mov_<store>l, mov_<store>r): Likewise.
759 2006-09-10 Eric Christopher <echristo@apple.com>
761 * config/darwin.c (machopic_select_rtx_section): Add CONST_VECTOR
764 2006-09-09 Eric Christopher <echristo@apple.com>
767 * config/darwin.c (machopic_select_rtx_section): Add TARGET_64BIT
770 2006-09-09 Roger Sayle <roger@eyesopen.com>
771 Nicolas Setton <setton@adacore.com>
773 * dwarf2out.c (convert_cfa_to_fb_loc_list): Handle DW_CFA_set_loc.
775 2006-09-10 Andreas Schwab <schwab@suse.de>
777 * config/m68k/m68k.md (bungt_rev): New pattern.
779 2006-09-09 Paolo Bonzini <bonzini@gnu.org>
780 Dale Johannesen <dalej@apple.com>
783 * regclass.c (struct reg_pref): Update documentation.
784 (regclass): Set prefclass to NO_REGS if memory is the best option.
785 (record_reg_classes): Cope with a prefclass set to NO_REGS.
787 2006-09-08 Eric Christopher <echristo@apple.com>
789 * config.gcc (i?86-*-darwin): Add 64-bit HWI support.
790 * config/t-slibgcc-darwin: Support x86_64 multilib.
791 * config/i386/i386.h (JUMP_TABLES_IN_TEXT_SECTION):
792 Return 1 for x86_64-darwin.
793 * config/i386/t-darwin: Add m64 multilib.
794 (LIB2_SIDITI_CONV_FUNCS): Use.
795 (LIB2FUNCS_EXTRA): Ditto.
796 * config/i386/darwin.h: Support x86_64.
797 * config/i386/i386.c (override_options): Turn on flag_pic
798 for x86_64-darwin. Disable flag_omit_pointer.
799 (get_pc_thunk_name): Assert !TARGET_64BIT.
800 (legitimate_address_p): Disable machopic addressing for
802 (legitimize_pic_address): Ditto.
803 (ix86_expand_move): Ditto.
804 (ix86_expand_call): Ditto.
805 (machopic_output_stub): Ditto.
806 * config/darwin.c (machopic_select_section): Support literal16.
807 (machopic_select_rtx_section): Ditto.
808 * config/darwin-sections.def: Ditto.
809 * config/darwin-64.c: New.
811 2006-09-08 Joseph S. Myers <joseph@codesourcery.com>
814 * c-tree.h (struct c_arg_info): Add pending_sizes.
815 * c-parser.c (c_parser_parms_declarator,
816 c_parser_parms_list_declarator): Initialize pending_sizes.
817 * c-decl.c (get_parm_info): Initialize pending_sizes.
818 (get_parm_info): Set pending_sizes.
819 (grokdeclarator): Call put_pending_sizes for parameters for
820 function definition only.
822 2006-09-07 Jason Merrill <jason@redhat.com>
825 * varasm.c (output_constant): Only strip actual no-op conversions.
828 * config/i386/i386.c (override_options): Use 128-bit
829 stack boundary if -msse.
831 2006-09-07 Eric Christopher <echristo@apple.com>
833 * config/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Update
835 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE):
838 2006-09-07 Geoffrey Keating <geoffk@apple.com>
840 * dwarf2out.c: Remove strange characters from comment above
841 dwarf2out_frame_debug_expr.
843 2006-09-07 Eric Christopher <echristo@apple.com>
845 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Move from here...
846 * config/darwin.h: ... to here.
848 2006-09-07 H.J. Lu <hongjiu.lu@intel.com>
850 * config/i386/i386.c (x86_partial_flag_reg_stall): New.
852 * config/i386/i386.h (x86_partial_flag_reg_stall): New.
853 (TARGET_PARTIAL_FLAG_REG_STALL): New.
855 * config/i386/i386.md (*ashldi3_cmp_rex64): Disabled for
856 TARGET_PARTIAL_FLAG_REG_STALL.
857 (*ashldi3_cconly_rex64): Likewise.
858 (*ashlsi3_cmp): Likewise.
859 (*ashlsi3_cconly): Likewise.
860 (*ashlsi3_cmp_zext): Likewise.
861 (*ashlhi3_cmp): Likewise.
862 (*ashlhi3_cconly): Likewise.
863 (*ashlqi3_cmp): Likewise.
864 (*ashlqi3_cconly): Likewise.
865 (*ashrdi3_cmp_rex64): Likewise.
866 (*ashrdi3_cconly_rex64): Likewise.
867 (*ashrsi3_cmp): Likewise.
868 (*ashrsi3_cconly): Likewise.
869 (*ashrsi3_cmp_zext): Likewise.
870 (*ashrhi3_cmp): Likewise.
871 (*ashrhi3_cconly): Likewise.
872 (*ashrqi3_cmp): Likewise.
873 (*ashrqi3_cconly): Likewise.
874 (*lshrdi3_cmp_rex64): Likewise.
875 (*lshrdi3_cconly_rex64): Likewise.
876 (*lshrsi3_cmp): Likewise.
877 (*lshrsi3_cconly): Likewise.
878 (*lshrsi3_cmp_zext): Likewise.
879 (*lshrhi3_cmp): Likewise.
880 (*lshrhi3_cconly): Likewise.
881 (*lshrqi2_cmp): Likewise.
882 (*lshrqi2_cconly): Likewise.
884 2006-09-07 Uros Bizjak <uros@kss-loka.si>
887 * config/i386/i386.md ("*ashldi3_cconly_rex64", "*ashlsi3_cconly",
888 "*ashlhi3_cconly", "*ashlqi3_cconly", "*ashrdi3_one_bit_cconly_rex64",
889 "*ashrdi3_cconly_rex64", "*ashrsi3_one_bit_cconly", "*ashrsi3_cconly",
890 "*ashrhi3_one_bit_cconly", "*ashrhi3_cconly",
891 "*ashrqi3_one_bit_cconly", "*ashrqi3_cconly",
892 "*lshrdi3_cconly_one_bit_rex64", "*lshrdi3_cconly_rex64",
893 "*lshrsi3_one_bit_cconly", "*lshrsi3_cconly",
894 "*lshrhi3_one_bit_cconly", "*lshrhi3_cconly",
895 "*lshrqi2_one_bit_cconly", "*lshrqi2_cconly": New patterns to
896 implement only CC setting effects of shift instructions.
898 2006-09-07 Martin Michlmayr <tbm@cyrius.com>
900 * doc/contrib.texi: Add myself.
902 2006-09-07 Andrew Pinski <pinskia@physics.uc.edu>
905 * stor-layout.c (relayout_decl): Don't zero the alignment if it
908 2006-09-07 Paolo Bonzini <bonzini@gnu.org>
911 * config/sh/sh.md (divsi_inv_qitable, divsi_inv_hitable): New patterns.
912 (divsi_inv_m1): Use them.
913 (UNSPEC_DIV_INV_TABLE): New constant.
915 2006-09-06 James E Wilson <wilson@specifix.com>
918 * flow.c (update_life_info): If UPDATE_LIFE_LOCAL and PROP_DEATH_NOTES
919 then call count_or_remove_death_notes.
921 2006-09-06 Jason Merrill <jason@redhat.com>
924 * tree-inline.c (copy_result_decl_to_var): New fn.
925 (declare_return_variable): Use it. Call declare_inline_vars here.
926 (expand_call_inline): Not here.
928 2006-09-06 Diego Novillo <dnovillo@redhat.com>
930 * doc/contrib.texi: Update my entry.
932 2006-09-06 Nick Clifton <nickc@redhat.com>
934 * config/frv/frv.h (EXTRA_MEMORY_CONSTRAINT): Define.
936 2006-09-05 Andrew Pinski <pinskia@physics.uc.edu>
939 * tree-flow.h (tree_ssa_unswitch_loops): Return unsigned int.
940 (canonicalize_induction_variables): Likewise.
941 (tree_unroll_loops_completely): Likewise.
942 (tree_ssa_prefetch_arrays): Likewise.
943 (remove_empty_loops): Likewise.
944 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Return
945 TODO_cleanup_cfg instead of directly calling
946 cleanup_tree_cfg_loop.
947 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables):
949 (tree_unroll_loops_completely): Likewise.
950 (remove_empty_loops): Likewise.
951 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
952 * tree-ssa-loop.c (tree_ssa_loop_unswitch): Use the return value
953 of tree_ssa_unswitch_loops.
954 (tree_ssa_loop_ivcanon): Use the return value of
955 canonicalize_induction_variables.
956 (tree_ssa_empty_loop): Use the return value of
958 (tree_complete_unroll): Use the return value of
959 tree_unroll_loops_completely.
960 (tree_ssa_loop_prefetch): Use the return value of
961 tree_ssa_prefetch_arrays.
962 * passes.c (execute_todo): Before Cleanup CFG, set
963 updating_used_alone and after cleanup CFG, call
964 recalculate_used_alone.
966 2006-09-05 Andrew Pinski <pinskia@physics.uc.edu>
969 * tree-vect-transform.c (vectorizable_condition): Move the check
970 for the type after the check for simple condition.
972 2006-09-05 J"orn Rennecke <joern.rennecke@st.com>
973 Kaz Kojima <kkojima@gcc.gnu.org>
976 * mode-switching.c (optimize_mode_switching): Make the destination
977 block of an abnormal edge have no anticipatable mode. Don't
978 insert mode switching code at the end of the source block of
981 2006-09-05 Paolo Bonzini <bonzini@gnu.org>
983 PR rtl-optimization/26847
984 * simplify-rtx.c (struct simplify_plus_minus_op_data): Remove ix.
985 (simplify_plus_minus_op_data_cmp): For REGs, break ties on the regno.
986 (simplify_plus_minus): Count n_constants while filling ops. Replace
987 qsort with insertion sort. Before going through the array to simplify
988 pairs, sort it. Delay early exit until after the first sort, exiting
989 only if no swaps occurred. Simplify pairs in reversed order, without
990 special-casing the first iteration. Pack ops after simplifying pairs.
992 2006-09-05 Anatoly Sokolov <aesok@post.ru>
994 * config/avr/avr.c (avr_mcu_types): Add support for at90pwm1 device.
995 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
996 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
997 (avr_rtx_costs): Mark 'outer_code' argument with ATTRIBUTE_UNUSED.
999 2006-09-05 Richard Guenther <rguenther@suse.de>
1001 PR tree-optimization/28900
1002 * tree-if-conv.c (find_phi_replacement_condition): Gimplify
1003 compound conditional before creating COND_EXPR condition.
1005 2006-09-05 Richard Guenther <rguenther@suse.de>
1007 PR tree-optimization/28905
1008 * tree-vrp.c (fix_equivalence_set): Manually implement
1009 !value_ranges_intersect_p to also handle symbolic ranges.
1011 2006-09-05 Richard Guenther <rguenther@suse.de>
1014 * tree-ssa-ccp.c (fold_stmt_r): Make sure to fold the condition
1017 2006-09-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1019 PR rtl-optimization/27616
1020 * cse.c (table_size): New static variable.
1021 (new_basic_block): Initialize it to 0.
1022 (remove_from_table): Decrement it.
1023 (insert): Increment it.
1024 (fold_rtx_mem_1): New function, renamed from fold_rtx_mem.
1025 (fold_rtx_mem): Enforce a cap on the recursion depth. Call
1026 fold_rtx_mem_1 if under the cap.
1027 (fold_rtx) <RTX_COMM_ARITH>: In the associative case, delay a little
1028 the lookup of the equivalent expression and test for equality of the
1029 first operand of the equivalent expression before in turn looking up
1030 an equivalent constant for the second operand.
1032 2006-09-02 Geoffrey Keating <geoffk@apple.com>
1035 2006-03-17 Alexandre Oliva <aoliva@redhat.com>
1036 * dwarf2out.c (dwarf2out_stack_adjust): Always track the stack
1037 pointer, instead of assuming it is possible to derive the
1038 correct args size from a call insn.
1040 2006-09-02 Jakub Jelinek <jakub@redhat.com>
1043 * builtins.c (fold_builtin_memcpy, fold_builtin_memmove): Remove.
1044 (fold_builtin_mempcpy): Rename to...
1045 (fold_builtin_memory_op): ... this. Optimize one element copy
1047 (fold_builtin_memset, fold_builtin_bzero, fold_builtin_bcopy): New
1049 (expand_builtin_strcpy, expand_builtin_strncpy): Handle COMPOUND_EXPR.
1050 (expand_builtin_memcpy, expand_builtin_mempcpy,
1051 expand_builtin_memmove): Likewise. Use fold_builtin_memory_op.
1052 (fold_builtin_1): Handle BUILT_IN_MEMSET, BUILT_IN_BZERO and
1053 BUILT_IN_BCOPY. Use fold_builtin_memory_op for
1054 BUILT_IN_MEM{CPY,PCPY,MOVE}.
1056 2006-09-01 DJ Delorie <dj@redhat.com>
1058 * config/m32c/cond.md (cbranch<mode>4): Defer splitting until after reload.
1059 (stzx_16): Likewise.
1060 ("stzx_24_<mode>"): Likewise.
1061 ("stzx_reversed_<mode>"): Likewise, and make mode-specific.
1062 ("cmp<mode>_op"): New.
1063 (cmp<mode>): Change to expander; just save operands.
1065 (b<code>): Change to expander, emit compare here.
1066 (s<code>_op): Change to use split and expander.
1067 (s<code>_24_op): Likewise.
1068 (s<code>_<mode>): New.
1069 (s<code>_<mode>_24): New.
1070 (movqicc_<code>_<mode): New.
1071 (movhicc_<code>_<mode>): New.
1074 * config/m32c/m32c.c (compare_op0, compare_op1): New.
1075 (m32c_pend_compare): New.
1076 (m32c_unpend_compare): New.
1077 (m32c_expand_scc): New.
1078 (m32c_expand_movcc): Emit the compare also.
1079 * config/m32c/predicates.md (mra_nopp_operand): New.
1081 2006-09-01 J"orn Rennecke <joern.rennecke@st.com>
1082 Richard Guenther <rguenther@suse.de>
1083 Adam Nemet <anemet@caviumnetworks.com>
1086 * builtins.c (get_pointer_alignment): Handle more forms
1087 of base addresses that can be used to derive more precise
1088 information about alignment.
1090 2006-09-01 Jason Merrill <jason@redhat.com>
1093 * gimplify.c (gimplify_modify_expr_rhs) [BIND_EXPR]: Handle
1096 * gimplify.c (voidify_wrapper_expr): Handle null type.
1098 2006-09-01 Josh Conner <jconner@apple.com>
1101 * tree-nrv.c (dest_safe_for_nrv_p): New function.
1102 (execute_return_slot_opt): Use it.
1104 2006-08-31 Josh Conner <jconner@apple.com>
1107 * tree-gimple.c (is_gimple_mem_rhs): Recognize functions
1108 returning aggregates.
1110 2006-08-31 Zdenek Dvorak <dvorakz@suse.cz>
1112 PR tree-optimization/28839
1113 * tree-into-ssa.c (prune_unused_phi_nodes): Take into account kills in
1114 blocks in that phi arguments appear.
1116 2006-08-31 Roger Sayle <roger@eyesopen.com>
1119 * dwarf2out.c (add_fde_cfi): Use a set_loc if the current label is
1120 NULL, otherwise use an advance_loc4 to adjust relative to the
1122 (output_cfi) <DW_CFA_set_loc>: Update the current label.
1123 (dwarf2out_switch_text_section): Reset the current label to avoid
1124 using advance_loc4 over section boundaries.
1126 2006-08-31 Andreas Krebbel <krebbel1@de.ibm.com>
1129 * config/s390/s390.md ("movsi", "movdi" expander): Accept rtxes like
1130 r12 + SYMBOLIC_CONST.
1132 2006-08-30 Richard Guenther <rguenther@suse.de>
1134 * Makefile.in (see.o): Add $(EXPR_H) dependency.
1136 2006-08-30 Zdenek Dvorak <dvorakz@suse.cz>
1138 PR rtl-optimization/27735
1139 * cfgloopmanip.c (fix_loop_placements, fix_bb_placements, unloop):
1140 Add new argument to keep track of whether an irreducible region
1141 was affected. All callers changed.
1142 (fix_irreducible_loops): Removed.
1143 (remove_path): Call mark_irreducible_loops if EDGE_IRREDUCIBLE_LOOP
1144 flags were invalidated.
1146 2006-08-29 H.J. Lu <hongjiu.lu@intel.com>
1148 * config/i386/i386.md (*fop_df_comm_mixed): Match DF operands
1149 instead of SF operands.
1150 (*fop_df_comm_sse): Likewise.
1151 (*fop_df_comm_i387): Likewise.
1152 (*fop_df_1_mixed): Likewise.
1153 (*fop_df_1_sse): Likewise.
1155 2006-08-29 Andrew Pinski <pinskia@physics.uc.edu>
1156 J"orn Rennecke <joern.rennecke@st.com>
1158 PR tree-optimization/17506
1159 * tree-ssa.c (warn_uninit): If warning about a location outside of
1160 the current function, note where the variable was declared.
1162 2006-08-28 Zdenek Dvorak <dvorakz@suse.cz>
1164 PR tree-optimization/28411
1165 * double-int.c (double_int_div): Use double_int_divmod.
1166 (double_int_divmod, double_int_sdivmod, double_int_udivmod,
1167 double_int_mod, double_int_smod, double_int_umod): New functions.
1168 * double-int.h (double_int_divmod, double_int_sdivmod,
1169 double_int_udivmod, double_int_mod, double_int_smod, double_int_umod):
1171 * tree-ssa-loop-ivopts.c (constant_multiple_of): Returns the result
1173 (get_computation_aff, get_computation_cost_at): Handle double_int
1174 return type of constant_multiple_of.
1176 2006-08-28 Kazu Hirata <kazu@codesourcery.com>
1179 * convert.c (convert_to_integer): Set TREE_NO_WARNING to 1 on
1180 an implicit conversion.
1182 2006-08-28 Prafulla Thakare <prafullat@kpitcummins.com>
1184 * config/h8300/h8300.c (TARGET_DEFAULT_TARGET_FLAGS): New.
1186 2006-08-27 Roger Sayle <roger@eyesopen.com>
1188 * ifcvt.c (cheap_bb_rtx_cost_p): Don't speculatively execute
1191 2006-08-27 Kazu Hirata <kazu@codesourcery.com>
1193 * config/i386/crtfastmath.c: Fix a comment typo.
1195 2006-08-26 Roger Sayle <roger@eyesopen.com>
1197 * tree.h (CASE_LOW_SEEN, CASE_HIGH_SEEN): New macros for manipulating
1198 temporary visit flags on CASE_LABEL_EXPRs.
1199 * c-common.c (match_case_to_enum): Add function comment. Avoid
1200 O(N) loop, by looking up both CASE_LOW_SEEN and CASE_HIGH_SEEN.
1201 (c_do_switch_warnings): Reorganize to record CASE_LOW_SEEN and
1202 CASE_HIGH_SEEN for enumerated types. If the switch expression is
1203 a constant, only warn if that constant value isn't handled.
1205 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1208 * input.h (restore_input_file_stack): Declare.
1209 (INPUT_FILE_STACK_BITS): Define.
1210 * toplev.c (fs_p, input_file_stack_history,
1211 input_file_stack_restored, restore_input_file_stack): New.
1212 (push_srcloc, pop_srcloc): Check for input_file_stack_tick
1213 overflowing INPUT_FILE_STACK_BITS bits. Save new state of stack.
1214 (pop_srcloc): Don't free old state of stack.
1216 2006-08-26 David Edelsohn <edelsohn@gnu.org>
1219 * doc/extend.texi (PowerPC Variable Attributes): Mention altivec.
1220 (PowerPC Type Attributes): New.
1222 2006-08-26 Bob Wilson <bob.wilson@acm.org>
1224 * config/xtensa/xtensa.c (function_arg_boundary): New.
1225 (function_arg, xtensa_gimplify_va_arg_expr): Limit alignment to
1227 * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Move code to new
1228 function_arg_boundary function that limits alignment to STACK_BOUNDARY.
1230 2006-08-26 Jakub Jelinek <jakub@redhat.com>
1233 * cfgexpand.c (add_reg_br_prob_note): Check if last has exactly
1236 2006-08-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1238 * flow.c (verify_wide_reg): Use internal_error for consistency failure.
1239 (verify_local_live_at_start): Likewise.
1241 2006-08-25 Joseph S. Myers <joseph@codesourcery.com>
1244 * gimplify.c (gimplify_decl_expr, gimplify_init_ctor_preeval,
1245 omp_add_variable): Treat sizes as variable whenever not
1248 2006-08-26 Richard Guenther <rguenther@suse.de>
1251 * fold-const.c (fold_binary): Fold temporary to correct
1252 type before constructing new comparison.
1254 2006-08-25 Fariborz Jahanian <fjahanian@apple.com>
1257 * c-gimplify.c (gimplify_compound_literal_expr): Don't add
1258 variable again if DECL_SEEN_IN_BIND_EXPR_P.
1260 2006-08-25 Joseph S. Myers <joseph@codesourcery.com>
1263 * c-decl.c (start_function): Don't try to process prototype
1264 information from old declaration that isn't a function.
1266 2006-08-25 Jan Hubicka <jh@suse.cz>
1269 * config/i386/crtfastmath.c (set_fast_math): Force stack alignment.
1271 2006-08-25 Alan Modra <amodra@bigpond.net.au>
1274 * config/rs6000/rs6000.c (print_operand): Only use e500 %y syntax
1277 2006-08-25 J"orn Rennecke <joern.rennecke@st.com>
1279 PR tree-optimization/16876
1280 * c-typeck.c (c_convert_parm_for_inlining): Don't take early
1281 exit if PARM doesn't match VALUE.
1283 2006-08-25 Bob Wilson <bob.wilson@acm.org>
1285 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Do not emit a
1286 literal_prefix directive.
1287 (XTENSA_DECLARE_FUNCTION_SIZE): Delete.
1288 * config/xtensa/linux.h (ASM_DECLARE_FUNCTION_SIZE): Delete.
1289 * config/xtensa/elf.h (ASM_DECLARE_FUNCTION_SIZE): Delete.
1291 2006-08-25 David Edelsohn <edelsohn@gnu.org>
1294 * config/rs6000/rs6000.md (movcc_internal1): Change operand 1
1295 predicate to general_operand. Add 0->y and I->r alternatives.
1297 2006-08-25 Kazu Hirata <kazu@codesourcery.com>
1299 * doc/tm.texi: Fix a typo.
1300 * predict.c: Fix comment typos.
1302 2006-08-25 Nick Clifton <nickc@redhat.com>
1304 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1305 assertions of "cpu" and "machine".
1307 2006-08-24 Andrew Pinski <pinskia@physics.uc.edu>
1310 * tree-ssa-operands.c (access_can_touch_variable): Don't say
1311 the access through a base which has an alias set of 0 cannot
1314 2006-08-24 Bill Wendling <wendling@apple.com>
1316 * doc/tm.texi (TARGET_DEFAULT_PACK_STRUCT): Fixed English.
1318 2006-08-24 Jan Hubicka <jh@suse.cz>
1320 * reload1.c (emit_reload_insns): Fix yet another typo in my patch.
1322 2006-08-24 Jan Hubicka <jh@suse.cz>
1325 * cgraph.c: Fix comments.
1326 (cgraph_varpool_mark_needed_node): Mark only variables not already
1328 * cgraphunit.c: Update comments; include gt-cgraphunit.h
1329 (cgraph_varpool_assembled_nodes_queue): New static variable.
1330 (cgraph_varpool_assemble_decl): Record output decls for debug out code.
1331 (cgraph_varpool_output_debug_info): New function.
1332 (cgraph_finalize_compilation_unit, cgraph_optimize): Call it.
1333 * Makefile.in: Add gt-cgraphunit.h
1335 2006-08-24 Jan Hubicka <jh@suse.cz>
1337 * predict.c (probability_reliable_p): New predicate.
1338 (edge_probability_reliable_p, br_prob_note_reliable_p): Likewise.
1339 (predict_loops): Do not predict loop exit with less than 2%
1341 * basic-block.h (edge_probability_reliable_p,
1342 br_prob_note_reliable_p): Declare.
1343 * ia64.h (ia64_print_operand): Do not disable on-chip branch
1344 prediction when static predictor is not reliable.
1345 * rs6000.c (output_cbranch): Likewise.
1347 2006-08-23 Stuart Hastings <stuart@apple.com>
1350 * gcc/config/i386/i386.c (ix86_expand_vector_init_duplicate,
1351 ix86_expand_vector_init_one_nonzero): Remove TARGET_SSE test.
1353 2006-08-21 Geoffrey Keating <geoffk@apple.com>
1356 * dwarf2out.c (rtl_for_decl_init): Don't try to create RTL for
1357 complex values, nor for generic vector values.
1359 2006-08-22 Richard Guenther <rguenther@suse.de>
1362 * tree-scalar-evolution.c (fold_used_pointer): Add at_stmt
1363 parameter. Convert arguments to arithmetic expression to the
1365 (analyze_scalar_evolution_1): Adjust caller.
1367 2006-08-22 Jan Hubicka <jh@suse.cz>
1369 Patch by Paolo Bonzini
1370 * reload1.c (emit_reload_insns): Fix incorrect bracketing introduced by
1373 2006-08-22 Daniel Berlin <dberlin@dberlin.org>
1375 PR tree-optimization/28003
1376 * tree-ssa-alias.c (compute_may_aliases): Compute call clobbered
1377 before grouping aliases.
1379 2006-08-22 Roger Sayle <roger@eyesopen.com>
1381 * config/i386/i386.c (ix86_value_regno): Don't return FIRST_MMX_REG
1382 if !TARGET_MMX, and don't return FIRST_SSE_REG if !TARGET_SSE.
1384 2006-08-21 Jason Merrill <jason@redhat.com>
1387 * gimplify.c (voidify_wrapper_expr): Handle STATEMENT_LIST as a
1388 wrapper. Loop to handle nested wrappers.
1389 (gimplify_bind_expr): Remove temp parameter.
1390 (gimplify_modify_expr_rhs): Handle CLEANUP_POINT_EXPR, BIND_EXPR
1391 and STATEMENT_LIST on the rhs.
1392 (gimplify_statement_list): Voidify the STATEMENT_LIST.
1393 (gimplify_expr): Pass pre_p to gimplify_statement_list.
1394 (gimplify_target_expr): Remove special BIND_EXPR handling.
1396 2006-08-21 J"orn Rennecke <joern.rennecke@st.com>
1398 * config/sh/lib1funcs-Os-4-200.asm: Guard entire file with
1401 2006-08-21 Olivier Hainque <hainque@adacore.com>
1403 * gimplify.c (gimplify_init_constructor) <RECORD,UNION,ARRAY types>:
1404 Arrange for the temporary captures of components overlapping the lhs
1405 to happen before the lhs is possibly cleared.
1407 2006-08-21 Mark Shinwell <shinwell@codesourcery.com>
1409 * config/arm/pr-support.c (__gnu_unwind_execute): Insert " + 1" in
1410 necessary places to pass the correct "number of registers" values
1413 2006-08-20 Jan Hubicka <jh@suse.cz>
1415 * tree-ssa-alias.c (eq_ptr_info, ptr_info_hash): New function.
1416 (create_name_tags): Instead of quadratic checking use hashtable.
1417 * bitmap.h: Include hashtab.h.
1418 (bitmap_hash): Declare.
1419 * bitmap.c (bitmap_hash): New function.
1421 2006-08-20 Jan Hubicka <jh@suse.cz>
1423 PR rtl-optimization/28071
1424 * tree-optimize.c (tree_rest_of_compilation): Do not remove edges
1426 * tree-inline.c (copy_bb): Use cgraph_set_call_stmt.
1427 * ipa-inline.c (cgraph_check_inline_limits): Add one_only argument.
1428 (cgraph_decide_inlining, cgraph_decide_inlining_of_small_function,
1429 cgraph_decide_inlining_incrementally): Update use of
1430 cgraph_check_inline_limits.
1431 * cgraph.c (edge_hash, edge_eq): New function.
1432 (cgraph_edge, cgraph_set_call_stmt, cgraph_create_edge,
1433 cgraph_edge_remove_caller, cgraph_node_remove_callees,
1434 cgraph_remove_node): Maintain call site hash.
1435 * cgraph.h (struct cgraph_node): Add call_site_hash.
1436 (cgraph_set_call_stmt): New function.
1438 2006-08-20 Jan Hubicka <jh@suse.cz>
1440 PR rtl-optimization/28071
1441 * reload1.c (reg_has_output_reload): Turn into regset.
1442 (reload_as_needed, forget_old_reloads_1, forget_marked_reloads,
1443 choose_reload_regs, emit_reload_insns): Update to new
1444 reg_has_output_reload.
1446 2006-08-20 Jan Hubicka <jh@suse.cz>
1449 * ipa-inline.c (cgraph_decide_inlining, cgraph_early_inlining): Compute
1450 function body sizes.
1451 * cgraphunit.c (cgraph_analyze_function): Don't do so.
1453 2006-08-20 Danny Smith <dannysmith@users.sourceforge.net>
1456 * tree.c (handle_dll_attribute): Return early if not a
1457 var or function decl.
1459 2006-08-18 Joseph Myers <joseph@codesourcery.com>
1462 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT): For SPE, only adjust
1463 alignment of SPE vector types.
1465 2006-08-18 Christophe Jaillet <christophe.jaillet@wanadoo.fr>
1467 * tree.c (is_attribute_with_length_p): Remove a duplicated assert.
1469 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1472 * cgraph.h (struct cgraph_node): Remove externally_visible
1474 * cgraphunit.c (process_function_and_variable_attributes): Set
1475 local.externally_visible rather than externally_visible.
1478 * c-common.c (handle_externally_visible_attribute): First look
1479 at TREE_CODE and only if it is function or var decl, check for
1480 non-public objects. Don't warn for DECL_EXTERNAL.
1481 * cgraphunit.c (process_function_and_variable_attributes): Warn
1482 if externally_visible attribute is used on non-public object.
1484 2006-08-17 Jan Hubicka <jh@suse.cz>
1486 PR tree-optimization/27865
1487 * reload1.c (forget_marked_reloads): New function.
1488 (forget_old_reloads_1): When data are passed, just mark the registers
1490 (reload_as_needed): Use the new mechanizm.
1492 2006-08-17 Alexandre Oliva <aoliva@redhat.com>
1495 * reload.h (reg_equiv_alt_mem_list): New declaration.
1496 * reload1.c (reg_equiv_alt_mem_list): New definition.
1497 (reload): Initialize it and release it.
1498 (delete_output_reload): Use it.
1499 * reload.c (push_reg_equiv_alt_mem): New function.
1500 (find_reloads_toplev): Call it.
1501 (find_reloads_address, find_reloads_address_1): Likewise.
1502 (find_reloads_subreg_address): Likewise.
1504 2006-08-17 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1506 PR rtl-optimization/28489
1507 * sched-ebb.c (begin_schedule_ready): Create basic block
1509 (advance_target_bb): Skip empty blocks.
1510 * haifa-sched.c (bb_note): Make global.
1511 * sched-int.h (bb_note): Add prototype.
1513 2006-08-16 Zdenek Dvorak <dvorakz@suse.cz>
1515 PR tree-optimization/27865
1516 * tree-vrp.c (adjust_range_with_scev): Do not use TYPE_{MIN,MAX}_VALUE
1518 * tree-scalar-evolution.c (fold_used_pointer_cast, pointer_offset_p,
1519 fold_used_pointer, pointer_used_p): New functions.
1520 (analyze_scalar_evolution_1): Use fold_used_pointer.
1521 * tree-chrec.c (convert_affine_scev): Convert no-op casts correctly.
1522 * tree-ssa-loop-ivopts.c (generic_type_for): Return integral type
1525 2006-08-17 Paolo Bonzini <bonzini@gnu.org>
1528 * c-common.c (fold_offsetof_1): Add an argument and recurse down to it
1529 or the INTEGER_CST. Fail on a CALL_EXPR.
1530 (fold_offsetof): Pass new argument to fold_offsetof_1.
1531 * c-parser.c (c_parser_postfix_expression): Don't include a NULL
1532 operand into an INDIRECT_REF.
1533 * c-typeck.c (build_unary_op): Adjust call to fold_offsetof.
1535 2006-08-16 Zdenek Dvorak <dvorakz@suse.cz>
1537 PR gcov/profile/26570
1538 * value-prof.c (static_values): Removed.
1539 (tree_find_values_to_profile): Do not set static_values.
1540 (find_values_to_profile): Do not free static_values.
1541 * profile.c (instrument_values): Do not free the values.
1542 (branch_prob): Free the values.
1544 2006-08-16 Naveen.H.S <naveenh@kpitcummins.com>
1546 * config/m32c/m32c_lib1.S (__mulsi3): Use only registers for dest.
1548 2006-08-16 Joseph S. Myers <joseph@codesourcery.com>
1551 * c-typeck.c (build_component_ref): Combine qualifiers of
1552 structure or union and field.
1554 2006-08-16 Zdenek Dvorak <dvorakz@suse.cz>
1556 PR rtl-optimization/28071
1557 * basic-block.h (bb_dom_dfs_in, bb_dom_dfs_out): Declare.
1558 * dominance.c (bb_dom_dfs_in, bb_dom_dfs_out): New functions.
1559 * tree-into-ssa.c (struct dom_dfsnum): New.
1560 (cmp_dfsnum, find_dfsnum_interval, prune_unused_phi_nodes): New
1562 (insert_phi_nodes_for): Use prune_unused_phi_nodes instead of
1563 compute_global_livein.
1564 (prepare_block_for_update, prepare_use_sites_for): Mark the uses
1565 in phi nodes in the correct blocks.
1567 2006-08-16 Zdenek Dvorak <dvorakz@suse.cz>
1569 PR tree-optimization/28364
1570 * tree-ssa-loop-ivopts.c (aff_combination_to_tree): Handle zero
1572 (fold_affine_expr): New function.
1573 (may_eliminate_iv): Use fold_affine_expr.
1575 2006-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1578 * c-typeck.c (c_start_case): Handle invalid orig_type correctly.
1581 2006-08-16 Mike Stump <mrs@apple.com>
1583 * doc/invoke.texi (-Wno-deprecated-declarations): Fixup use of pxref.
1584 * doc/cppopts.texi (-MD): Likewise.
1586 2006-08-15 Danny Smith <dannysmith@users.sourceforge.net>
1589 * c-common.c (handle_weak_attribute): Ignore and warn if
1590 not a FUNCTION_ or VAR_DECL.
1592 2006-07-15 Mike Stump <mrs@apple.com>
1595 * c-parser.c (c_parser_typeof_specifier): Don't use
1596 c_finish_expr_stmt, open code desired semantics instead.
1598 2006-08-15 Nick Clifton <nickc@redhat.com>
1600 * config.gcc (x86-mingw32): Add a gthr-win32.h including makefile
1601 fragment to tmake_file only if threads are enabled.
1602 * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Move to...
1603 * config/i386/t-gthr-win32: New file. ... here.
1605 2006-08-15 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1608 * c-parser.c (c_parser_compound_statement_nostart): Reset
1609 parser->error after each statement.
1611 2006-08-15 Jakub Jelinek <jakub@redhat.com>
1614 * omp-low.c (lower_omp_parallel): Convert t to
1615 receiver_decl's type.
1616 (expand_omp_parallel): STRIP_NOPS from the MODIFY_EXPR
1617 source before comparison.
1620 * gimplify.c (gimplify_omp_atomic_pipeline): Convert oldival
1621 to itype in assignment to oldival2.
1623 2006-07-14 Andrew Pinski <pinksia@physics.uc.edu>
1627 * c-typeck.c (build_compound_expr): If the second expression
1628 is an error mark, then just return an error mark instead of
1629 creating a COMPOUND_EXPR.
1631 2006-07-14 Mike Stump <mrs@apple.com>
1633 * Makefile.in (LIBGCC_DEPS): Don't depend on LANGUAGES.
1635 2006-08-14 Kazu Hirata <kazu@codesourcery.com>
1637 * c-decl.c, var-tracking.c: Fix comment typos.
1639 2006-08-14 Richard Sandiford <richard@codesourcery.com>
1641 PR rtl-optimization/28634
1642 * reorg.c (fill_slots_from_thread): Do not assume A + X - X == A
1643 for floating-point modes unless flag_unsafe_math_optimizations.
1645 2006-08-13 Alexandre Oliva <aoliva@redhat.com>
1646 Andrew Pinski <pinskia@physics.uc.edu>
1649 * tree.c (build_array_type): Unify array types with
1650 unspecified index_type.
1651 * c-decl.c (grokdeclarator): Make sure we do not modify a
1652 unified incomplete array type.
1653 * c-typeck.c (store_init_value): Create distinct type before
1654 filling in the index type in an initializer from a compound
1657 * c-decl.c (grokdeclarator): Remove code where we copy the
1660 2006-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1662 * tree-pass.h (TODO_update_ssa): Fix which bit is used to take
1663 into account for TODO_dump_cgraph.
1664 (TODO_update_ssa_no_phi): Likewise.
1665 (TODO_update_ssa_full_phi): Likewise.
1666 (TODO_update_ssa_only_virtuals): Likewise.
1667 (TODO_remove_unused_locals): Likewise.
1668 (TODO_set_props): Likewise.
1669 (TODO_update_stmt_usage): Likewise.
1671 2006-08-13 Dirk Mueller <dmueller@suse.de>
1673 * c-common.c (strict_aliasing_warning): Fix formatting.
1675 2006-08-13 Matthias Klose <doko@debian.org>
1677 * doc/invoke.texi: Fix spelling errors.
1679 2006-08-11 Eric Botcazou <ebotcazou@libertysurf.fr>
1681 PR rtl-optimization/23454
1682 * reorg.c (relax_delay_slots): Update comment.
1684 2006-08-11 Richard Guenther <rguenther@suse.de>
1687 * simplify-rtx.c (simplify_const_relational_operation):
1688 Simplify A CMP B to A - B CMP 0 only for EQ and NE comparison
1691 2006-08-10 Eric Botcazou <ebotcazou@adacore.com>
1693 * tree.c (build1_stat): Also propagate the TREE_CONSTANT and
1694 TREE_INVARIANT flags for a VIEW_CONVERT_EXPR.
1696 2006-08-10 Paul Brook <paul@codesourcery.com>
1698 * final.c (final_scan_insn): Clear current_insn_predicate before
1699 outputting inline asm.
1701 2006-08-10 Dorit Nuzman <dorit@il.ibm.com>
1703 PR tree-optimization/26197
1704 * tree-ssa-alias.c (new_type_alias): Takes additional argument. Calls
1705 get_ref_base_and_extent and overlap_subvar to add only relevant
1706 subvars as may-aliases.
1707 (add_may_alias_for_new_tag): New function, factored out of
1709 * tree-vect-transform.c (vect_create_data_ref_ptr): Call new_type_alias
1710 with additional argument.
1711 * tree-flow.h (new_type_alias): Takes additional argument.
1713 2006-08-09 Nathan Sidwell <nathan@codesourcery.com>
1715 * gcov.c (no_data_file): New flag.
1716 (read_count_file): Set it if data file not present. Assume counts
1718 (output_lines): Don't name the data file, if there wasn't one.
1720 2006-08-09 Eric Botcazou <ebotcazou@adacore.com>
1722 * config/rs6000/rs6000.c (print_operand) <D>: Fix comment and adjust.
1723 (rs6000_generate_compare): Tweak comments.
1724 * config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Fix comment.
1726 2006-08-09 Alexandre Oliva <aoliva@redhat.com>
1728 * var-tracking.c (enum micro_operation_type): Add MO_COPY.
1729 (var_debug_decl): New function.
1730 (var_reg_set): Follow debug decl link. Add location even if
1731 reg is already known to hold some other variable.
1732 (var_mem_set): Follow debug decl link.
1733 (var_reg_delete_and_set, var_mem_delete_and_set): Follow debug
1734 decl link. Delete other known locations of the variable part
1736 (var_reg_delete, var_mem_delete): Delete other known locations
1737 of the variable part if requested.
1738 (same_variable_part_p): New function.
1739 (add_stores): Select MO_COPY when appropriate.
1740 (vt_initialize): Handle it.
1741 (compute_bb_dataflow, emit_notes_in_bb): Likewise. Delete
1742 known locations for MO_SET and MO_CLOBBER.
1743 (find_variable_location_part): New function.
1744 (set_variable_part, delete_variable_part): Use it.
1745 (clobber_variable_part): New function.
1746 * dwarf2out.c (dwarf2out_var_location): Do not follow debug
1749 2006-08-07 Victor Kaplansky <victork@il.ibm.com>
1751 PR tree-optimization/26969
1752 * tree-vect-analyze.c (vect_analyze_loop_form): Add check of latch
1753 with an empty list of PHIs.
1755 2006-08-06 Paolo Bonzini <bonzini@gnu.org>
1759 * conffig/i386/i386.md: Add peephole2 to avoid "fld %st"
1762 2006-08-06 Andreas Schwab <schwab@suse.de>
1764 * config/m68k/m68k.c (m68k_output_function_epilogue): Fix format
1765 string. Whitespace and comment fixup.
1767 2006-08-05 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1770 * c-decl.c (validate_proto_after_old_defn): Return false on invalid
1774 * c-typeck.c (build_modify_expr): Test earlier for non-lvalues.
1777 * c-parser.c (c_parser_postfix_expression_after_paren_type): Robustify.
1779 2006-08-04 Jan Hubicka <jh@suse.cz>
1783 * reload.c (push_reload): Patch out the mismatching instruction;
1785 (find_reload): Bail out if the instruction was patched out.
1787 2006-08-04 Jan Hubicka <jh@suse.cz>
1789 PR tree-optimization/24888
1790 * tree-inline.c (expand_call_inline): Do not re-record variables.
1791 (declare_inline_vars): Add variable to unexpanded_var_list.
1793 2006-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1794 Roger Sayle <roger@eyesopen.com>
1796 PR rtl-optimization/26244
1797 * cse.c (fold_rtx): Correctly associate shifts when const_arg1 and/or
1798 inner_const are negative or greater than or equal to the bitsize of
1799 MODE. If SHIFT_COUNT_TRUNCATED is false, the values aren't associated.
1800 Otherwise, the values are masked using GET_MODE_BITSIZE (mode) - 1.
1801 Simplify complicated if statement. For ASHIFT and LSHIFTRT, return
1802 CONST0_RTX (mode) when the new shift count is greater than or equal to
1803 to the bitsize of the object being shifted and XEXP (y, 0) has no side
1806 2006-08-04 Kazu Hirata <kazu@codesourcery.com>
1808 * tree-cfg.c: Fix a comment typo.
1810 2006-08-03 Mark Mitchell <mark@codesourcery.com>
1813 * varasm.c (output_constant): Give the front end another chance to
1814 expand constants, after stripping NOPs.
1816 2006-08-03 Jan Hubicka <jh@suse.cz>
1818 * domwalk.c (walk_dominator_tree): Reorganize to non-recursive
1821 2006-08-03 Dorit Nuzman <dorit@il.ibm.com>
1823 PR tree-optimization/27770
1824 * tree-vectorizer.h (get_vectype_for_scalar_type): Function
1825 declaration removed (moved to tree-flow.h).
1826 (vect_can_force_dr_alignment_p): Likewise.
1827 * tree-flow.h (get_vectype_for_scalar_type): New function declaration
1828 (moved from tree-vectorizer.h).
1829 (vect_can_force_dr_alignment_p): Likewise.
1830 * tree-vectorizer.c (vect_print_dump_info): Allow calling this function
1831 from outside the vectorizer - in particular from cgraph stage.
1832 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Don't increase
1833 the alignment of global arrays when -fsection-anchors is enabled.
1834 * cgraphunit.c (cgraph_increase_alignment): New function.
1835 (cgraph_optimize): Call cgraph_increase_alignment.
1837 2006-08-03 David Edelsohn <edelsohn@gnu.org>
1840 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
1841 not reload a SPE symbol_ref into a lo_sum address.
1843 2006-08-02 Daniel Jacobowitz <dan@codesourcery.com>
1846 * dwarf2out.c (prune_unused_types_prune): Move call to
1847 prune_unused_types_update_strings to cover the parent DIE also.
1849 2006-08-02 Jan Hubicka <jh@suse.cz>
1851 PR gcov/profile/28480
1852 * tree-cfg.c (change_bb_for_stmt): New function.
1853 (tree_merge_blocks, tree_split_blocks): Use it.
1855 2006-08-01 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1861 * toplev.c (compile_file): Return early on errorcount or sorrycount.
1862 * cgraphunit.c (cgraph_finalize_compilation_unit): Likewise.
1863 (cgraph_optimize): Likewise.
1865 2006-08-01 Stuart Hastings <stuart@apple.com>
1867 * rtl.h (UINTVAL) New.
1868 * config/rs6000/rs6000.c (SMALL_INT) Use it.
1869 * testsuite/gcc.dg/20060801-1.c: New.
1871 2006-08-01 Daniel Jacobowitz <dan@codesourcery.com>
1874 * c-typeck.c (build_external_type): Mark used enum types.
1875 * dwarf2out.c (dwarf2out_abstract_function): Save and restore
1877 (gen_subprogram_die): Whitespace fix.
1879 2006-08-01 Jan Hubicka <jh@suse.cz>
1881 * tree-outof-ssa.c (check_replaceable): Do not allocate def_vars
1882 bitmap when not needed.
1883 * tree-ssa-pre.c (bitmap_set_and, bitmap_set_and_compl): Free temporary
1886 2006-08-01 Dirk Mueller <dmueller@suse.de>
1888 * tree-vrp.c (fix_equivalence_set): Avoid bitmap memory leak.
1890 2006-07-31 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1892 * Makefile.in: Revert part of previous patch:
1893 Replace $(VARRAY_H) by varray.h in definition of BASIC_BLOCK_H
1896 2006-07-30 Eric Christopher <echristo@apple.com>
1899 * doc/extend.texi (i386 Variable Attributes): Add anchor.
1900 (PowerPC Variable Attributes): New section.
1902 2006-07-30 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
1904 PR target/28126 (partial fix)
1905 * config/mips/mips.md (tls_get_tp_<mode>): Set can_delay to no.
1907 2006-07-28 Jan Hubicka <jh@suse.cz>
1909 PR rtl-optimization/28071
1910 * cfgrtl.c (rtl_delete_block): Free regsets.
1911 * flow.c (allocate_bb_life_data): Re-use regsets if available.
1913 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1915 * Makefile.in: Use $(HEADER_H) instead of header.h in dependencies
1916 and variables used in dependencies.
1918 2006-07-27 Arjan van de Ven <arjan@linux.intel.com>
1920 * config/i386/i386.md (stack_tls_protect_set_di) Use %gs rather than
1921 %fs for -mcmodel=kernel.
1922 (stack_tls_protect_test_di): Likewise.
1924 2006-07-27 Carlos O'Donell <carlos@codesourcery.com>
1926 * Makefile.in: Use mkinstalldirs.
1928 2006-07-27 H.J. Lu <hongjiu.lu@intel.com>
1931 * opts-common.c (prune_options): Skip joined switches.
1933 2006-07-27 Jan Hubicka <jh@suse.cz>
1935 PR rtl-optimization/28071
1936 * cselib.c (cselib_process_insn): Don't remove useless values too
1937 often for very large hashtables.
1939 2006-07-27 Jan Hubicka <jh@suse.cz>
1941 PR rtl-optimization/28071
1942 * global.c (greg_obstack): New obstack.
1943 (allocate_bb_info): Use it.
1944 (free_bb_info): Likewise.
1945 (modify_reg_pav): Likewise.
1947 2006-07-27 Roger Sayle <roger@eyesopen.com>
1949 * builtins.c (fold_fixed_mathfn): When long and long long are the
1950 same size, canonicalize llceil*, llfloor*, llround* and llrint*
1951 functions to their lceil*, lfloor*, lround* and lrint* forms.
1953 2006-07-27 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1956 * config/m32r/m32r.md (branch_insn): Reduce pc range for short
1958 (rev_branch_insn): Likewise.
1960 2006-07-27 Jan Hubicka <jh@suse.cz>
1962 PR rtl-optimization/28071
1963 * regmove.c (reg_is_remote_constant_p): Avoid quadratic behaviour.
1964 (reg_set_in_bb, max_reg_computed): New static variables.
1965 (regmove_optimize): Free the new array.
1966 (fixup_match_1): Update call of reg_is_remote_constant_p.
1968 2006-07-26 Jan Hubicka <jh@suse.cz>
1970 PR tree-optimization/27882
1971 * cgraph.c (cgraph_remove_node): Clear needed, reachable, next, previous
1973 * cgraphunit.c (cgraph_reset_node): Expect cgraph_remove_node to kill
1975 (cgraph_analyze_compilation_unit): Likewise.
1976 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
1977 * ipa-inline.c (cgraph_decide_recursive_inlining): Likewise.
1978 (cgraph_early_inlinine): Make order garbage collected.
1979 * Makefile.in (gt-ipa-inline): New garbagecollected file.
1981 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
1983 * dbxout.c (output_types_sort): Add a comment.
1984 (output_used_types): Free the VEC.
1986 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
1988 * function.c (reorder_fix_fragments): Delete.
1989 (reorder_blocks): Don't call it.
1990 (reorder_blocks_1): Put all subblocks under the origin block.
1992 2006-07-26 Zdenek Dvorak <dvorakz@suse.cz>
1994 PR rtl-optimization/27907
1995 * expr.c (force_operand): Use convert_move to handle FLOAT_EXTEND and
1998 2006-07-25 Roger Sayle <roger@eyesopen.com>
2001 * convert.c (convert_to_integer): When transforming (T)foo(x) into
2002 bar(x) check that bar's result type can represent all the values of T.
2004 2006-07-25 Zdenek Dvorak <dvorakz@suse.cz>
2006 * tree-chrec.c (chrec_convert_aggressive): Return NULL on failure.
2008 2006-07-25 Nick Clifton <nickc@redhat.com>
2010 * ggc-page.c (NUM_SIZE_LOOKUP): New constant - the length of the
2011 size_lookup[] array.
2012 (ggc_alloc_stat): Use NUM_SIZE_LOOKUP.
2013 (ggc_pch_count_object): Likewise.
2014 (ggc_pch_alloc_object): Likewise.
2015 (ggc_pch_write_object): Likewise.
2016 (init_ggc): Do not attempt to initialize entries in the
2017 size_lookup[] array for objects whose size is greater than than
2018 the length of the array.
2020 2006-07-25 Daniel Jacobowitz <dan@codesourcery.com>
2022 * dbxout.c (output_used_types_helper): Push queued types
2024 (output_types_sort): New.
2025 (output_used_types): Collect used types on a VEC and sort them
2028 2006-07-24 Richard Guenther <rguenther@suse.de>
2031 * cgraph.c (cgraph_remove_node): Do not check if dumps
2033 * cgraphunit.c (cgraph_optimize): Likewise.
2035 2006-07-24 Jan Hubicka <jh@suse.cz>
2037 PR rtl-optimization/28071
2038 * tree-cfg.c (tree_split_block): Do not allocate new stmt_list nodes.
2039 * tree-iterator.c (tsi_split_statement_list_before): Do not crash when
2040 splitting before first stmt.
2042 2006-07-24 Jan Hubicka <jh@suse.cz>
2044 PR rtl-optimization/28071
2045 * ipa-inline.c (update_caller_keys): Remove edges that
2046 are no longer inline candidates.
2048 2006-07-23 Daniel Jacobowitz <dan@codesourcery.com>
2051 * dbxout.c (output_used_types_helper, output_used_types): New.
2052 (dbxout_symbol): Call output_used_types.
2054 2006-07-23 Jan Hubicka <jh@suse.cz>
2058 * cgraph.c (cgraph_varpool_nodes): Export.
2059 (decide_is_variable_needed): Ignored "used" attribute in
2060 unit-at-a-time mode.
2061 * cgraph.h (cgraph_varpool_nodes): Declare.
2062 * cgraphunit.c (decide_is_function_needed): Ignored "used" attribute in
2063 unit-at-a-time mode.
2065 2006-07-23 Roger Sayle <roger@eyesopen.com>
2068 * gthr-solaris.h: Prototype __gthrw forms of thr_self, mutex_init and
2069 mutex_destroy even when !_LIBOOBJC. Remove duplicate prototype of
2070 the __gthrw form of thr_keycreate.
2071 (__gthread_key_delete): Silence the unused argument warning.
2073 2006-07-23 Steven Bosscher <steven@gcc.gnu.org>
2076 * config/elfos.h (ASM_OUTPUT_ASCII): Remove 'register' marks.
2077 Cache the last found '\0' marker to avoid quadratic behavior.
2079 2006-07-23 Jan Hubicka <jh@suse.cz>
2081 * i386.md (subsi_3_zext): Fix output template.
2083 2006-07-21 Mike Stump <mrs@apple.com>
2085 * doc/invoke.texi (C++ Dialect Options): Note that
2086 -fvisibility-inlines-hidden doesn't affect explicitly
2087 instantiationed inline methods.
2089 2006-07-20 Roger Sayle <roger@eyesopen.com>
2091 * config.gcc (i[34567]86-*-solaris2*): Add usegas.h to $tm_file
2092 if the target assembler is GNU binutils' gas.
2093 * config/i386/sol2-10.h (ASM_SPEC): Check USE_GAS to determine
2094 whether to pass GNU gas or native as command line options.
2096 2006-07-20 Jason Merrill <jason@redhat.com>
2098 * tree.c (remove_attribute): New fn.
2099 * tree.h: Declare it.
2101 2006-07-20 Paul Brook <paul@codesourcery.com>
2104 * cse.c (cse_insn): Add destination addresses to hash table. Check if
2105 they are invalidated by this instruction.
2107 2006-07-21 Danny Smith <dannysmith@users.sourceforge.net>
2110 * config/i386/cygming.h (MAX_OFILE_ALIGNMENT): Define.
2112 2006-07-20 Eric Christopher <echristo@apple.com>
2115 * config/i386/i386.h (OPTION_DEFAULT_SPECS): Reorder.
2117 2006-07-19 Eric Christopher <echristo@apple.com>
2119 * config/t-slibgcc-darwin (stmp-lipo): Remove.
2120 Rewrite dependencies for libgcc_s.1.dylib.
2122 2006-07-19 Jakub Jelinek <jakub@redhat.com>
2124 * except.c (duplicate_eh_regions_1): Clear next_peer.
2126 2006-07-17 Nathan Sidwell <nathan@codesourcery.com>
2128 * doc/invoke.texi (RS/6000 and PowerPC Options): Document that
2129 -mlongcall does not guarantee all calls will be long.
2130 * doc/extend.texi (long_call/short_call): Document that longcall
2131 does not guarantee a long call will be used.
2132 (longcall/shortcall): Likewise.
2134 2006-07-18 Roger Sayle <roger@eyesopen.com>
2137 * expmed.c (expand_shift): Additionally check that the shift_cost
2138 is not MAX_COST and that INTVAL(op1) is less than MAX_BITS_PER_WORD
2139 before implementing a LSHIFT_EXPR as a sequence of additions.
2140 * config/sh/sh.c (shift_costs): Return MAX_COST to inform the
2141 middle-end that DImode shifts need to be synthesized by expand.
2143 2006-07-18 Diego Novillo <dnovillo@redhat.com>
2146 * tree-ssa-operands.c (access_can_touch_variable): Update
2148 Return true if ALIAS is .GLOBAL_VAR.
2150 2006-07-18 David Daney <ddaney@avtrex.com>
2152 * gcc.c (display_help): Fix typo in help text.
2154 2006-07-18 Olivier Hainque <hainque@adacore.com>
2156 * tree.h (categorize_ctor_elements): Adjust prototype and add
2157 descriptive comment, both in accordance with the interface change
2159 * varasm.c (constructor_static_from_elts_p): New function.
2160 Whether a constructor node is a valid static constant initializer
2161 if all its elements are.
2162 (initializer_constant_valid_p) <CONSTRUCTOR value>: Use it.
2163 * output.h: Declare it.
2164 * expr.c (categorize_ctor_elements_1): Return whether the constructor
2165 is a valid constant initializer instead of computing the number of
2166 non-constant elements. Use constructor_static_from_elts_p for this
2167 purpose. Replace the head comment with an indication that this is a
2168 helper for categorize_ctor_elements.
2169 (categorize_ctor_elements): Same interface change as for the _1
2170 helper. Former head comment from this helper moved here, adjusted to
2171 account for the interface changes.
2172 (mostly_zeros_p): Adjust call to categorize_ctor_elements.
2173 (all_zeros_p): Likewise.
2174 * gimplify.c (gimplify_init_constructor): Decide whether we can make
2175 static versions of the constructor from the categorize_ctor_elements
2176 return value instead of the formerly computed number of non-constant
2179 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
2181 * configure: Regenerate.
2182 * Makefile.in (build_libsubdir): New configure substitution
2183 (build_libobjdir): New variable.
2184 (BUILD_LIBIBERTY): Use it.
2186 2006-07-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2189 * c-pragma.c (handle_pragma_pack): Handle invalid constants.
2191 2006-07-18 Alexandre Oliva <aoliva@redhat.com>
2194 * c-common.c (handle_weakref_attribute): Ignore attribute in
2195 the same conditions the alias attribute is ignored.
2197 2006-07-17 Carlos O'Donell <carlos@codesourcery.com>
2199 * dbxout.c (dbxout_function_end): Do not increment scope_labelno.
2200 (dbxout_begin_prologue): Increment scope_labelno.
2202 2006-07-17 Richard Henderson <rth@redhat.com>
2205 * tree-nested.c (create_tmp_var_for): Set DECL_COMPLEX_GIMPLE_REG_P
2208 2006-07-17 Roger Sayle <roger@eyesopen.com>
2209 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2211 * config/i386/gmon-sol2.c: Silence compilation warnings by partially
2212 synchronizing code with config/sparc/gmon-sol2.c. Remove #if 0
2213 blocks. #include "tconfig.h" and "tsystem.h" to prototype system
2214 functions such as sbrk, write, etc.. Add function prototypes.
2215 Convert function declarations from K&R to ISO C. Cast pointers
2216 to "long" and "unsigned long" instead of "int" and "unsigned int".
2217 Convert tokens following #endif into comments.
2219 2006-07-17 Toon Moene <toon@moene.indiv.nluug.nl>
2221 * invoke.texi: Remove mention of f77; Reformat table for
2222 inline parameter options correctly; mention that -malign-double
2223 is default on x86-64 targets.
2225 2006-07-17 Zdenek Dvorak <dvorakz@suse.cz>
2227 * tree-chrec.c (avoid_arithmetics_in_type_p): New.
2228 (convert_affine_scev, chrec_convert_aggressive): Use
2229 avoid_arithmetics_in_type_p. Do not check for the subtypes
2232 2006-07-17 Richard Sandiford <richard@codesourcery.com>
2235 * optabs.c (expand_doubleword_shift): Wrap the call to
2236 do_compare_rtx_and_jump with NO_DEFER_POP and OK_DEFER_POP.
2238 2006-07-17 Richard Sandiford <richard@codesourcery.com>
2241 * optabs.c (expand_binop): Pass next_methods rather than methods
2242 to expand_doubleword_shift.
2244 2006-07-17 J"orn Rennecke <joern.rennecke@st.com>
2247 * tree.h (dump_addr): Declare.
2248 * print-tree.c (dump_addr): New function.
2249 (print_node_brief, print_node): Use it.
2250 * print-rtl.c (print_rtx): Likewise.
2251 * common.opt (-fdump-noaddr): New option.
2252 * doc/invoke.texi (-fdump-noaddr): Document.
2253 * loop-unroll.c (si_info_hash): Make hash independent of addresses.
2254 (ve_info_hash): Likewise.
2256 2006-07-13 Andrew Haley <aph@redhat.com>
2258 PR tree-optimization/19505
2259 * tree-cfgcleanup.c (tree_forwarder_block_p): If we have an EH
2260 edge leaving this block, make sure that the destination of this
2261 block has only one predecessor.
2263 2006-07-17 Richard Guenther <rguenther@suse.de>
2265 PR tree-optimization/28238
2266 * tree-inline.c (copy_bb): Check if we produced valid
2267 gimple copying and substituting a stmt. If not, gimplify
2270 2006-07-16 Eric Botcazou <ebotcazou@adacore.com>
2272 * optabs.c (maybe_encapsulate_block): New function extracted from...
2273 (emit_libcall_block): ...here. Invoke it on the block of insns to
2274 maybe emit REG_LIBCALL/REG_RETVAL notes around the block.
2275 (emit_no_conflict_block): Likewise.
2277 2006-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
2279 * doc/install.texi (sparc-sun-solaris2*): Add GMP version number.
2281 2006-07-15 Roger Sayle <roger@eyesopen.com>
2283 * tree-gimple.c (is_gimple_stmt): Sink test of IS_EMPTY_STMT into
2284 a new NOP_EXPR case of the switch statement.
2286 2006-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
2289 * stor-layout.c (place_field): Take the bit field with
2290 an excessive size into account in the ms-bitfiled case.
2293 * stor-layout.c (place_field): Use DECL_BIT_FIELD_TYPE of
2294 the previous bit field.
2296 2006-07-14 Eliot Dresselhaus <eliot@sonic.net>
2299 * config/rs6000/spe.md (frob_di_df_2): Add m->r alternative.
2301 2006-07-14 Ulrich Weigand <uweigand@de.ibm.com>
2303 * config/s390/linux-unwind.h (s390_fallback_frame_state): Detect
2304 signal frames correctly even when the signal was installed with
2307 2006-07-14 Carlos O'Donell <carlos@codesourcery.com>
2309 * dbxout.c (dbxout_begin_prologue): Emit LFBB label at function start.
2310 (dbxout_function_end): Use local label LFBB. Remove hook
2312 (dbxout_source_line): Use local label LFBB.
2313 (dbxout_block): Likewise.
2314 (dbx_output_lbrac): Remove hook DBX_OUTPUT_LBRAC.
2315 (dbx_output_rbrac): Remove hook DBX_OUTPUT_RBRAC.
2316 * config/rs6000/linux64.h: Remove DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC,
2317 and DBX_OUTPUT_NFUN.
2319 2006-07-13 Janis Johnson <janis187@us.ibm.com>
2321 * doc/sourcebuild.texi (Test Directives): Document dg-shouldfail.
2323 2006-07-13 Jan Hubicka <jh@suse.cz>
2325 * cgraphunit.c (cgraph_varpool_analyze_pending_decls): Call
2327 * output.h (align_variable): Declare.
2328 * varasm.c (align_variable): Export.
2329 * value-prof.c (tree_value_profile_transformations): Recompute iterator
2330 when basic block changed.
2332 2006-07-13 Nick Clifton <nickc@redhat.com>
2334 * config/sh/sh.c (sh_reorg): Ignore deleted insns whilst
2335 walking the LOG_LINKS chain.
2337 2006-07-12 Geoffrey Keating <geoffk@apple.com>
2339 * doc/invoke.texi (C++ Dialect Options): Explain difference
2340 between -fvisibility-inlines-hidden and setting hidden
2341 visibility explicitly.
2343 2006-07-12 Eric Christopher <echristo@apple.com>
2345 * config/t-slibgcc-darwin (SHLIB_LINK): Don't munge stmp-lipo.
2346 (stmp-lipo): Depend on libgcc.a.
2348 2006-07-12 Kazu Hirata <kazu@codesourcery.com>
2350 * tree.c: Fix a comment typo.
2352 2006-07-12 Naveen.H.S <naveenh@kpitcummins.com>
2354 * config/m32c/muldiv.md (umulhisi3_c): Use only registers for
2356 (umulhisi3_r): Likewise.
2358 2006-07-12 Paolo Carlini <pcarlini@suse.de>
2361 * doc/install.texi (mips-sgi-irix6): Add note about IRIX 6.5.x,
2362 x < 19, vs wchar_t support.
2364 2006-07-12 Nick Clifton <nickc@redhat.com>
2366 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Use -isa=sh4-up
2367 instead of -isa=sh4.
2369 2006-07-12 Mike Stump <mrs@apple.com>
2371 * protoize.c (edit_fn_definition): Add volatile to clean_text_p.
2373 2006-07-10 Eric Christopher <echristo@apple.com>
2375 * config/t-slibgcc-darwin: Rewrite.
2377 2006-07-10 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2380 * Makefile.in (configure): add missing aclocal.m4 and acinclude.m4
2383 2006-07-08 Matthias Klose <doko@debian.org>
2385 * doc/sourcebuild.texi: Fix typo.
2387 2006-07-07 Mike Stump <mrs@apple.com>
2389 * toplev.c (process_options): Don't give -ffunction-sections may
2390 affect debugging warning for Mach-O.
2392 2006-07-07 James E Wilson <wilson@specifix.com>
2394 * config/mips/mips.md (cpu): Add sb1a.
2395 * config/mips/sb1.md: Modify almost all patterns to accept sb1a in
2396 addition to sb1. Adjust comments to clarify SB-1A differences from
2398 (ir_sb1a_load): New. Modify bypasses to use it.
2399 (ir_sb1a_simple_alu): Likewise.
2400 * config/mips/mips.c (mips_cpu_info_table): Add sb1a.
2401 (mips_rtx_cost_data): Add PROCESSOR_SB1A support.
2402 (mips_issue_rate): Add PROCESSOR_SB1A.
2403 (mips_multipass_dfa_lookahead): Use TUNE_SB1 instead of PROCESSOR_SB1.
2404 * config/mips/mips.h (processor_type): Add PROCESSOR_SB1A.
2405 (TARGET_SB1): Add PROCESSOR_SB1A check.
2406 (TUNE_SB1): Likewise.
2408 * config/mips/mips-protos.h (mips_store_data_bypass_p): New.
2409 * config/mips/mips.c (mips_store_data_bypass_p): New.
2410 * config/mips/sb1.md: Use mips_store_data_bypass_p instead of
2411 store_data_bypass_p.
2413 2006-07-08 Paul Brook <paul@codesourcery.com>
2416 * config/m68k/m68k.md: Add r-m patterns for 68881 movxf.
2418 2006-07-07 Richard Guenther <rguenther@suse.de>
2421 * tree.h (build_one_cst): Declare.
2422 * tree.c (build_one_cst): New function.
2423 * tree-ssa-math-opts.c (get_constant_one): Remove.
2424 (insert_reciprocals): Use build_one_cst.
2425 * fold-const.c (fold_plusminus_mult): Likewise.
2427 2006-07-07 Roger Sayle <roger@eyesopen.com>
2429 * pointer-set.c (pointer_set_destroy): Correct whitespace.
2430 * cfgloopanal.c (dump_graph): Likewise.
2431 * dojump.c (discard_pending_stack_adjust): Likewise.
2432 * fix-header.c (TARGET_EXTRA_INCLUDE, TARGET_EXTRA_PRE_INCLUDES):
2434 * alloc-pool.c (dump_alloc_pool_statistics): Likewise.
2435 * function.c (finalize_block_changes): Likewise.
2436 * gcc-common.c (ggc_free_overhead, dump_gcc_loc_statistics): Likewise.
2437 * tree-ssa-dce.c (clear_control_dependence_bitmap): Likewise.
2438 * rtl.c (dump_rtx_statistics): Likewise.
2439 * tree-ssa-structalias.c (sort_fieldstack, init_alias_heapvars):
2441 * varray.c (dump_varray_statistics): Likewise.
2442 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
2443 decode_decimal64, encode_decimal128, decode_decimal128,
2444 decimal_real_to_decimal): Likewise.
2446 2006-07-07 Richard Guenther <rguenther@suse.de>
2448 PR tree-optimization/28187
2449 * tree-vrp.c (vrp_operand_equal_p): New function.
2450 (vrp_bitmap_equal_p): Likewise.
2451 (update_value_range): Use them to compare old and new
2454 2006-07-06 Roger Sayle <roger@eyesopen.com>
2456 * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Add
2457 a default case to switch statement to silence compiler warnings.
2459 2006-07-06 Roger Sayle <roger@eyesopen.com>
2462 * configure.ac (HAVE_AS_IX86_FFREEP): On x86 targets check whether
2463 the configured assembler supports the x87's ffreep mnemonic.
2464 * configure: Regenerate.
2465 * config.in: Regenerate.
2467 * config/i386/i386.c (output_387_ffreep): New function.
2468 (output_fp_compare): Use output_387_ffreep to emit ffreep insns.
2469 (output_387_reg_move): Likewise.
2471 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
2473 Port to hosts whose 'sort' and 'tail' implementations
2474 treat operands with leading '+' as file names, as POSIX
2475 has required since 2001. However, make sure the code still
2476 works on pre-POSIX hosts.
2477 * Makefile.in (slowcompare): Port to POSIX 1003.1-2001,
2478 which says you should use "tail -c +N" rather than "tail +Nc".
2479 Fix a bug: the old code incorrectly skipped 15 bytes, not 16.
2481 2006-07-06 Zdenek Dvorak <dvorakz@suse.cz>
2483 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Fix typo in
2486 2006-07-06 David Edelsohn <edelsohn@gnu.org>
2489 * config/rs6000/rs6000.c (rs6000_legitimate_address): Do not allow
2490 PRE_{INC,DEC} of TFmode.
2492 2006-07-06 David Edelsohn <edelsohn@gnu.org>
2493 Alan Modra <amodra@bigpond.net.au>
2496 * config/rs6000/rs6000.c (insvdi_rshift_rlwimi_p): Correct shiftop
2499 2006-07-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2502 * config/alpha/predicates.md (alpha_swapped_comparison_operator):
2503 Remove duplicate gtu.
2505 2006-07-05 Jason Merrill <jason@redhat.com>
2509 * stor-layout.c (finish_record_layout): Copy TYPE_PACKED to variants.
2510 * c-common.c (handle_packed_attribute): So don't copy it here.
2511 * c-decl.c (finish_struct): Don't copy TYPE_ALIGN.
2513 2006-07-05 Mike Stump <mrs@apple.com>
2515 * doc/invoke.texi (Invoking G++): Clarify prose for g++.
2517 2006-07-05 H.J. Lu <hongjiu.lu@intel.com>
2520 * config.gcc: Check with_cpu for i[34567]86--*-solaris2.1[0-9]*.
2522 2006-07-05 Richard Guenther <rguenther@suse.de>
2525 * config/i386/i386.md (*negdf2_1): Restrict pattern to
2526 TARGET_SSE2 targets if using SSE math.
2527 (*absdf2_1): Likewise.
2529 2006-07-05 Richard Guenther <rguenther@suse.de>
2531 PR tree-optimization/28162
2532 * fold-const.c (fold_binary): For (-A) * (-B) -> A * B
2533 make sure to convert the operands to the correct type.
2535 2006-07-04 Paolo Bonzini <bonzini@gnu.org>
2537 PR tree-optimization/28218
2539 * tree-ssa-math-opts.c (execute_cse_reciprocals): Fix calls
2540 to calculate and free the dominator information.
2542 2006-07-04 Peter O'Gorman <peter@pogma.com>
2544 * mklibgcc.in: chmod 644 before ranlib during install.
2546 2006-07-04 Andrew Stubbs <andrew.stubbs@st.com>
2547 J"orn Rennecke <joern.rennecke@st.com>
2549 * configure.ac (.eh_frame data check): Use diff -b.
2551 2006-07-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2554 * Makefile.in (BUILD_RTL): Add build/vec.o.
2555 (build/gencondmd.o): Filter out -fkeep-inline-functions.
2556 (build/genextract): Delete.
2557 (build/genautomata): Likewise.
2559 2006-07-04 Alan Modra <amodra@bigpond.net.au>
2562 * config/rs6000/rs6000.c (function_arg_boundary): Double-word align
2563 128-bit IBM long doubles for ABI_V4.
2565 2006-07-03 Eric Botcazou <ebotcazou@adacore.com>
2567 * tree.c (range_in_array_bounds_p): New predicate.
2568 * tree.h (range_in_array_bounds_p): Declare it.
2569 * tree-eh.c (tree_could_trap_p) <ARRAY_RANGE_REF>: Use it to
2570 return a less conservative answer.
2571 * tree-sra.c (struct sra_elt): Add new pointer field 'groups'
2572 and flag 'is_group'.
2573 (IS_ELEMENT_FOR_GROUP): New macro.
2574 (FOR_EACH_ACTUAL_CHILD): Likewise.
2575 (next_child_for_group): New helper function.
2576 (can_completely_scalarize_p): Take into account groups.
2577 (sra_hash_tree): Handle RANGE_EXPR.
2578 (sra_elt_eq): Likewise.
2579 (lookup_element): Be prepared for handling groups.
2580 (is_valid_const_index): Delete.
2581 (maybe_lookup_element_for_expr) <ARRAY_REF>: Use in_array_bounds_p
2582 instead of is_valid_const_index.
2583 <ARRAY_RANGE_REF>: New case.
2584 (sra_walk_expr) <ARRAY_REF>: Use in_array_bounds_p instead of
2585 is_valid_const_index.
2586 <ARRAY_RANGE_REF>: Do not unconditionally punt.
2587 (scan_dump): Dump info for groups too.
2588 (decide_instantiation_1): Likewise.
2589 (decide_block_copy): Assert that the element is not a group.
2590 Propagate decision to groups.
2591 (generate_one_element_ref): Handle RANGE_EXPR.
2592 (mark_no_warning): Iterate over actual childs.
2593 (generate_copy_inout): Likewise.
2594 (generate_element_copy): Likewise.
2595 (generate_element_zero): Likewise.
2596 (generate_element_init_1): Likewise.
2597 (dump_sra_elt_name): Handle RANGE_EXPR.
2599 2006-07-03 Roger Sayle <roger@eyesopen.com>
2601 PR tree-optimization/26251
2602 * tree-ssa-threadupdate.c (redirection_block_p): New function.
2603 (thread_block): When optimizing for size refuse to thread jumps
2604 that would require duplication of blocks other than redirection
2607 2006-07-03 Paolo Bonzini <bonzini@gnu.org>
2609 * configure.ac: Fix thinko in previous check-in.
2610 * configure: Regenerate.
2612 2006-07-03 Paolo Bonzini <bonzini@gnu.org>
2615 * configure.ac (for lang...): Simplify nesting of conditionals.
2616 Test subdir_requires for non-enabled languages. Move processing
2617 of lang_opt_files and lang_tree_fiels below that test.
2618 * configure: Regenerate.
2619 * doc/sourcebuild.texi (Front End Config): Document subdir_requires.
2621 2006-07-01 Martin Michlmayr <tbm@cyrius.com>
2623 * doc/gcov.texi (Invoking Gcov): Add a missing word.
2625 2006-06-30 Kazu Hirata <kazu@codesourcery.com>
2627 * cfgexpand.c, config/i386/i386.c, genpreds.c, tree-cfg.c: Fix
2630 2006-06-29 Jason Merrill <jason@redhat.com>
2637 * tree.c (build_decl_stat): Don't hande #pragma visibility here.
2638 * c-common.c (c_determine_visibility): Handle it here.
2639 * c-decl.c (finish_decl): Call c_determine_visibility for
2641 * flags.h (enum symbol_visibility): Sort from most to least visibility.
2643 * varasm.c (default_assemble_visibility): Likewise.
2644 * c-common.c (handle_visibility_attribute): Complain about trying
2645 to give visibility to an already defined class, or trying to change
2646 declared visibility. Always attach the attribute.
2651 * attribs.c (decl_attributes): Ignore type-in-place attributes
2652 once the type has been defined.
2654 2006-06-29 Roger Sayle <roger@eyesopen.com>
2657 * c-lex.c (c_lex_with_flags) <CPP_N_INVALID>: Increment errorcount
2658 to indicate the cpplib has issued an error message for us.
2660 2006-06-29 Asher Langton <langton2@llnl.gov>
2663 * config/i386/i386.c (ix86_output_function_epilogue): Don't
2664 insert a label at the end of an function under Mach-O.
2666 2006-06-29 Eric Christopher <echristo@apple.com>
2667 Evan Cheng <evan.cheng@apple.com>
2669 * predicates.md (vector_all_ones_operand): New.
2670 (nonimmediate_or_sse_const_operand): Ditto.
2671 * config/i386/i386-protos.h (standard_sse_constant_opcode): Declare.
2672 * config/i386/i386.c (standard_sse_constant_opcode): Define.
2673 (standard_sse_mode_p): Ditto.
2674 (standard_sse_constant_p): Add case for -1 vector.
2675 (ix86_expand_vector_move): Try to use.
2676 * sse.md (*mov<mode>_internal): Use nonimmediate_or_sse_const_operand.
2677 Call standard_sse_constant_opcode.
2678 (*movv4sf_internal): Ditto.
2679 (*movv2df_internal): Ditto.
2681 2006-06-29 Roger Sayle <roger@eyesopen.com>
2683 * genpreds.c (write_match_code_switch): Correctly use XSTR instead
2684 of XEXP to extract the operands of a MATCH_CODE rtx.
2686 2006-06-28 Andrew Pinski <pinskia@gmail.com>
2688 * tree.c (tree_size): Do not waste tail padding in
2689 struct tree_string and make the size be the same as
2690 build_string will generate.
2692 2006-06-28 Jason Merrill <jason@redhat.com>
2695 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
2696 may_aliases already in the tag's annotations to the bitmap.
2698 2006-06-28 Roger Sayle <roger@eyesopen.com>
2700 * genpreds.c (write_predicate_stmts) <IOR>: Add missing break.
2702 2006-06-28 Roger Sayle <roger@eyesopen.com>
2704 * genpreds.c (generate_switch_p): New function.
2705 (add_mode_tests): Push the new mode test down inside an AND expr
2706 if this allows the switch-suitable MATCH_CODE to be near the root.
2707 (write_match_code_switch): New function to write a MATCH_CODE as
2709 (write_predicate_stmts): New function to write a predicate RTX
2710 expression as a sequence of statements.
2711 (write_one_predicate_function): Use write_predicate_stmts.
2712 (write_tm_constrs_h): Likewise.
2714 2006-06-26 Fred Fish <fnf@specifix.com>
2716 * config/mips/t-sb1: New file.
2717 * config.gcc (mipsisa64sb1-*-elf*): Add mips/t-sb1 to
2720 2006-06-26 DJ Delorie <dj@redhat.com>
2722 * config/m32c/m32c.c (m32c_print_operand): Fix sign-merging logic.
2724 2006-06-26 Naveen H.S <naveenh@kpitcummins.com>
2725 Jayant Sonar <jayants@kpitcummins.com>
2726 Jaydeep Vipradas <jaydeepv@kpitcummins.com>
2728 * config/m32c/addsub.md (addsi3, addsi3_1, addsi3_2): New.
2729 (subsi3, subsi3_1, subsi3_2): New.
2730 * config/m32c/bitops.md (andsi3, iorsi3, xorsi3): New.
2731 * config/m32c/mov.md (SI mov peephole): New.
2732 * config/m32c/m32.c (m32c_immd_dbl_mov): New.
2733 * config/m32c/m32c-protos.h (m32c_immd_dbl_mov): New.
2735 2006-06-26 Olivier Hainque <hainque@adacore.com>
2737 * function.c (aggregate_value_p): Honor DECL_BY_REFERENCE on
2738 a CALL_EXPR target function declaration.
2740 2006-06-26 Richard Guenther <rguenther@suse.de>
2742 * tree.c (build_string): Do not waste tail padding in
2745 2006-06-26 Richard Guenther <rguenther@suse.de>
2747 * ggc-page.c (init_ggc): Add missing element to size_lookup
2751 2006-06-23 Richard Guenther <rguenther@suse.de>
2753 * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
2754 sizes to MAX_ALIGNMENT. Fix the size_lookup table to honour
2755 alignment requests instead. Add verification code.
2756 Add struct tree_function_decl and struct tree_binfo size to
2757 extra_order_size_table. Add missing element to size_lookup
2760 2006-06-25 Eric Botcazou <ebotcazou@adacore.com>
2763 * fold-const.c (const_binop): Be prepared for self returning zero.
2764 Simplify code handling complex values.
2766 2006-06-24 Olivier Hainque <hainque@adacore.com>
2768 * gimplify.c (gimplify_scalar_mode_aggregate_compare): New function.
2769 (gimplify_expr): Use it for tcc_comparison of operands of non BLKmode
2772 2006-06-24 Olivier Hainque <hainque@adacore.com>
2774 * tree-ssa-loop-im.c (for_each_index): Handle ARRAY_RANGE_REF as
2775 ARRAY_REF, so have the callback called for the low bound expression.
2777 2006-06-23 Janis Johnson <janis187@us.ibm.com>
2779 * tree.h (DECIMAL_FLOAT_TYPE_P): New.
2780 * c-typeck.c (c_common_type): Disallow operations on decimal float
2781 types and other float types.
2782 * convert.c (convert_to_real): Don't ignore conversions involving
2783 decimal float types.
2785 2006-06-23 Olivier Hainque <hainque@adacore.com>
2787 * tree.c (max_int_size_in_bytes): New function, inspired from
2788 code in function.c:assign_temp.
2789 * tree.h (max_int_size_in_bytes): Declare.
2790 * function.c (assign_temp): Use it.
2791 * gimplify.c (create_tmp_var): Relax the assertions on the type
2792 properties, not mandating constant size any more.
2793 (force_constant_size): New static function.
2794 (gimple_add_tmp_var): Use it, forcing variable size to a
2795 constant upper bound if it is not constant on entry.
2797 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2800 * config/i386/winnt.c (ix86_handle_selectany_attribute): Move check
2801 for initialization and setting of one_only flag to ...
2802 (i386_pe_encode_section_info): ...here.
2803 (i386_pe_dllimport_p): Check for DECL_DLLIMPORT_P also.
2804 Recheck that the symbol has not been defined.
2806 2006-06-23 Richard Guenther <rguenther@suse.de>
2808 * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
2809 sizes to MAX_ALIGNMENT. Fix the size_lookup table to honour
2810 alignment requests instead. Add verification code.
2811 Add struct tree_function_decl and struct tree_binfo size to
2812 extra_order_size_table. Add missing element to size_lookup
2815 2006-06-22 Roger Sayle <roger@eyesopen.com>
2816 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2819 * expr.c (expand_expr_real_1) <VECTOR_CST>: Check whether the
2820 call to lang_hooks.types.type_for_mode returned NULL_TREE.
2822 2006-06-23 Ben Elliston <bje@au.ibm.com>
2824 * dfp.c (decimal_to_decnumber): Do not use decNumberNegate to
2825 negate dn -- manipulate it directly.
2827 2006-06-22 Roger Sayle <roger@eyesopen.com>
2828 Steven Bosscher <stevenb.gcc@gmail.com>
2831 * reload1.c (gen_reload): Call mark_jump_label on the new insns
2832 generated by gen_move_insn to add REG_LABEL notes if necessary.
2834 2006-06-22 Bob Wilson <bob.wilson@acm.org>
2836 * config/xtensa/lib1funcs.asm (MIN_ESA): Delete.
2837 (leaf_entry): Remove use of MIN_ESA.
2839 2006-06-22 Zdenek Dvorak <dvorakz@suse.cz>
2841 PR rtl-optimization/28121
2842 * cfgexpand.c (tree_expand_cfg): Clean EDGE_EXECUTABLE flag from
2845 2006-06-21 DJ Delorie <dj@redhat.com>
2847 * config/m32c/muldiv.md (mulhisi3_i): Only use registers for dest
2849 (mulhisi3_r): Likewise.
2851 2006-06-21 Richard Sandiford <richard@codesourcery.com>
2854 * coverage.c (coverage_counter_alloc): Leave the index type
2856 (coverage_counter_alloc): Use null arguments for operands 2 and 3
2859 2006-06-21 Andrew Pinski <pinskia@physics.uc.edu>
2861 * doc/invoke.texi (-fopenmp) Move to "Options Controlling C Dialect"
2862 section from the "Options for Code Generation Conventions".
2864 2006-06-21 Richard Henderson <rth@redhat.com>
2868 * config/alpha/predicates.md (small_symbolic_operand): Deny weak
2870 (global_symbolic_operand): Allow weak symbols, even if local_p.
2872 2006-06-21 Eric Botcazou <ebotcazou@adacore.com>
2874 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): New function.
2875 (find_interesting_uses_address): Punt if above function returns true.
2877 2006-06-21 Richard Guenther <rguenther@suse.de>
2879 * configure: Regenerated.
2881 2006-06-21 Joseph Myers <joseph@codesourcery.com>
2883 * config/mips/mips.c (function_arg): Where one part of a
2884 complex argument is in registers and the other part in the stack,
2885 return a REG not a PARALLEL.
2887 2006-06-21 Mark Mitchell <mark@codesourcery.com>
2889 * configure.ac: Set gcc_gxx_include_dir to $target/include/c++
2890 when cross-compiling. Do not substitute libstdcxx_incdir.
2891 * configure: Regenerated.
2893 2006-06-21 Jakub Jelinek <jakub@redhat.com>
2895 * varasm.c (mergeable_string_section): Check for embedded NULs and
2896 NUL termination in the first int_size_in_bytes (TREE_TYPE (decl))
2897 rather than TREE_STRING_LENGTH bytes.
2899 2006-06-21 Richard Guenther <rguenther@suse.de>
2901 * ggc-page.c (extra_order_size_table): Add var_ann_d,
2902 tree_ssa_name, bitmap_element and phi_node with 4 arguments
2905 2006-06-21 Richrad Guenther <rguenther@suse.de>
2907 * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
2908 Limit iteration over the dominators.
2910 2006-06-20 Roger Sayle <roger@eyesopen.com>
2912 * config/mips/iris6.h (LIB_SPEC): Add support for -pthread.
2913 (SUBTARGET_CPP_SPEC): Define _REENTERANT if -pthread specified.
2915 2006-06-20 Richard Guenther <rguenther@suse.de>
2916 Michael Matz <matz@suse.de>
2918 * alloc-pool.h (free_alloc_pool_if_empty): Prototype new
2920 * alloc-pool.c (free_alloc_pool_if_empty): New function.
2921 * et-forest.h (et_free_pools): Prototype new function.
2922 * et-forest.c (et_free_tree_force): Free parent occurrence.
2923 (et_free_pools): New function.
2924 * dominance.c (free_dominance_info): Free et-forest alloc
2927 2006-06-20 Roger Sayle <roger@eyesopen.com>
2929 * expr.c (expand_expr_real_1) <VECTOR_CST>: For vector constants with
2930 integer modes, attempt to directly construct an integer constant.
2932 * fold-const.c (native_encode_vector): Determine the size of each
2933 element from the vector type instead of the first vector element.
2935 * tree.c (build_constructor_single): Mark a CONSTRUCTOR as constant,
2936 if all of its elements/components are constant.
2937 (build_constructor_from_list): Likewise.
2939 2006-06-20 Zdenek Dvorak <dvorakz@suse.cz>
2941 PR tree-optimization/27331
2942 * tree-data-ref.c (free_data_ref): New function.
2943 (create_data_ref): Fail if the data reference has unknown access
2945 (free_data_refs): Use free_data_ref.
2947 2006-06-19 Andrew Pinski <pinskia@gmail.com>
2950 * tree-inline.c (setup_one_parameter): Strip useless
2951 type conversion before adding it to the IR.
2952 (declare_return_variable): Likewise.
2954 2006-06-19 Martin Michlmayr <tbm@cyrius.com>
2957 * c-common.c (c_common_truthvalue_conversion): Fix grammar in warning.
2959 2006-06-19 Mike Stump <mrs@apple.com>
2961 * tree.c (variably_modified_type_p): VM arguments don't make the
2964 2006-06-19 Richard Guenther <rguenther@suse.de>
2966 * tree-ssa-pre.c (try_combine_conversion): Strip useless
2967 type conversions after folding.
2969 2006-06-19 Richard Guenther <rguenther@suse.de>
2971 * ggc-page.c (extra_order_size_tab): Add entries with
2972 size of struct function and basic_block.
2973 (size_lookup): Extend to cover sizes up to 511.
2974 (ggc_alloc_stat): Adjust user.
2975 (ggc_pch_count_object): Likewise.
2976 (ggc_pch_alloc_object): Likewise.
2977 (ggc_pch_write_object): Likewise.
2979 2006-06-19 Zdenek Dvorak <dvorakz@suse.cz>
2981 * tree-ssa-loop-niter.c (implies_ge_p): New function.
2982 (derive_constant_upper_bound): Handle OP0 - CST in unsigned types
2985 2006-06-19 Denis Chertykov <denisc@overta.ru>
2987 * config/avr/libgcc.S : Correct my wrong previous commit.
2989 2006-06-19 Roger Sayle <roger@eyesopen.com>
2992 * expmed.c (expand_shift): On SHIFT_COUNT_TRUNCATED targets, we may
2993 have stripped a SUBREG from the shift count, so we may need to
2994 convert_to_mode back to the type's mode before calling make_tree.
2995 Use new_amount instead of amount to avoid expanding a tree twice.
2997 2006-06-19 Richard Guenther <rguenther@suse.de>
3000 * fold-const.c (operand_equal_p): Check if the argument types
3001 have the same precision before stripping NOPs.
3003 2006-06-19 Daniel Berlin <dberlin@dberlin.org>
3005 Fix PR tree-optimization/27341
3006 * tree-cfg.c (gimplify_val): Call mark_new_vars_to_rename on the
3008 * tree-complex.c (pass_lower_complex): Update SMT usage.
3010 2006-06-19 Andreas Krebbel <krebbel1@de.ibm.com>
3012 * config/s390/s390.md ("doloop_si64", "doloop_si31", "doloop_di"):
3013 Add a new alternative to the constraint strings. Add move of
3014 operand 1 to 3 to the splitter definition.
3015 ("doloop_si_long"): Second contraint alternative removed.
3017 2006-06-08 Anatoly Sokolov <aesok@post.ru>
3019 * config/avr/avr.h (avr_have_movw_lpmx_p): Declare.
3020 (TARGET_CPU_CPP_BUILTINS): Add __AVR_HAVE_MOVW__ and
3022 (AVR_HAVE_MOVW) Define.
3023 (ASSEMBLER_DIALECT): Use AVR_HAVE_MOVW.
3024 (ASM_SPEC): Add avr25.
3025 (LINK_SPEC): Add avr25.
3026 * config/avr/avr.c (avr_have_movw_lpmx_p): Add.
3027 (base_arch_s): Add new member 'have_movw_lpmx'.
3028 (avr_arch_types): Init 'have_movw_lpmx'.
3029 (avr_mcu_types): Add 'avr25'. Move attiny13, attiny2313, attiny24,
3030 attiny44, attiny84, attiny25, attiny45, attiny85, attiny261,
3031 attiny461, attiny861 and at86rf401 in 'avr25' arhitecture.
3032 (avr_override_options): Init 'avr_have_movw_lpmx_p'.
3033 (output_movhi, output_movsisf, ashlsi3_out, avr_rtx_costs): Use
3035 (avr_file_start): Do not output '.arh' derective.
3036 * config/avr/libgcc.S (mov_l): Use __AVR_HAVE_MOVW__.
3037 (__do_copy_data): Use __AVR_HAVE_LPMX__.
3038 * config/avr/avr.md (mcu_enhanced): Delete.
3039 (mcu_have_movw): Define.
3040 (negsi2, extendhisi2, zero_extendhisi2): Use 'mcu_have_movw'.
3041 (call_insn, call_value_insn): Use 'call_insn' and __AVR_HAVE_MOVW__.
3042 * config/avr/t-avr(MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add avr25.
3043 (MULTILIB_MATCHES): Add attiny13, attiny2313, attiny24, attiny44,
3044 attiny84, attiny25, attiny45, attiny85, attiny261, attiny461,
3045 attiny861 and at86rf401 devices.
3047 2006-06-18 Jie Zhang <jie.zhang@analog.com>
3049 * config/bfin/bfin.c (MAX_LOOP_LENGTH): Define to be 2042 instead
3052 2006-06-17 Karl Berry <karl@gnu.org>
3054 * doc/cpp.texi, doc/cppinternals.texi, doc/gcc.texi,
3055 doc/gccint.texi, doc/install.texi (@dircategory): Use
3056 "Software development" instead of "Programming", following
3057 the Free Software Directory.
3059 2006-06-17 Alexandre Oliva <aoliva@redhat.com>
3061 * config/i386/i386.c (legitimate_tls_address)
3062 <TARGET_GNU2_TLS>: Add tp after DTPOFF.
3063 * config/i386/i386.md (*tls_dynamic_gnu2_combine_32): Adjust.
3064 (*tls_dynamic_gnu2_combine_64): Likewise.
3066 2006-06-16 Richard Guenther <rguenther@suse.de>
3069 * fold-const.c (negate_expr_p): Do not introduce undefined
3070 overflow in negating INTEGER_CSTs.
3071 (fold_negate_expr): Rename from negate_expr. Revert last
3072 change for folding BIT_NOT_EXPR. Change semantics to
3073 return NULL_TREE for non-simplified negations. Do not
3074 strip type conversions and unify type handling.
3075 (negate_expr): New function, wrap around fold_negate_expr
3076 but ensure building a tree always. Strip type conversions
3077 here, fold to result type.
3078 (fold_unary): Use fold_negate_expr for folding NEGATE_EXPR.
3080 2006-06-16 Roger Sayle <roger@eyesopen.com>
3083 * reg-stack.c (subst_stack_regs): Handle noreturn function calls
3084 that (would) return their results in stack registers.
3086 2006-06-16 Michael Matz <matz@suse.de>
3087 Richard Guenther <rguenther@suse.de>
3089 * fold-const.c (fold_truthop): Only return new tree node if
3090 we canonicalized something.
3092 2006-06-16 Richard Guenther <rguenther@suse.de>
3094 * function.h (enum function_frequency): Move declaration
3095 out of struct function.
3096 (struct function): Move bool fields and the enum to the bitfield
3097 section. Reorder elements to avoid padding. Remove unused
3098 fields left over from the RTL inliner removal.
3099 * function.c (free_after_compilation): Do not zero removed fields.
3100 * Makefile.in (ipa-reference.o): Add $(FUNCTION_H) dependency.
3101 (ipa-type-escape.o): Likewise.
3103 2006-06-16 Richard Guenther <rguenther@suse.de>
3105 * cgraph.h (struct cgraph_local_info): Turn bool elements
3107 (struct cgraph_node): Likewise.
3108 (struct cgraph_varpool_node): Likewise.
3110 2006-06-15 Richard Guenther <rguenther@suse.de>
3112 * fold-const.c (fold_truth_not_expr): Rename from
3113 invert_truthvalue. Give it fold_* semantics to avoid
3115 (invert_truthvalue): New function. Wrapper around
3116 fold_truth_not_expr.
3117 (optimize_minmax_comparison): Avoid creating garbage.
3118 (fold_unary): Use fold_truth_not_expr for folding
3120 (fold_ternary): Replace uses of invert_truthvalue with
3121 fold_truth_not_expr where applicable.
3122 * tree.h (fold_truth_not_expr): Prototype.
3124 2006-06-16 Richard Guenther <rguenther@suse.de>
3126 PR tree-optimization/27781
3127 * Makefile.in (ipa-pure-const.o): Add $(TARGET_H) dependency.
3128 * ipa-pure-const.c (target.h): Include.
3129 (analyze_function): Do not analyze functions that do not
3132 2006-06-15 Andrew MacLeod <amacleod@redhat.com>
3135 * tree-dfa.c (referenced_vars_dup_list): Remove.
3136 (find_referenced_vars): Remove assert.
3137 (referenced_var_check_and_insert): Replace dup list with assert.
3138 * tree-ssa.c (delete_tree_ssa): Remove dup list processing.
3139 * tree-flow.h (referenced_vars_dup_list): Remove extern decl.
3141 2006-06-15 Richard Guenther <rguenther@suse.de>
3143 * tree-ssa-structalias.c (alias_get_name): Avoid creating
3144 extra unused identifiers if not dumping.
3145 (create_variable_info_for): Likewise.
3147 2006-06-15 Zdenek Dvorak <dvorakz@suse.cz>
3149 * tree-ssa-loop-niter.c (implies_nonnegative_p): New function.
3150 (derive_constant_upper_bound): Derive more precise upper bound in
3151 common cases. Return type changed to double_int.
3152 (record_estimate): Reflect the changed return type of
3153 derive_constant_upper_bound.
3154 * double-int.c (double_int_zext, double_int_sext): Fix.
3156 2006-06-15 Paolo Bonzini <bonzini@gnu.org>
3158 * configure.ac (CFLAGS): Get them from the toplevel or from the
3159 configure invocation.
3160 * configure: Regenerate.
3161 * Makefile.in (CFLAGS): Substitute value provided by configure.
3163 2006-06-14 Mark Mitchell <mark@codesourcery.com>
3166 * c-common.h (c_finish_omp_atomic): Adjust declaration.
3167 * c-omp.c (c_finish_omp_atomic): Return the expression to perform,
3168 rather than calling add_stmt on it.
3169 * c-parser.c (c_parser_omp_atomic): Adjust accordingly.
3171 2006-06-14 Andreas Krebbel <krebbel1@de.ibm.com>
3174 * reload1.c (reload): Remove registers returned by update_eliminables
3175 from used_spill_regs.
3177 2006-06-13 DJ Delorie <dj@redhat.com>
3179 * config/m32c/muldiv.md (mulpsi3): Expect arbitrary constants.
3181 2006-06-13 Carlos O'Donell <carlos@codesourcery.com>
3183 * Makefile.in: Define HTMLS_BUILD, HTMLS_INSTALL,
3184 html__strip_dir, html__mkdir_p. Enhance install-html target.
3185 * configure.ac: AC_SUBST datarootdir, docdir and htmldir.
3186 * configure: Regenerate.
3188 2006-06-13 Fariborz Jahanian <fjahanian@apple.com>
3190 * fold-const.c (fold_cond_expr_with_comparison): Check for
3191 Objective-C++ as language in deciding COND_EXPR transformation.
3193 2006-06-06 J"orn Rennecke <joern.rennecke@st.com>
3196 * config/sh/t-sh (LIB1ASMFUNCS): Add _udiv_qrnnd16
3197 * config/sh/sh.c (print_operand): Add !SHMEDIA functionality to 'M'.
3198 * config/sh/lib1funcs.h (SL, SL1): Define.
3199 * config/sh/lib1funcs.asm (__udiv_qrnnd16): New hidden function.
3200 * longlong.h (__sh__): Define umul_ppmm, udiv_qrnnd and sub_ddmmss.
3201 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): New rule.
3202 (OBJS_Os_4_200): New variable.
3203 ($(T)libgcc-Os-4-200.a): Use it.
3204 * sh.md (udivsi3): For TARGET_DIVIDE_CALL_TABLE, avoid function call
3205 when dividing 1 and/or by 0.
3207 2006-06-13 Roger Sayle <roger@eyesopen.com>
3209 * configure.ac (HAS_MCONTEXT_T_UNDERSCORES): Include <sys/signal.h>
3210 before <ucontext.h> to define sigset_t required by <sys/ucontext.h>.
3211 * configure: Regenerate.
3213 2006-06-13 Jie Zhang <jie.zhang@analog.com>
3215 * config/bfin/bfin.c (bfin_reorg_loops): Only call recog_memoized ()
3216 for real instruction.
3218 2006-06-13 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3221 * haifa-sched.c (check_cfg): Handle special case.
3223 2006-06-13 Eric Botcazou <ebotcazou@adacore.com>
3226 * gimplify.c (declare_tmp_vars): Rename into declare_vars.
3227 Add debug_info parameter. Chain the vars to the BLOCK instead
3228 of the BIND_EXPR if debug info are requested for them.
3229 (pop_gimplify_context): Adjust for above change.
3230 (gimple_add_tmp_var): Likewise.
3231 * tree-gimple.h (declare_tmp_vars): Rename into declare_vars.
3233 * tree-nested.c (convert_nonlocal_reference): Adjust for above change.
3234 (convert_local_reference): Likewise.
3235 (get_local_debug_decl): Set DECL_IGNORED_P on the original variable.
3236 (finalize_nesting_tree_1): Request that debug info be emitted
3237 for debug_var_chain.
3239 2006-06-13 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3241 * haifa-sched.c (unlink_other_notes, unlink_line_notes): Fix the patch
3242 for PR target/27863.
3244 2006-06-13 Richard Guenther <rguenther@suse.de>
3247 * except.c (output_ttype): Expand type with EXPAND_INITIALIZER.
3249 2006-06-13 Richard Guenther <rguenther@suse.de>
3251 PR tree-optimization/27830
3252 * tree-inline.c (copy_body_r): For copying the operand
3253 of an ADDR_EXPR make sure to fold &* afterwards.
3255 2006-06-12 Eric Botcazou <ebotcazou@adacore.com>
3257 * gimplify.c (gimplify_expr): Treat VIEW_CONVERT_EXPR like other
3258 lvalues in the fb_none case with side-effects.
3260 2006-06-12 Kazu Hirata <kazu@codesourcery.com>
3262 * tree-flow.h: Remove the prototype for
3263 compute_phi_arg_on_exit.
3264 * tree-ssa-loop-ivopts.c (protect_loop_closed_ssa_form_use,
3265 protect_loop_closed_ssa_form, compute_phi_arg_on_exit):
3268 2006-06-12 Mark Shinwell <shinwell@codesourcery.com>
3270 * builtins.c (expand_builtin_return_addr): Only use
3271 frame_pointer_rtx when count == 0 and we are expanding
3272 __builtin_return_address.
3274 2006-06-12 Fred Fish <fnf@specifix.com>
3276 * config/mips/mips.c (mips_file_start): Create special section
3277 ".gcc_compiled_longXX" for o64 ABI as well as EABI.
3279 2006-06-11 Eric Christopher <echristo@apple.com>
3282 * stor-layout.c (place_field): Remove check for
3283 remaining_in_alignment when aligning at the end of a run.
3285 2006-06-11 Eric Christopher <echristo@apple.com>
3288 * doc/extend.texi (Structure-Packing Pragmas): Document ms_struct
3291 2006-06-11 Roger Sayle <roger@eyesopen.com>
3294 Revert incorrect fix for PR target/27158
3295 2006-05-08 Roger Sayle <roger@eyesopen.com>
3296 * reload.c (find_reloads_toplev): Only return the simplified SUBREG
3297 of a reg_equiv_constant if the result is a legitimate constant.
3299 2006-06-11 Roger Sayle <roger@eyesopen.com>
3302 * config/rs6000/rs6000.c (const_vector_elt_as_int): New function to
3303 extract a CONST_VECTOR element and interpret it as an integer.
3304 (vspltis_constant): Use const_vector_elt_as_int instead of the
3305 macro CONST_VECTOR_ELT in order to handle FP vector modes.
3306 * config/rs6000/predicates.md (easy_vector_const): Consider
3307 floating point ALTIVEC_VECTOR_MODEs via easy_altivec_constant.
3309 2006-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
3312 * stor-layout.c (update_alignment_for_field): Don't add extra
3313 alignment for packed non-bitfield fields in ms_bitfield_layout_p
3316 2006-06-09 Ralf Corsepius <ralf.corsepius@rtems.org>
3318 * config/mips/t-rtems: Add EL/EB multilib variants.
3320 2006-06-09 Mike Stump <mrs@apple.com>
3322 * c-typeck.c (c_begin_vm_scope): Fix file_scope processing.
3324 2006-06-09 David Daney <ddaney@avtrex.com>
3326 * doc/install.texi: Add binutils version recommendation for mips-*-*.
3328 2006-06-09 Andreas Krebbel <krebbel1@de.ibm.com>
3330 * reload.c (find_reloads): Unset force_reload for 'X' constraint.
3332 2006-06-09 Richard Guenther <rguenther@suse.de>
3334 PR tree-optimization/26998
3335 * tree-vrp.c (extract_range_from_unary_expr): For NEGATE_EXPR
3336 of signed types, only TYPE_MIN_VALUE is special, but for both,
3337 minimum and maximum value. Likewise VR_ANTI_RANGE is special
3338 in this case, as is -fwrapv.
3340 2006-06-08 Mike Stump <mrs@apple.com>
3343 * config/darwin.c (darwin_asm_output_anchor): Disable
3344 -fsection-anchors on darwin for now.
3345 * config/darwin.h (TARGET_ASM_OUTPUT_ANCHOR): Likewise.
3346 * rs6000/rs6000.c (optimization_options): Likewise.
3348 2006-06-08 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3351 * config/i386/i386.c (classify_argument): Skip fields with invalid
3354 2006-06-08 Steven Bosscher <steven@gcc.gnu.org>
3356 * cse.c (flush_hash_table): Use VOIDmode to invalidate a REG.
3357 (cse_insn): Likewise for the stack_pointer_rtx.
3359 2006-06-08 Roger Sayle <roger@eyesopen.com>
3361 * tree-ssa-dom.c (record_conditions): Only record "unordered"
3362 conditions from floating point comparisons.
3364 2006-06-08 Paolo Bonzini <bonzini@gnu.org>
3367 * expmed.c (struct alg_hash_entry): Fix type of field T
3368 to match synth_mult argument.
3369 (NUM_ALG_HASH_ENTRIES): Make it bigger for 64-bit HOST_WIDE_INT.
3371 2006-06-08 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3374 * haifa-sched.c (unlink_other_notes, unlink_line_notes): Update basic
3377 2006-06-08 Richard Guenther <rguenther@suse.de>
3380 * fold-const.c (negate_expr_p): We can negate BIT_NOT_EXPR
3381 only, if overflow is defined and not trapping.
3382 (negate_expr): Likewise.
3384 2006-06-07 Zdenek Dvorak <dvorakz@suse.cz>
3386 PR tree-optimization/27872
3387 * tree-ssa-loop-manip.c (tree_unroll_loop): Set EDGE_IRREDUCIBLE_LOOP
3388 flag on the new exit edge of the unrolled loop.
3390 2006-06-07 Zdenek Dvorak <dvorakz@suse.cz>
3392 PR rtl-optimization/26449
3393 * loop-invariant.c (move_invariant_reg): Fail if force_operand fails.
3395 2006-06-07 Andrew MacLeod <amacleod@redhat.com>
3398 * tree-dfa.c (referenced_vars_dup_list): New. List of duplicate
3399 referenced_variables with matching DECL_UID's.
3400 (find_referenced_vars): Make sure duplicate list is empty to start.
3401 (referenced_var_p): Remove.
3402 (referenced_var_check_and_insert): Renamed from referenced_var_insert.
3403 Check if var is in the list, and add if needed. Update the duplicate
3404 list if a different var is in the list with the same DECL_UID.
3405 (add_referenced_var): Call routine to check and insert.
3406 * tree-ssa.c (delete_tree_ssa): Clear var_ann's on duplicates.
3407 * tree-flow.h (referenced_vars_dup_list): External declaration.
3409 2006-06-07 Fred Fish <fnf@specifix.com>
3411 * config/mips/t-elf (MULTILIB_MATCHES): Combine two entries
3414 2006-06-07 Paolo Bonzini <bonzini@gnu.org>
3417 * reg-stack.c (subst_stack_regs_pat): Reorder resetting of
3418 the imaginary and real parts of a clobbered register.
3419 Emit insn to set the imaginary part.
3421 2006-06-06 Peter Lemieszewski <lemie@us.ibm.com>
3423 * config/s390/t-tpf (LIB2ADDEH): Include unwind-dw2-fde-glibc.c
3424 in lieu of unwind-dw2-fde.c.
3426 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3428 * config/i386/mingw32.h (GOMP_SELF_SPECS): Define.
3430 2006-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3433 * config/rs6000/altivec.md (UNSPEC_VSLW): Remove.
3434 ("altivec_vspltisw_v4sf", "altivec_vslw_v4sf"): Remove.
3435 ("mulv4sf3", "absv4sf3", "negv4sf3"): Adapt users to use
3436 V4SImode temporaries and operations instead.
3438 2006-06-06 Joseph S. Myers <joseph@codesourcery.com>
3440 * config/mips/t-linux64 (tp-bit.c): Append to tp-bit.c, not
3443 2006-06-06 Mike Stump <mrs@apple.com>
3445 * Makefile.in: Rename to htmldir to build_htmldir to avoid
3446 installing during build.
3448 2006-06-06 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3450 * params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): Change default
3452 * doc/invoke.texi (max-sched-extend-regions-iters): Document.
3453 * config/ia64/ia64.c (params.h): New header.
3454 (ia64_optimization_options): New function to adjust parameters.
3455 * config/ia64/ia64-protos.h (ia64_optimization_options): New prototype.
3456 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): New macro.
3457 * config/ia64/t-ia64 (ia64.o): Add dependence from params.h .
3459 2006-06-05 Kazu Hirata <kazu@codesourcery.com>
3461 * stor-layout.c (debug_rli): Fix a typo in a debug message.
3463 2006-06-05 Steve Ellcey <sje@cup.hp.com>
3466 * config/ia64/ia64.c (ia64_select_rtx_section): Check TARGET_NO_SDATA.
3468 2006-06-05 Dorit Nuzman <dorit@il.ibm.com>
3469 Victor Kaplansky <victork@il.ibm.com>
3471 PR tree-optimization/26360
3472 * tree-vectorizer.c (destroy_loop_vec_info): Remove (dead) pattern
3475 2006-06-04 Roger Sayle <roger@eyesopen.com>
3476 Andrew Pinski <pinskia@physics.uc.edu>
3479 * c-common.c (c_common_truthvalue_conversion): Explicitly check
3480 for LABEL_DECL before calling DECL_WEAK.
3483 * c-typeck.c (build_binary_op): Likewise, explicitly check for
3484 LABEL_DECL and PARM_DECL.
3486 2006-06-05 Joseph S. Myers <joseph@codesourcery.com>
3490 * c-decl.c (grokdeclarator): Disallow variably modified types at
3491 file scope. Avoid marking shared array type of constant size as
3494 2006-06-04 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3497 * c-common.c (fold_offsetof_1): Handle static members.
3499 2006-06-04 Eric Christopher <echristo@apple.com>
3501 * stor-layout.c (start_record_layout): Initialize remaining_in_alignment.
3502 (debug_rli): Output value for remaining_in_alignment.
3503 (update_alignment_for_field): Unconditionalize
3504 ms_bitfield_layout_p code. Handle non-bitfield fields. Remove
3505 extra alignment code.
3506 (place_field): Don't realign if ms_bitfield_layout_p. Unconditionalize
3507 ms_bitfield_layout_p code. Rewrite handling of structure fields.
3508 * tree.h (record_layout_info_s): Remove prev_packed.
3509 * doc/extend.texi (ms_struct): Add documentation of format.
3511 2006-06-04 Mark Shinwell <shinwell@codesourcery.com>
3513 * tree.h: Declare folding_initializer.
3514 * builtins.c (fold_builtin_constant_p): Give definite answer
3515 if folding inside an initializer.
3516 * fold-const.c: Define folding_initializer.
3517 (START_FOLD_INIT): Save and then set folding_initializer.
3518 (END_FOLD_INIT): Restore folding_initializer.
3520 2006-06-04 Richard Guenther <rguenther@suse.de>
3522 PR tree-optimization/27039
3523 * fold-const.c (fold_comparison): Handle pointer comparison
3524 again for all comparison codes. Compare offsets in signed
3526 (fold_binary): Move code from here.
3528 2006-06-03 Roger Sayle <roger@eyesopen.com>
3531 * config/i386/i386.c (construct_container): Split static issued_error
3532 flag into issued_sse_arg_error, issued_sse_ret_error and
3533 issued_x87_ret_error. Issue a daignostic if the x86-64 ABI
3534 requires the use of x87 registers and the user explicitly
3535 specified the -mno-80387 command line option.
3537 2006-06-02 Geoffrey Keating <geoffk@apple.com>
3539 * config/rs6000/host-darwin.c (sigaltstack): Protect prototype with
3540 HAVE_DECL_SIGALTSTACK.
3542 (segv_handler): Use MC_FLD.
3543 * configure.ac: Check for a sigaltstack declaration.
3544 Compute HAS_MCONTEXT_T_UNDERSCORES on Darwin.
3545 * configure: Regenerate.
3546 * config.in: Regenerate.
3548 2006-06-03 J"orn Rennecke <joern.rennecke@st.com>
3551 * Makefile.in (stmp-fixinc): Fix typo.
3553 2006-06-02 Roger Sayle <roger@eyesopen.com>
3555 * fold-const.c (fold_unary) <CONJ_EXPR>: Ensure folded expressions
3556 are type correct. Clean-up.
3557 <REALPART_EXPR>: Likewise. Optimize creal(~z) as creal(z).
3558 <IMAGPART_EXPR>: Likewise. Optimize cimag(~z) as -cimag(z).
3560 2006-06-01 DJ Delorie <dj@redhat.com>
3562 * config/v850/v850.h (ASM_OUTPUT_ADDR_DIFF_ELT): Disabled the
3563 shift, as we've disabled the "switch" insn that needs it.
3565 2006-06-01 Per Bothner <bothner@bothner.com>
3567 Suppress extra '#1 <built-in> or '#1 <command line>' on -dD output.
3568 * c-opts.c (finish_options): Use internal line 0 for <command-line>.
3569 * c-ppoutput.c (cb_define): Don't increment line 0.
3571 2006-06-01 Pete Steinmetz <steinmtz@us.ibm.com>
3573 * doc/invoke.texi: Add cpu_type power6.
3574 * config.gcc: Add cpu_type power6.
3575 * config/rs6000/rs6000.c (rs6000_override_options): Alias power6
3576 to power5+ with Altivec.
3577 * config/rs6000/aix52.h (ASM_CPU_SPEC): Add power6.
3578 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add power6.
3580 2006-05-30 Anatoly Sokolov <aesok@post.ru>
3582 * config/avr/avr.h (SET_ASM_OP): Define.
3584 2006-06-01 Kazu Hirata <kazu@codesourcery.com>
3586 * config/bfin/bfin.c: Fix comment typos.
3588 2006-06-01 Paolo Bonzini <bonzini@gnu.org>
3591 * doc/install.texi: Document --enable-bootstrap and
3592 --disable-bootstrap.
3594 2006-06-01 Paolo Bonzini <bonzini@gnu.org>
3596 * doc/install.texi: Document that InfoZIP can replace jar.
3598 2006-05-31 Roger Sayle <roger@eyesopen.com>
3600 * config/i386/i386.c (ix86_expand_fp_absneg_operator): When SSE
3601 isn't available, directly generate the simpler x87 patterns without
3602 the (use (const_int 0)).
3603 * config/i386/i386.md (*negsf2_1): Enable pre-reload if the SSE
3604 implementation isn't available.
3605 (*negdf2_1): Likewise.
3606 (*negxf2_1): XF mode negation is always done using the x87.
3607 (*abssf2_1, *absdf2_1, *absxf2_1): Likewise^3 for fabs.
3609 2006-05-31 Roger Sayle <roger@eyesopen.com>
3611 * builtins.c (fold_builtin_cabs): Delete prototype. Require an
3612 additional FNDECL argument. Optimize cabs(-z) and cabs(~z) as
3614 (fold_builtin_decl) <BUILT_IN_CABS>: Update fold_builtin_cabs call.
3616 2006-05-31 Jie Zhang <jie.zhang@analog.com>
3618 * config/bfin/bfin-protos.h (bfin_hardware_loop): Declare.
3619 * config/bfin/bfin.c (basic-block.h): Include.
3620 (struct machine_function): New.
3621 (bfin_init_machine_status): New.
3622 (override_options): Initialize init_machine_status.
3623 (bfin_hardware_loop): New.
3624 (MAX_LOOP_DEPTH, MAX_LOOP_LENGTH): Define.
3625 (DEF_VEC_P (loop_info)): New.
3626 (DEF_VEC_ALLOC_P (loop_info,heap)): New.
3627 (struct loop_info): New.
3628 (loop_info): New typedef.
3629 (struct loop_work): New.
3630 (loop_work): New typedef.
3631 (DEF_VEC_O (loop_work)): New.
3632 (DEF_VEC_ALLOC_O (loop_work,heap)): New.
3633 (bfin_dump_loops): New.
3634 (bfin_bb_in_loop): New.
3635 (bfin_scan_loop): New.
3636 (bfin_optimize_loop): New.
3637 (bfin_reorg_loops): New.
3638 (bfin_reorg): Use bfin_reorg_loops.
3639 * config/bfin/bfin.h (FIRST_PSEUDO_REGISTER): Adjust for adding
3641 (I_REGNO_P): Simplify.
3642 (DP_REGNO_P, DPREG_P): New macros.
3643 (REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
3644 REG_ALLOC_ORDER): Add LT0, LT1, LC0, LC1, LB0, LB1.
3645 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
3646 Add LT_REGS, LC_REGS, LB_REGS.
3647 (REG_CLASS_FROM_LETTER): Add 't' for LT_REGS, 'k' for LC_REGS,
3649 (REGNO_REG_CLASS): Deal with loop registers.
3650 * config/bfin/bfin.md: Add comment for 't', 'k', 'l' constraint
3652 (REG_LT0, REG_LT1, REG_LC0, REG_LC1, REG_LB0, REG_LB1):
3653 New constants for loop registers.
3654 (UNSPEC_LSETUP_END): New.
3655 (seq_insns): New define_attr. Set it for appropriate insns.
3656 (movsi_insn): Add alternatives for move from/to
3657 loop count registers.
3658 (doloop_end): New define_expand.
3659 (loop_end): New define_insn.
3660 (define_split for bad doloop_end): New.
3661 (lsetup_with_autoinit): New define_insn.
3662 (lsetup_without_autoinit): New define_insn.
3663 (rep_movsi, rep_movhi): Clobber LT1, LC1, LB1.
3664 * config/bfin/predicates.md (lc_register_operand): New.
3665 (lt_register_operand): New.
3666 (lb_register_operand): New.
3667 (nondp_register_operand): New.
3668 (nondp_reg_or_memory_operand): New.
3669 * doc/md.texi: Document Blackfin new 't', 'k', 'l' constraint letters.
3671 2006-05-31 Jie Zhang <jie.zhang@analog.com>
3673 * config/bfin/bfin.c (bfin_delegitimize_address): New.
3674 (TARGET_DELEGITIMIZE_ADDRESS): Define.
3676 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
3678 * Makefile.in (CATALOGS): Add po/ prefix.
3679 * configure: Regenerated.
3681 2006-05-31 Richard Earnshaw <richard.earnshaw@arm.com>
3684 * arm.c (arm_print_operand case 'S'): Validate that the operand is
3685 a shift operand before calling shift_op. Avoid redundant call of
3688 2006-05-30 Naveen.H.S <naveenh@kpitcummins.com>
3689 DJ Delorie <dj@redhat.com>
3691 * config/m32c/m32c.c (m32c_expand_insv): Check that the value
3692 we're inserting is a singlt-bit constant.
3694 2006-05-30 Roger Sayle <roger@eyesopen.com>
3696 * simplify-rtx.c (simplify_binary_operation_1) <LSHIFTRT>: Cast
3697 width to HOST_WIDE_INT to avoid comparison warnings on some targets.
3699 2006-05-30 Roger Sayle <roger@eyesopen.com>
3701 PR tree-optimization/23452
3702 * fold-const.c (fold_mult_zconjz): New subroutine of fold_binary,
3703 to optimize z * conj(z) as realpart(z)^2 + imagpart(z)^2.
3704 (fold_binary) <MULT_EXPR>: Call fold_mult_zconjz for integral
3705 complex values and with -ffast-math for FP complex values.
3707 2006-05-30 Kazu Hirata <kazu@codesourcery.com>
3709 * c-common.h: Remove the prototype for yyparse.
3710 * rtl.h: Remove the prototype for init_loop.
3712 2006-05-30 Andreas Krebbel <krebbel1@de.ibm.com>
3714 * cse.c (validate_canon_reg, cse_insn): Don't change insns without
3717 2006-05-30 Roger Sayle <roger@eyesopen.com>
3719 * simplify-rtx.c (simplify_binary_operation): Unfactor the shift
3721 <LSHIFTRT>: Optimize (lshiftrt (clz X) C) as (eq X 0) where C is
3722 log2(GET_MODE_BITSIZE(X)) on targets with the appropriate semantics.
3724 2006-05-30 Dirk Mueller <dmueller@suse.de>
3727 * c-common.c (convert_and_check): Only track TREE_CONSTANT_OVERFLOW
3728 for CONSTANT_CLASS_P expresisons.
3730 2006-05-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3733 * c-typeck.c (c_expr_sizeof_type): Handle invalid types.
3735 2006-05-30 Zdenek Dvorak <dvorakz@suse.cz>
3737 PR tree-optimization/27779
3738 * tree-data-ref.c (analyze_siv_subscript_cst_affine): Use
3739 initial_condition instead of CHREC_LEFT.
3741 2006-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
3743 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Fix type of begin_label.
3744 * config/m32r/initfini.c (__do_global_dtors, __do_global_ctors):
3745 Make prototypes ISO C90.
3747 2006-05-30 Mircea Namolaru <namolaru@il.ibm.com>
3748 Leehod Baruch <leehod.baruch@weizmann.ac.il>
3750 * see.c (see_analyze_one_def): Correct check.
3751 (see_get_extension_data): Check if extension is parallel.
3752 (see_get_extension_reg): Likewise.
3754 2006-05-30 Uros Bizjak <uros@kss-loka.si>
3757 * config/i386/i386.c (ix86_expand_int_vcond): Force cop0
3758 into register for (code == GTU).
3760 2006-05-29 Roger Sayle <roger@eyesopen.com>
3762 PR tree-optimization/24964
3763 * simplify-rtx.c (simplify_binary_operation_1): Add function comment.
3764 <MULT>: Minor clean-up. Don't convert x*-1.0 into -x if we honor
3765 signaling NaNs. Optimize -x*-x as x*x for all float modes, and
3766 abs(x)*abs(x) as x*x for scalar floating point modes.
3768 2006-05-29 Sebastian Pop <pop@cri.ensmp.fr>
3771 * lambda-code.c (perfect_nestify): Don't copy statements
3772 in the inner loop: move them to the inner loop header.
3774 2006-05-29 Diego Novillo <dnovillo@redhat.com>
3777 * c-tree.texi: Document OpenMP directives and clauses.
3779 2006-05-29 Kazu Hirata <kazu@codesourcery.com>
3781 * varasm.c (globalize_decl): Fix indentation.
3783 2006-05-29 Diego Novillo <dnovillo@redhat.com>
3786 * doc/passes.texi: Add documentation for pass_vrp, pass_ipa_pta,
3787 pass_fre, pass_store_ccp, pass_copy_prop,
3788 pass_store_copy_prop, pass_merge_phi, pass_nrv,
3789 pass_return_slot, pass_object_size, pass_lim,
3790 pass_linear_transform, pass_empty_loop, pass_complete_unroll,
3791 pass_loop_prefetch and pass_stdarg.
3793 2005-05-29 Bernd Schmidt <bernd.schmidt@analog.com>
3795 * config/bfin/bfin.opt (mfdpic): New option.
3796 * config/bfin/t-bfin-elf (EXTRA_PARTS): Add crtbeginS.o and crtendS.o.
3797 (EXTRA_MULTILIB_PARTS): Likewise.
3798 (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS): Use -fpic.
3799 (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Build one extra -mfdpic
3801 * config/bfin/elf.h (STARTFILE_SPEC): Don't link in crt0.o if -shared.
3802 (CRT_CALL_STATIC_FUNCTION): New.
3803 * config/bfin/uclinux.h (STARTFILE_SPEC): Don't link in crt0.o if
3805 (CRT_CALL_STATIC_FUNCTION): New.
3806 * config/bfin/bfin.c (legitimize_pic_address): Now static. Handle
3808 (n_pregs_to_save): PIC register doesn't need to be saved with FD-PIC.
3809 (print_operand): Handle UNSPEC_MOVE_FDPIC and UNSPEC_FUNCDESC_GOT17M4.
3810 (initialize_trampoline): Changed to handle FD-PIC code generation.
3811 (expand_move): If TARGET_FDPIC, use emit_pic_move as needed.
3812 (bfin_expand_call): Generate FD-PIC calls if TARGET_FDPIC.
3813 (override_options): Disallow -mid-shared-library -mfdpic combination.
3814 Can't do unaligned ops if FD-PIC.
3815 Turn off flag_pic if trying to generate non-id-shared-library
3816 non-fdpic code, since it's not supported.
3817 (bfin_assemble_integer): New function.
3818 (TARGET_ASM_INTEGER): Define.
3819 * config/bfin/crti.s (__init, __fini): Save P3 on the stack if
3821 * config/bfin/crtn.s: Restore them.
3822 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __BFIN_FDPIC__
3824 (DRIVER_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
3825 LINK_GCC_C_SEQUENCE_SPEC, ASM_SPEC, LINK_SPEC): New macros.
3826 (FDPIC_FPTR_REGNO, FDPIC_REGNO, OUR_FDPIC_REG): New macros.
3827 (TRAMPOLINE_SIZE, TRAMPOLINE_TEMPLATE): Adjust for FD-PIC.
3828 (CONDITIONAL_REGISTER_USAGE): If TARGET_FDPIC, FDPIC_REGNO is
3830 (enum reg_class, REG_CLASS_CONTENTS, REG_CLASS_NAMES): Add
3831 FDPIC_REGS and FDPIC_FPTR_REGS.
3832 (REG_CLASS_FROM_LETTER): Use 'Z' and 'Y' for them.
3833 * config/bfin/bfin.md (UNSPEC_MOVE_FDPIC, UNSPEC_FUNCDESC_GOT17M4,
3834 UNSPEC_VOLATILE_LOAD_FUNCDESC): New constants.
3835 (load_funcdescsi): New pattern.
3836 (call_symbol_fdpic, sibcall_symbol_fdpic, call_value_symbol_fdpic,
3837 sibcall_value_symbol_fdpic, call_insn_fdpic, sibcall_insn_fdpic,
3838 call_value_insn_fdpic, sibcall_value_insn_fdpic): New patterns.
3840 2006-05-29 Kazu Hirata <kazu@codesourcery.com>
3842 * gcse.c, rtlanal.c: Remove obsolete comments associated with
3845 * config/bfin/bfin.h (PARM_BOUNDRY, STACK_BOUNDRY): Remove.
3847 * tree-flow.h: Remove the prototype for add_type_alias.
3848 * tree-ssa-alias.c (add_type_alias): Remove.
3850 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
3852 * cfgcleanup.c, cfgexpand.c, cgraphunit.c, config/arm/arm.c,
3853 config/fr30/fr30.md, config/i386/i386-interix.h,
3854 config/i386/i386.c, config/i386/i386.md, config/sh/superh.h,
3855 config/sh/superh64.h, config/v850/v850.c, df-core.c,
3856 df-problems.c, df.h, except.c, final.c, haifa-sched.c,
3857 lambda-code.c, libgcc2.h, omp-low.c, optabs.c, predict.c,
3858 reload.c, tree-flow.h, tree-outof-ssa.c, tree-ssa-dce.c,
3859 tree-ssa-pre.c, tree-vect-transform.c: Fix comment typos.
3860 Follow spelling conventions.
3861 * doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix typos.
3862 Follow spelling conventions.
3864 2006-05-27 Richard Guenther <rguenther@suse.de>
3867 * fold-const.c (fold_plusminus_mult_expr): Use fold_convert
3868 to produce a constant of value 1 of generic type.
3870 2006-05-27 Dirk Mueller <dmueller@suse.de>
3872 * cgraphunit.c (decide_is_function_needed): Fix wrong
3875 2006-05-26 Ulrich Weigand <uweigand@de.ibm.com>
3877 PR rtl-optimization/27661
3878 * reload.c (find_reloads): When reloading a VOIDmode constant
3879 as address due to an EXTRA_MEMORY_CONSTRAINT or 'o' constraint,
3880 use Pmode as mode of the reload register.
3882 2006-05-26 Eric Botcazou <ebotcazou@adacore.com>
3884 * doc/invoke.texi (Optimize Options): Document that -funit-at-a-time
3885 is enabled at -O and above.
3887 2006-05-26 Steven Bosscher <steven@gcc.gnu.org>
3890 * config/alpha/alpha.c (alpha_does_function_need_gp): Skip jump
3893 2006-05-25 Mark Mitchell <mark@codesourcery.com>
3896 * gimplify.c (gimplify_decl_expr): Do not call gimple_add_tmp_var
3897 for anonymous variables explicitly declared by front ends.
3899 2006-05-25 Eric Botcazou <ebotcazou@adacore.com>
3901 * tree-ssa-structalias.h (PTR_IS_REF_ALL): New macro.
3902 (struct alias_info): Add new field ref_all_symbol_mem_tag.
3903 * tree-ssa-alias.c (compute_may_aliases): If the program contains
3904 ref-all pointers, run a finalization pass for them.
3905 (compute_flow_insensitive_aliasing): Skip ref-all pointers.
3906 (finalize_ref_all_pointers): New function.
3907 (is_escape_site): Return ESCAPE_BAD_CAST for conversion from a
3908 regular pointer type to a ref-all pointer type.
3909 (get_tmt_for): Return the special memory tag for ref-all pointers.
3911 2006-05-25 Richard Guenther <rguenther@suse.de>
3914 * fold-const.c (fold_binary): Do not look at the stripped
3915 op0 for (a OP c1) OP c2 to a OP (c1+c2) shift optimization.
3917 2006-05-25 Eric Botcazou <ebotcazou@adacore.com>
3919 * tree-vrp.c (extract_range_from_assert): Set the range to VARYING
3920 for LT and GT if the computed range is effectively empty.
3922 2006-05-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3925 * pa/pa-modes.def: Use mips_single_format, mips_double_format and
3926 mips_quad_format formats instead of ieee_single_format,
3927 ieee_double_format and ieee_quad_format formats, respectively.
3929 2006-05-24 Zdenek Dvorak <dvorakz@suse.cz>
3931 PR tree-optimization/27639
3932 PR tree-optimization/26719
3933 * tree-vrp.c (adjust_range_with_scev): Use scev_direction and adjust
3934 call to scev_probably_wraps_p.
3935 * tree-ssa-loop-niter.c (compare_trees, convert_step_widening,
3936 used_in_pointer_arithmetic_p, convert_step): Removed.
3937 (nowrap_type_p): New function.
3938 (scev_probably_wraps_p): Rewritten.
3939 * tree-scalar-evolution.c (instantiate_parameters_1): Do not call
3940 chrec_convert if chrec_convert_aggressive might have been used.
3941 * tree-chrec.c (convert_affine_scev, chrec_convert_1,
3942 scev_direction): New functions.
3943 (chrec_convert): Changed to a wrapper over chrec_convert_1.
3944 * tree-ssa-loop-ivopts.c (idx_find_step): Use convert_affine_scev
3945 instead of convert_step.
3946 * tree-flow.h (scev_probably_wraps_p): Declaration changed.
3947 (convert_step): Declaration removed.
3948 (convert_affine_scev, nowrap_type_p, scev_direction): Declare.
3950 2006-05-23 Kenneth Zadeck <zadeck@naturalbridge.com>
3952 * df-core.c: Added to header comments.
3953 * df.h (df_ru_bb_info, df_rd_bb_info, df_lr_bb_info,
3954 df_ur_bb_info, df_urec_bb_info): Added comments.
3955 * df-problems (df_ref_bitmap, ru, rd, lr, ur,
3956 urec, ri problems): Fixed header comments.
3957 (df_ru_transfer_function): Fixed in-out set dyslexia when copying
3958 code from df_rd_transfer_function.
3960 2006-05-23 Richard Sandiford <richard@codesourcery.com>
3962 * libgcc2.c (LIBGCC2_MAX_UNITS_PER_WORD): New macro.
3963 (LIBGCC2_UNITS_PER_WORD): Use LIBGCC2_MAX_UNITS_PER_WORD rather than
3964 MIN_UNITS_PER_WORD to set the default. Also use it in the guard.
3966 2006-05-23 Joseph Myers <joseph@codesourcery.com>
3968 * expr.c (undefined_operand_subword_p): New.
3969 (emit_move_multi_word): Do not generate move from undefined bits
3970 of a paradoxical subreg.
3972 2006-05-23 Richard Sandiford <richard@codesourcery.com>
3974 PR rtl-optimization/27736
3975 * combine.c (replaced_rhs_value): New variable.
3976 (combine_instructions): Set it.
3977 (distribute_notes): When distributing a note in replaced_rhs_insn,
3978 check whether the value was used in replaced_rhs_value.
3980 2006-05-23 Andrew MacLeod <amacleod@redhat.com>
3983 * tree-ssa-loop-im.c (determine_invariantness_stmt): Use
3984 add_referenced_var instead of add_referenced_tmp_var.
3985 * tree-complex.c (create_one_component_var): Use add_referenced_var.
3986 * tree-ssa-loop-manip.c (create_iv, tree_unroll_loop): Use
3988 * tree-tailcall.c (adjust_accumulator_values, adjust_return_value,
3989 tree_optimize_tail_calls_1): Use add_referenced_var.
3990 * tree-ssa-loop-ivopts.c (create_new_iv): Use add_referenced_var.
3991 * tree-ssa-alias.c (create_memory_tag, create_global_var, create_sft):
3992 Use add_referenced_var.
3993 * tree-if-conv.c (ifc_temp_var): Use add_referenced_var.
3994 * gimplify.c (force_gimple_operand): Use add_referenced_var.
3995 * tree-ssa-phiopt.c (conditional_replacement, abs_replacement):
3996 Use add_referenced_var.
3997 * tree-dfa.c (struct walk_state): Remove.
3998 (find_referenced_vars): Remove walk state and vars_found hash table.
3999 (make_rename_temp): Use add_referenced_var.
4000 (find_vars_r): Pass less parameters to add_referenced_var.
4001 (referenced_var_p): New. Is var in referenced_var hash table.
4002 (referenced_var_insert): Assert var isn't already in hash table.
4003 (add_referenced_var): Don't need walk_state parameter. Add var if it
4004 isn't already in the hash table.
4005 (add_referenced_tmp_var): Remove.
4006 (find_new_referenced_vars_1): Use add_referenced_var.
4007 * tree-ssa-pre.c (create_expression_by_pieces,
4008 insert_into_preds_of_block, insert_extra_phis, realify_fake_stores):
4009 Use add_referenced_var.
4010 * tree-vect-patterns.c (vect_pattern_recog_1): Use add_referenced_var.
4011 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
4012 lambda_loopnest_to_gcc_loopnest, perfect_nestify): Use
4014 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
4015 vect_create_data_ref_ptr, vect_create_destination_var,
4016 vect_init_vector, vect_build_loop_niters,
4017 vect_generate_tmps_on_preheader, vect_update_ivs_after_vectorizer,
4018 vect_gen_niters_for_prolog_loop, vect_create_cond_for_align_checks):
4019 Use add_referenced_var.
4020 * tree-outof-ssa.c (create_temp): Use add_referenced_var.
4021 * tree-flow.h (add_referenced_tmp_var): Remove prototype
4022 (add_referenced_var): Add prototype.
4023 * tree-ssa-structalias.c (get_constraint_for,
4024 intra_create_variable_infos): Use add_referenced_var.
4026 2006-05-23 Alexandre Oliva <aoliva@redhat.com>
4028 * simplify-rtx.c (simplify_subreg): Adjust REG_OFFSET for
4029 big-endian paradoxical subregs.
4030 * var-tracking.c (struct micro_operation_def): Document that,
4031 for modify micro operations, insn is the subsequent instruction.
4032 (var_reg_delete_and_set, var_mem_delete_and_set): Split into...
4033 (var_reg_set, var_mem_set): ... new functions.
4034 (add_stores): Record subsequent insn.
4035 (compute_bb_dataflow): Use new functions for MO_USE.
4036 (emit_notes_in_bb): Use new functions for MO_USE. Emit use
4037 notes after the insn, and modify notes before the insn known
4038 to be the subsequent one.
4039 (vt_initialize): Invert sorting of MO_CLOBBERs and MO_SETs.
4041 2006-05-23 Kazu Hirata <kazu@codesourcery.com>
4044 * config/i386/i386.c (ix86_expand_builtin): Use
4045 gen_sse3_monitor64 for TARGET_64BIT.
4047 2006-05-22 Kenneth Zadeck <zadeck@naturalbridge.com>
4049 PR rtl-optimization/26375
4050 PR rtl-optimization/26855
4051 * df-problems (df_ru_bb_local_compute_process_def): Removed update
4053 (df_ru_bb_local_compute): Reversed statements and removed bogus
4054 comment explaining why they should be in wrong order.
4055 (df_ru_dump, df_rd_dump): Enhanced debug info.
4056 * modulo-sched.c (sms_schedule, tree_opt_pass pass_sms): Enhanced
4058 * ddg.c (add_deps_for_def): Converted use of reaching defs to
4059 reaching uses and fixed space problem.
4061 2006-05-23 Jan Hubicka <jh@suse.cz>
4063 * cgraphunit.c (decide_is_function_needed): Also nested functions
4064 and functions declared inline can be optimized out at -O0.
4066 2006-05-22 Gerald Pfeifer <gerald@pfeifer.com>
4068 * doc/install.texi (Configuration): Remove reference to CrossGCC
4072 2006-05-22 Kazu Hirata <kazu@codesourcery.com>
4075 * config/i386/i386.c (ix86_expand_branch): Jump to simple if
4076 ix86_compare_emitted is non-NULL.
4078 2006-05-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
4081 * stmt.c (expand_asm_operands): Skip asm statement with erroneous
4084 2006-05-22 Richard Sandiford <richard@codesourcery.com>
4086 PR rtl-optimization/25514
4087 * combine.c (replaced_rhs_insn): New variable.
4088 (combine_instructions): Set replaced_rhs_insn when trying to replace
4089 a SET_SRC with a REG_EQUAL note.
4090 (distribute_notes): Use replaced_rhs_insn when determining the live
4091 range of a REG_DEAD register.
4093 2006-18-05 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
4094 Anatoly Sokolov <aesok@post.ru>
4096 * config/avr/avr.c (avr_mcu_types): Add support for attiny261,
4097 attiny461, attiny861, attiny25, attiny45, attiny85, attiny24,
4098 attiny44, attiny84, at90pwm2, at90pwm3, atmega165p, atmega169p,
4099 atmega164p, atmega324p, atmega644p, atmega644, atmega329,
4100 atmega3290, atmega649, atmega6490, atmega406, atmega640,
4101 atmega1280, atmega1281, at90can32, at90can64, at90usb646,
4102 at90usb647, at90usb1286 and at90usb1287 devices.
4103 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
4104 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
4106 2006-05-22 Richard Sandiford <richard@codesourcery.com>
4108 * mklibgcc.in (lib2funcs): Remove _floatdidf from initial assignment.
4110 2006-05-22 Richard Guenther <rguenther@suse.de>
4113 2006-01-31 Richard Guenther <rguenther@suse.de>
4114 Paolo Bonzini <bonzini@gnu.org>
4116 * doc/install.texi (--disable-libgcc-math): Document.
4118 2006-05-22 Richard Guenther <rguenther@suse.de>
4121 2006-01-31 Richard Guenther <rguenther@suse.de>
4123 * doc/invoke.texi (-msselibm): Document.
4124 * target.h (expand_library_builtin): New target hook.
4125 * builtins.c (expand_builtin): Use expand_library_builtin.
4126 (default_expand_library_builtin): New function.
4127 * gcc.c (LINK_GCC_MATH_SPEC): Define.
4128 (LINK_COMMAND_SPEC): Handle %(link_gcc_math).
4129 (link_gcc_math_spec): Declare.