1 2006-10-06 Olivier Hainque <hainque@adacore.com>
3 * gimplify.c (gimplify_type_sizes) [POINTER_TYPE, REFERENCE_TYPE]:
4 Don't recurse on the pointed-to type.
5 * c-decl.c (grokdeclarator) [cdk_pointer]: If we are in a NORMAL or
6 DECL context, attach an artificial TYPE_DECL to anonymous pointed-to
7 types with components of variable size.
9 2006-10-06 Danny Smith <dannysmith@users.sourceforge.net>
11 config/i386/mingw32.h (GOMP_SELF_SPECS): Add -mthreads for openmp.
13 2006-10-06 Jakub Jelinek <jakub@redhat.com>
15 PR tree-optimization/29290
16 * tree-loop-linear.c (linear_transform_loops): Bail if loop_nest has
20 * config/i386/i386.c (legitimize_pic_address): Reject TLS symbols.
21 * config/i386/predicates.md (local_symbolic_operand): Likewise.
24 * varasm.c (output_constant): If TREE_VECTOR_CST_ELTS chain is shorter than
25 the number of vector elements fill the rest with zeros.
27 2006-10-05 Richard Sandiford <richard@codesourcery.com>
29 * config/mips/mips.c (mips_pass_by_reference): Do not return false
30 for EABI if type is NULL. Use a size check based on GET_MODE_SIZE
33 2006-10-05 Bernd Schmidt <bernd.schmidt@analog.com>
35 * config/bfin/bfin.md (subsi3): Lose expander, change previously
36 unnamed pattern into subsi3. Use correct constraints/predicates.
37 * config/bfin/bfin.h (CONST_OK_FOR_K): Handle "KN7".
38 * config/bfin/predicates.md (reg_or_neg7bit_operand_p): New.
40 2006-10-05 Ira Rosen <irar@il.ibm.com>
42 * doc/loop.texi: Add data references analysis description.
44 2006-10-04 Brooks Moses <bmoses@stanford.edu>
46 * doc/gcov.texi: Add formatting to "Invoking gcov" section head.
48 2006-10-04 Richard Henderson <rth@redhat.com>
49 Jakub Jelinek <jakub@redhat.com>
51 * Makefile.in (libgcc.mk, LIBGCC_DEPS): Add emutls.c.
52 * builtin-types.def (BT_WORD): Make unsigned.
53 (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
54 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
55 (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
56 * c-decl.c (grokdeclarator): Don't error if !have_tls.
57 * c-parser.c (c_parser_omp_threadprivate): Likewise.
58 * cgraph.c (decide_is_variable_needed): Look at force_output.
59 Recurse for emulated tls.
60 * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Remove
61 checks redundant with decide_is_variable_needed.
62 (cgraph_build_static_cdtor): Do cgraph_varpool_assemble_pending_decls.
63 * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
65 * expr.c (emutls_var_address): New.
66 (expand_expr_real_1): Expand emulated tls.
67 (expand_expr_addr_expr_1): Likewise.
68 * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
69 * output.h (emutls_finish): Declare.
70 * toplev.c (compile_file): Call it.
71 * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
72 address before wrapping in CONST.
73 * varasm.c (emutls_htab, emutls_object_type): New.
74 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
75 (get_emutls_object_name, get_emutls_object_type): New.
76 (get_emutls_init_templ_addr, emutls_decl): New.
77 (emutls_common_1, emutls_finish): New.
78 (assemble_variable): When emulating tls, swap decls; generate
79 constructor for the emutls objects.
80 (do_assemble_alias): When emulating tls, swap decl and target name.
81 (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
84 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
85 tls_object for real tls.
87 2006-10-04 Zack Weinberg <zackw@panix.com>
89 Fix bug in constraint-check generator, reported by Rask Ingemann
91 * genpreds.c (add_constraint): Don't remove anything from the
93 (write_tm_constrs_h): Detect whether "op" argument is used, and
94 mark it ARG_UNUSED if it isn't.
95 (write_insn_const_int_ok_for_constraint): Skip the part of the
96 expression that would test whether "op" (which is not available
99 2006-10-04 Ryan Mansfield <rmansfield@qnx.com>
102 * doc/invoke.texi (fdiagnostics-show-option): Fix typos.
104 2006-10-03 Geoffrey Keating <geoffk@apple.com>
106 * config/i386/darwin-libgcc.10.5.ver: Update to symbol list for
107 current Leopard versions.
108 * config/rs6000/darwin-libgcc.10.5.ver: Likewise.
110 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
112 * doc/install.texi: Fix typos.
114 2006-10-03 Eric Botcazou <ebotcazou@libertysurf.fr>
116 * builtins.c (expand_builtin_return_addr): Deal with FRAME_ADDR_RTX.
117 * doc/tm.texi (Basic Stack Layout): Document FRAME_ADDR_RTX.
118 * config/sparc/sparc.h (FRAME_ADDR_RTX): Define.
120 2006-10-02 Jack Howarth <howarth@bromo.med.uc.edu>
122 * unwind-dw2-fde-darwin.c (getsectdatafromheader_64): Fix first
123 arg to be struct mach_header_64* instead.
125 2006-10-02 Jakub Jelinek <jakub@redhat.com>
128 * gimplify.c (gimplify_self_mod_expr): Run inner expression's post
129 side effects after the outer expression's post side effects.
131 2006-10-01 Sandra Loosemore <sandra@codesourcery.com>
133 * tree.h (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET): Fix
134 comments to reflect actual behavior and relationship between
135 DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET, and DECL_OFFSET_ALIGN.
137 * doc/c-tree.texi (Working with declarations): Fix documentation
138 of FIELD_DECL likewise.
140 2006-10-01 Ryan Mansfield <rmansfield@qnx.com>
143 * doc/extend.texi: Add used variable attribute description.
145 2006-09-30 Joseph S. Myers <joseph@codesourcery.com>
148 * c.opt (Woverride-init): New.
149 * c-opts.c (c_common_post_options): Default warn_override_init to
151 * c-typeck.c (add_pending_init, output_init_element): Warn for
152 overriding initializers without side effects.
153 * doc/invoke.texi (-Woverride-init): Document.
156 2006-09-30 Eric Botcazou <ebotcazou@libertysurf.fr>
158 PR rtl-optimization/28096
159 * ifcvt.c (check_cond_move_block): Return FALSE if the source of an
160 assignment has already been used as a destination earlier in the block.
162 2006-09-29 Eric Botcazou <ebotcazou@adacore.com>
164 * builtins.c (expand_builtin_setjmp): Delete.
165 (expand_builtin) <BUILT_IN_SETJMP>: Mark as unreachable.
166 <BUILT_IN_SETJMP_SETUP>: New case.
167 <BUILT_IN_SETJMP_DISPATCHER>: Likewise.
168 <BUILT_IN_SETJMP_RECEIVER>: Likewise.
169 * builtins.def (BUILT_IN_SETJMP_SETUP): New built-in stub.
170 (BUILT_IN_SETJMP_DISPATCHER): Likewise.
171 (BUILT_IN_SETJMP_RECEIVER): Likewise.
172 * gimple-low.c (struct lower_data): New field calls_builtin_setjmp.
173 (lower_function_body): Initialize it to false. If it is set to true
174 at the end of the processing, emit the setjmp dispatcher.
175 (lower_stmt) <CALL_EXPR>: Invoke lower_builtin_setjmp if the callee
176 is __builtin_setjmp and set calls_builtin_setjmp to true as well.
177 <MODIFY_EXPR>: Fall through to above case if there is a CALL_EXPR
178 on the rhs of the assignment.
179 (lower_builtin_setjmp): New function.
180 * tree.c (build_common_builtin_nodes): Build BUILT_IN_SETJMP_SETUP,
181 BUILT_IN_SETJMP_DISPATCHER and BUILT_IN_SETJMP_RECEIVER nodes.
182 * tree-cfg.c (make_exit_edges) <CALL_EXPR>: Use specific predicate
183 to detect calls that can go to non-local labels. Use specific
184 helper to create the abnormal edges associated with them.
185 <MODIFY_EXPR>: Likewise.
186 (make_abnormal_goto_edges): New function extracted from...
187 (make_goto_expr_edges): ...here. Call it for computed gotos.
188 (simple_goto_p): Minor tweak.
189 (tree_can_make_abnormal_goto): New predicate.
190 (tree_redirect_edge_and_branch): Return zero on all abnormal edges.
191 (tree_purge_dead_abnormal_call_edges): New function.
192 * tree-flow.h (tree_can_make_abnormal_goto): Declare.
193 (tree_purge_dead_abnormal_call_edges): Likewise.
194 (make_abnormal_goto_edges): Likewise.
195 * tree-inline.c (expand_call_inline): Simplify statement frobbing.
196 Purge all dead abnormal edges if the call was in the last statement.
197 * tree-optimize.c (has_abnormal_outgoing_edge_p): New predicate.
198 (execute_fixup_cfg): If there are non-local labels in the function,
199 scan the basic blocks and split them at calls that can go to non-local
200 labels or add missing abnormal call edges. Write down the CFG in the
202 (pass_fixup_cfg): Remove TODO_dump_func flag.
203 * unwind-sjlj.c: Poison setjmp.
204 * doc/install.texi (enable-sjlj-exceptions): Use more general wording.
205 * doc/tm.texi (DWARF2_UNWIND_INFO): Likewise.
206 (TARGET_UNWIND_TABLES_DEFAULT): Fix typo.
207 (DONT_USE_BUILTIN_SETJMP): Document it.
209 2006-09-28 Geoffrey Keating <geoffk@apple.com>
212 * config/rs6000/rs6000.h [IN_LIBGCC2] (TARGET_POWERPC64): Define
213 to 1 when __ppc64__ is defined.
214 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Add ppc64-fp.c and
216 * config/rs6000/ppc64-fp.c: Also compile when __ppc64__ is defined.
218 2006-09-28 Steve Ellcey <sje@cup.hp.com>
220 * config/ia64/t-hpux (LIB2FUNCS_EXTRA): Remove unwind-hpux.c.
221 * config/ia64/unwind-hpux.c: Delete.
223 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
225 * gimplify.c (gimplify_init_ctor_preeval): Call maybe_with_size_expr
226 on the element before gimplifying it, instead of punting if it is of
229 2006-09-28 Zdenek Dvorak <dvorakz@suse.cz>
231 * doc/loop.texi: New file.
232 * doc/gccint.texi: Reference loop.texi.
233 * Makefile.in (loop.texi): Add.
235 2006-09-27 Geoffrey Keating <geoffk@apple.com>
237 * config/darwin.h (ENABLE_EXECUTE_STACK): New, use getpagesize not
239 * config/rs6000/darwin.h (ENABLE_EXECUTE_STACK): Remove.
240 * config/i386/darwin.h (ENABLE_EXECUTE_STACK): Remove.
242 2006-09-28 Kaz Kojima <kkojima@gcc.gnu.org>
244 * config/sh/sh.md (divsi_inv_m0): Remove unused variable.
246 2006-09-27 Steven G. Kargl <kargl@gcc.gnu.org>
248 * doc/install.texi: Document required versions of GMP and MPFR.
250 2006-09-27 Paul Brook <paul@codesourcery.com>
253 * config/arm/arm.md (arith_adjacentmem): Handle large offsets.
255 2006-09-27 Richard Sandiford <richard@codesourcery.com>
257 * reload1.c (alter_reg): Require the alignment of the stack slot to
258 be at least reg_max_ref_width bytes.
259 (scan_paradoxical_subregs): Record the largest width in
262 2006-09-26 Jakub Jelinek <jakub@redhat.com>
266 * tree-nested.c (struct nesting_info): Added static_chain_added.
267 (convert_call_expr): Set static_chain_added when adding static
268 chain. Handle OMP_PARALLEL and OMP_SECTION.
270 2006-09-25 Matthias Klose <doko@debian.org>
272 * doc/invoke.texi: Add missing full stop.
274 2006-09-25 Richard Henderson <rth@redhat.com>
276 * cgraph.c (dump_cgraph_varpool_node): Don't crash if called
277 before cgraph_function_flags_ready.
279 2006-09-24 Zdenek Dvorak <dvorakz@suse.cz>
280 Adam Nemet <anemet@caviumnetworks.com>
282 * tree-ssa-loop-ivopts.c (aff_combination_convert,
283 determine_common_wider_type): New functions.
284 (get_computation_aff): Use them to simplify arithmetic between
285 UBASE and CBASE if they are shortened from the same type.
287 2006-09-24 Kazu Hirata <kazu@codesourcery.com>
290 * config/m68k/m68k.md (negsf2, negdf2, negxf2): Use
291 -2147483647 - 1 instead of 0x80000000.
293 2006-09-23 Revital1 Eres <ERES@il.ibm.com>
295 * flags.h (HONOR_NANS): Fix typo in comment.
297 2006-09-23 Uros Bizjak <uros@kss-loka.si>
299 * config/i386/driver-i386.c (host_detect_local_cpu): Add prototype.
301 2006-09-23 Jakub Jelinek <jakub@redhat.com>
305 * tree.c (merge_attributes, attribute_list_contained): If both
306 TREE_VALUEs are TREE_LISTs, use simple_cst_list_equal instead of
308 * c-typeck.c (comptypes_internal): Don't consider aggregates
309 in different TUs as compatible if there one set of attributes is
310 not a subset of the other type's attributes.
311 (composite_type): Try harder not to create a new aggregate type.
313 2006-09-22 Geoffrey Keating <geoffk@apple.com>
315 * config/i386/driver-i386.c: Always define host_detect_local_cpu.
316 * config/i386/i386.h: Define EXTRA_SPEC_FUNCTIONS on any i386
317 or x86_64 host. Define HAVE_LOCAL_CPU_DETECT.
318 (CC1_CPU_SPEC): Make conditional on HAVE_LOCAL_CPU_DETECT rather
319 than replicating condition above.
320 * config.host (i[34567]86-*-*): Always use driver-i386.o.
322 * config/darwin.h (LINK_SYSROOT_SPEC): New.
323 (LINK_SPEC): If TARGET_SYSTEM_ROOT is defined, pass it to
324 the linker by default.
326 2006-09-22 Mike Stump <mrs@apple.com>
328 * config/rs6000/darwin.h (PROFILE_HOOK): Reassociate comment with
331 2006-09-22 Richard Guenther <rguenther@suse.de>
334 * cfgexpand.c (stack_var_size_cmp): Use DECL_UID to make
335 sort of stack variables stable.
337 2006-09-22 Peter Bergner <bergner@vnet.ibm.com>
340 * explow.c (force_reg): Set REG_POINTER flag according to
343 2006-09-22 Zdenek Dvorak <dvorakz@suse.cz>
345 PR tree-optimization/28888
346 * tree-if-conv.c (combine_blocks): Rewritten.
347 * tree-cfg.c (tree_verify_flow_info): Check that edges with
348 EDGE_TRUE/FALSE_VALUE follow COND_EXPR.
350 2006-09-22 Jakub Jelinek <jakub@redhat.com>
352 * tree-ssa-propagate.c (set_rhs): Copy EXPR_LOCATION if
355 2006-09-21 Richard Sandiford <richard@codesourcery.com>
357 * varasm.c (copy_constant): Fix reversed gcc_assert check.
359 2006-09-21 Janis Johnson <janis187@us.ibm.com>
361 * ginclude/decfloat.h (DEC*_DEN): Define using the correct builtins.
363 2006-09-21 Roger Sayle <roger@eyesopen.com>
366 * dwarf2out.c (dwarf2out_begin_prologue): Initialise the current label,
367 dw_fde_current_label, to be the start of the function, i.e. the same
368 value as dw_fde_begin.
370 2006-09-20 Richard Sandiford <richard@codesourcery.com>
372 * config/mips/mips.c (CODE_FOR_mips_abs_ps): Delete.
373 * config/mips/mips.md (UNSPEC_ABS_PS): New constant.
374 (UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2)
375 (UNSPEC_SINGLE_CC, UNSPEC_SCC): Bump values by 1.
376 (*nmadd<mode>, *nmadd<mode>_fastmath): Require !HONOR_NANS.
377 (*nmsub<mode>, *nmsub<mode>_fastmath): Likewise.
378 (abs<mode>2, neg<mode>2): Likewise.
379 * config/mips/mips-ps-3d.md (mips_abs_ps): New define_expand.
380 (*mips_abs_ps): New define_insn.
382 2006-09-20 Josh Conner <jconner@apple.com>
385 * calls.c (expand_call): Allow reuse of structure return stack
388 2006-09-20 Paul Brook <paul@codesourcery.com>
390 * config/arm/unwind-arm.c (selfrel_offset31): Clear top bit for
393 2006-09-20 Janis Johnson <janis187@us.ibm.com>
395 * doc/extend.texi (Decimal Float): Update for latest draft TR,
396 clean up terminology.
398 2006-09-20 Steve Ellcey <sje@cup.hp.com>
401 * ifcvt.c (dead_or_predicable): Don't predicate then blocks
402 with tablejumps in them.
404 2006-09-20 Jakub Jelinek <jakub@redhat.com>
407 * c-omp.c (c_finish_omp_atomic): If ADDR is not simple enough,
408 wrap it into TARGET_EXPR.
410 2006-09-20 Eric Christopher <echristo@apple.com>
412 * config/i386/i386.c (x86_fisttp): Remove.
413 * config/i386/i386.h (x86_fisttp): Ditto.
414 (TARGET_FISTTP): Ditto.
416 2006-09-19 Eric Christopher <echristo@apple.com>
418 * doc/tm.texi (OBJC_JBLEN): Describe.
419 * config/i386/darwin.h (OBJC_JBLEN): Define.
420 * config/rs6000/darwin.h: Ditto.
422 2006-09-19 Steven Bosscher <steven@gcc.gnu.org>
424 PR rtl-optimization/21299
425 * reload1.c (reload): Purge invalid ASMs in the final pass.
427 2006-09-19 Steve Ellcey <sje@cup.hp.com>
430 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow function
431 pointers as legitimate constants.
433 2006-09-19 Paul Brook <paul@codesourcery.com>
436 * config/arm/arm.c (arm_unwind_emit_set): Handle reg = sp + const.
438 2006-09-17 Zdenek Dvorak <dvorakz@suse.cz>
440 PR tree-optimization/28887
441 * tree-ssa-loop-prefetch.c (analyze_ref): Strip nonaddressable
442 component parts from the reference.
443 (gather_memory_references_ref): Record the reference without the
444 nonaddressable component parts.
446 2006-09-17 Steven Bosscher <steven@gcc.gnu.org>
449 * c-opts.c (c_common_handle_option): Ignore the -std options
450 if the input language is assembly.
452 2006-09-17 Ira Rosen <irar@il.ibm.com>
455 * tree-data-ref.c (ptr_decl_may_alias_p): Look for the name memory
457 (ptr_ptr_may_alias_p): Likewise.
458 (record_record_differ_p): New function.
459 (base_object_differ_p): Call record_record_differ_p.
461 2006-09-16 Andrew Pinski <pinskia@physics.uc.edu>
464 * tree-ssa-propagate.c (set_rhs): Reject MODIFY_EXPR right
465 away for the expr argument.
467 2006-09-16 Steven Bosscher <steven@gcc.gnu.org>
470 * tree-vectorizer.c (vectorize_loops): Clear vect_loop_location
471 before using it for dumping after vectorizing loops.
473 2006-09-16 Andrew Pinski <pinskia@physics.uc.edu>
474 Jack Howarth <howarth@bromo.med.uc.edu>
477 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_recurse)
478 skip on error_mark_node.
479 (rs6000_darwin64_record_arg_recurse): Likewise.
481 2006-09-16 Steven Bosscher <steven@gcc.gnu.org>
483 * rtl.h (LABEL_OUTSIDE_LOOP_P): Remove.
484 * doc/rtl.texi: Remove related documentation.
486 2006-09-16 Bernd Schmidt <bernd.schmidt@analog.com>
488 * loop-doloop.c (doloop_optimize): Remove bogus arg from debugging
491 2006-09-15 Jim Wilson <wilson@specifix.com>
493 * config/ia64/ia64.c (ia64_legitimate_constant_p, cast CONST):
494 Handle symbol offsets same as they are handled in ia64_expand_move
497 2006-09-16 Andreas Tobler <a.tobler@schweiz.org>
499 * loop-doloop.c (doloop_optimize): Change type of max_cost to int.
500 Add forgotten parameter to the fprintf call.
502 2006-09-15 Steve Ellcey <sje@cup.hp.com>
504 * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Add define.
506 2006-09-15 Uros Bizjak <uros@kss-loka.si>
508 * doc/contrib.texi: Add my entry.
510 2006-09-15 Nick Clifton <nickc@redhat.com>
512 * doc/md.texi (Processor pipeline description): Fix typo in
513 example of how to use the absence_set directive and reword the
514 description to make it slightly easier to read.
516 2006-09-15 Bernd Schmidt <bernd.schmidt@analog.com>
518 * params.def (PARAM_MAX_ITERATIONS_COMPUTATION_COST): New.
519 * loop-doloop.c (doloop_optimize): Use it to limit costs of
520 expanding the number of iterations.
521 * config/bfin/bfin.c (bfin_rtx_costs): Handle UDIV, UMOD.
523 * cfgrtl.c (emit_insn_at_entry): New function.
524 * rtl.h (emit_insn_at_entry): Declare it.
525 * integrate.c (emit_initial_value_sets): Use it.
527 * cfgrtl.c (emit_insn_at_entry): Use gcc_assert, not abort.
529 * config/bfin/bfin.c (struct loop_info): New members block_bitmap and
531 (struct loop_work and related VEC declarations): Delete.
532 (bfin_dump_loops): Print out new member bad.
533 (bfin_bb_in_loop): Use plain bitmap test. Don't recurse.
534 (bfin_scan_loop): Don't recurse.
535 (bfin_optimize_loop): Don't use a loop depth of -1 to indicate bad
536 loops. No longer need to update outer loops if the current one is
537 found bad. Move some validitiy checks to bfin_discover_loop.
538 (bfin_discover_loop): New function, mostly split from bfin_reorg_loops,
539 but changed not to check for nesting. Also changed to use the new bad
541 (bfin_reorg_loops): Use bfin_discover_loop to find single loops one at a
542 time. Use bitmap based test to discover loop nesting.
544 2006-09-15 Kazu Hirata <kazu@codesourcery.com>
546 * doc/tm.texi (TARGET_FUNCTION_VALUE): Put @deftypefn all in
549 2006-09-14 Richard Guenther <rguenther@suse.de>
550 Kazu Hirata <kazu@codesourcery.com>
553 * doc/tm.texi (TARGET_FUNCTION_VALUE): Document.
554 (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE): Deprecate.
555 Replace mentions of FUNCTION_VALUE and FUNCTION_OUTGOING_VALUE
556 with TARGET_FUNCTION_VALUE.
558 2006-09-14 Anatoly Sokolov <aesok@post.ru>
561 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Define.
563 2006-09-13 Aldy Hernandez <aldyh@redhat.com>
565 * doc/tree-ssa.texi (Jumps): RESULT_DECL can also be an operand
568 2006-09-13 Andrew Pinski <pinskia@physics.uc.edu>
571 * dwarf2out.c (loc_descriptor_from_tree_1): Handle
574 2006-09-13 Andreas Krebbel <krebbel1@de.ibm.com>
576 * basic_block.h (bb_has_eh_pred): Fix comment.
578 2006-09-13 Andreas Krebbel <krebbel1@de.ibm.com>
580 * flow.c (calculate_global_regs_live): Invalidate eh registers
581 on eh edges. Renamed invalidated_by_call to invalidated_by_eh_edge.
582 (propagate_block): Handle eh registers as if they were set at basic
584 * except.c (dw2_build_landing_pads): Don't emit clobbers for eh
586 * global.c (global_conflicts): Make eh registers to conflict with
587 pseudos live at basic block begin.
588 * basic_block.h (bb_has_eh_pred): New function.
590 2006-09-13 Richard Sandiford <richard@codesourcery.com>
592 PR rtl-optimization/28982
593 * reload.c (find_reloads_address_1): Use RELOAD_OTHER for the
594 index of a PRE_MODIFY or POST_MODIFY address.
595 * reload1.c (inc_for_reload): Use find_replacement on the original
596 base and index registers.
598 2006-09-12 H.J. Lu <hongjiu.lu@intel.com>
600 * doc/invoke.texi (mpreferred-stack-boundary): Remove exception
601 for -Os. Update __m128 alignment requirement.
603 2006-09-13 Jan Hubicka <jh@suse.cz>
605 * cfganal.c (compute_dominance_frontiers_1): Don't be quadratic.
607 2006-09-12 Eric Botcazou <ebotcazou@libertysurf.fr>
609 PR rtl-optimization/28243
610 * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
611 the insn to which the note was originally attached.
613 2006-09-12 Andrew Pinski <pinskia@physics.uc.edu>
614 Roger Sayle <roger@eyesopen.com>
616 * dwarf2out.c (file_table_last_lookup): Move this GC'd declaration
617 outside of #ifdef DWARF2_DEBUGGING_INFO to fix bootstrap failure
618 on platforms that don't use dwarf for debug info.
620 2006-09-12 Jason Merrill <jason@redhat.com>
623 * builtins.c (expand_builtin_setjmp_receiver): Clobber
624 hard_frame_pointer_rtx after using it to update the frame pointer.
626 2006-09-12 Roger Sayle <roger@eyesopen.com>
628 * target-def.h (TARGET_ASM_OPEN_PAREN): Guard with an #ifndef.
629 (TARGET_ASM_CLOSE_PAREN): Likewise.
630 * config/alpha/osf5.h (TARGET_ASM_OPEN_PAREN): Define.
631 (TARGET_ASM_CLOSE_PAREN): Likewise.
633 2006-09-12 Roger Sayle <roger@eyesopen.com>
636 * config/alpha/alpha.c (alpha_start_function): Don't emit stack
637 frame information for frames larger than 512 Kbytes on Tru64 when
638 using the native assembler.
640 2006-09-12 Roger Sayle <roger@eyesopen.com>
644 * cselib.c (cselib_hash_rtx): Avoid hashing on the address of labels
645 and symbols. Instead use the implementation from cse.c's hash_rtx.
647 2006-09-12 Jan Hubicka <jh@suse.cz>
649 PR rtl-optimization/28071
650 * tree-vect-transform.c (vect_create_data_ref_ptr): Kill cast.
651 (vect_transform_loop): Likewise.
652 * tree-vectorizer.c (new_loop_vec_info): Likewise.
653 (new_loop_vec_info): Likewise.
654 (destroy_loop_vec_info): Likewise.
655 * tree-dfa.c (create_var_ann): Use GCC_CNEW.
656 (create_stmt_ann): Likewise.
657 (create_tree_ann): Rename to ...
658 (create_tree_common_ann): ... this one; allocate only the common part
660 * tree-vn.c (set_value_handle): Use get_tree_common_ann.
661 (get_value_handle): Likewise.
662 * tree-ssa-pre.c (phi_translate): Delay annotation allocation for
664 * tree-vectorizer.h (set_stmt_info): Take stmt annotation.
665 (vinfo_for_stmt): Use stmt annotations.
666 * tree-flow.h (tree_ann_common_t): New type.
667 (tree_common_ann, get_tree_common_ann, create_tree_common_ann): New.
668 (tree_ann, get_tree_ann, create_tree_ann): New.
669 * tree-flow-inline.h (get_function_ann): Do more type checking.
670 (stmt_ann): Likewise.
671 (tree_ann): Rename to ...
672 (tree_common_ann): ... this one; return ony common_ann
673 (get_tree_ann): Rename to ...
674 (tree_common_ann): This one; return only common_ann.
675 * tree-vect-patterns.c (vect_pattern_recog_1): Update call
678 2006-09-11 Geoffrey Keating <geoffk@apple.com>
680 * config.gcc (i[34567]86-*-darwin*): Set with_arch and
683 * dwarf2out.c (dwarf_file_data): New.
684 (enum dw_val_class): Add dw_val_class_file.
685 (struct dw_val_struct): Add val_file.
686 (file_table): Change to a hash table.
687 (file_table_emitted): Delete.
688 (file_table_last_lookup_index): Delete.
690 (last_emitted_file): New.
691 (lookup_filename): Change prototype to return a struct dwarf_file_data.
692 (init_file_table): Delete.
693 (maybe_emit_file): Change prototype to take a struct dwarf_file_data.
694 (AT_addr): Add comment.
698 (print_die): Handle dw_val_class_file.
699 (print_dwarf_line_table): Update for new file table structure.
700 (attr_checksum): Do checksum a filename.
701 (same_dw_val_p, same_attr_p): Do compare a filename.
702 (size_of_die): Handle dw_val_class_file.
703 (value_format): Likewise.
704 (output_die): Likewise. Also, call maybe_emit_file here.
705 (struct file_info): Constify filenames. Make file_idx a pointer
706 to a struct dwarf_file_data.
707 (struct dir_info): Constify directory names. Remove 'used' field.
708 (struct file_name_acquire_data): New.
709 (file_name_acquire): New.
710 (output_file_names): Modify to handle new file data structures.
711 (add_src_coords_attributes): Use add_AT_file.
712 (add_call_src_coords_attributes): Likewise.
713 (dwarf2out_imported_module_or_decl): Likewise.
714 (gen_subprogram_die): Modify for new file data structures.
715 (gen_variable_die): Likewise.
716 (file_table_eq): New.
717 (file_table_hash): New.
718 (file_table_last_lookup): New.
719 (lookup_filename): Rewrite to handle new file data structures.
720 (maybe_emit_file): Rewrite to handle new file data structures.
721 (dwarf2out_source_line): Always call lookup_filename and
723 (dwarf2out_init): Create file_table here.
724 (prune_unused_types_walk_attribs): Don't call maybe_emit_file here.
725 (file_table_relative_p): New.
726 (dwarf2out_finish): Change detection of relative filenames
727 to work with new file data structures. Move output_line_info call
728 after debug_info output.
730 2006-09-11 H.J. Lu <hongjiu.lu@intel.com>
735 * config/i386/i386.c (override_options): Always default to 16
738 2006-09-11 Alexandre Oliva <aoliva@redhat.com>
741 * var-tracking.c (dump_dataflow_set): Start dumping at
743 (clobber_variable_part): Kill only the variable part in
744 registers holding it, leaving other variables alone.
746 2006-09-11 Josh Triplett <josh@freedesktop.org>
748 * doc/extend.texi (Other Builtins): Actually use the macro
749 argument in the documentation example for
750 __builtin_types_compatible_p.
752 2006-09-11 Eric Botcazou <ebotcazou@libertysurf.fr>
754 PR rtl-optimization/28726
755 * sched-deps.c (sched_analyze_reg): New function extracted from...
756 (sched_analyze_1): ...here. Call it to analyze references to
757 registers. Treat again writes to a stack register as writing to the
759 (sched_analyze_2): ...and here. Call it to analyze references to
760 registers. Treat again reads of a stack register as reading the
763 2006-09-11 Guenter Roeck <guenter@roeck-us.net>
764 David Edelsohn <edelsohn@gnu.org>
767 * config/rs6000/spe.md (frob_df_di): Remove %H.
768 (frob_di_df): Remove %H. Change evmergelo to mr.
769 (frob_di_df_2): Remove %H. Change evldd to two loads.
771 2006-09-11 Hideki Iwamoto <h-iwamoto@kit.hi-ho.ne.jp>
773 * doc/cpp.texi: Fix names of charset options.
775 2006-09-10 Andrew Pinski <pinskia@physics.uc.edu>
778 * config/i386/i386.c (override_options): Use 128-bit
779 stack boundary always for 64bits.
781 2006-09-10 Eric Botcazou <ebotcazou@libertysurf.fr>
783 PR rtl-optimization/28636
784 * combine.c (force_to_mode): Test for side-effects before
785 substituting by zero.
786 (simplify_shift_const): Likewise for zero or other constants.
788 2006-09-10 Steven Bosscher <steven@gcc.gnu.org>
791 * builtins.c (expand_builtin_setjmp): Force next_lab to be
794 2006-09-10 Richard Sandiford <richard@codesourcery.com>
797 * config/mips/mips-protos.h (mips_mem_fits_mode_p): Declare.
798 * config/mips/mips.c (mips_expand_unaligned_store): Use the mode
799 returned by mode_for_size, rather than the mode of src itself,
800 to choose between 32-bit and 64-bit patterns.
801 (mips_mem_fits_mode_p): New function.
802 * config/mips/mips.md (mov_<load>l, mov_<load>r): Use it to check
803 that the size of the source matches the size of the destination.
804 (mov_<store>l, mov_<store>r): Likewise.
806 2006-09-10 Eric Christopher <echristo@apple.com>
808 * config/darwin.c (machopic_select_rtx_section): Add CONST_VECTOR
811 2006-09-09 Eric Christopher <echristo@apple.com>
814 * config/darwin.c (machopic_select_rtx_section): Add TARGET_64BIT
817 2006-09-09 Roger Sayle <roger@eyesopen.com>
818 Nicolas Setton <setton@adacore.com>
820 * dwarf2out.c (convert_cfa_to_fb_loc_list): Handle DW_CFA_set_loc.
822 2006-09-10 Andreas Schwab <schwab@suse.de>
824 * config/m68k/m68k.md (bungt_rev): New pattern.
826 2006-09-09 Paolo Bonzini <bonzini@gnu.org>
827 Dale Johannesen <dalej@apple.com>
830 * regclass.c (struct reg_pref): Update documentation.
831 (regclass): Set prefclass to NO_REGS if memory is the best option.
832 (record_reg_classes): Cope with a prefclass set to NO_REGS.
834 2006-09-08 Eric Christopher <echristo@apple.com>
836 * config.gcc (i?86-*-darwin): Add 64-bit HWI support.
837 * config/t-slibgcc-darwin: Support x86_64 multilib.
838 * config/i386/i386.h (JUMP_TABLES_IN_TEXT_SECTION):
839 Return 1 for x86_64-darwin.
840 * config/i386/t-darwin: Add m64 multilib.
841 (LIB2_SIDITI_CONV_FUNCS): Use.
842 (LIB2FUNCS_EXTRA): Ditto.
843 * config/i386/darwin.h: Support x86_64.
844 * config/i386/i386.c (override_options): Turn on flag_pic
845 for x86_64-darwin. Disable flag_omit_pointer.
846 (get_pc_thunk_name): Assert !TARGET_64BIT.
847 (legitimate_address_p): Disable machopic addressing for
849 (legitimize_pic_address): Ditto.
850 (ix86_expand_move): Ditto.
851 (ix86_expand_call): Ditto.
852 (machopic_output_stub): Ditto.
853 * config/darwin.c (machopic_select_section): Support literal16.
854 (machopic_select_rtx_section): Ditto.
855 * config/darwin-sections.def: Ditto.
856 * config/darwin-64.c: New.
858 2006-09-08 Joseph S. Myers <joseph@codesourcery.com>
861 * c-tree.h (struct c_arg_info): Add pending_sizes.
862 * c-parser.c (c_parser_parms_declarator,
863 c_parser_parms_list_declarator): Initialize pending_sizes.
864 * c-decl.c (get_parm_info): Initialize pending_sizes.
865 (get_parm_info): Set pending_sizes.
866 (grokdeclarator): Call put_pending_sizes for parameters for
867 function definition only.
869 2006-09-07 Jason Merrill <jason@redhat.com>
872 * varasm.c (output_constant): Only strip actual no-op conversions.
875 * config/i386/i386.c (override_options): Use 128-bit
876 stack boundary if -msse.
878 2006-09-07 Eric Christopher <echristo@apple.com>
880 * config/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Update
882 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE):
885 2006-09-07 Geoffrey Keating <geoffk@apple.com>
887 * dwarf2out.c: Remove strange characters from comment above
888 dwarf2out_frame_debug_expr.
890 2006-09-07 Eric Christopher <echristo@apple.com>
892 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Move from here...
893 * config/darwin.h: ... to here.
895 2006-09-07 H.J. Lu <hongjiu.lu@intel.com>
897 * config/i386/i386.c (x86_partial_flag_reg_stall): New.
899 * config/i386/i386.h (x86_partial_flag_reg_stall): New.
900 (TARGET_PARTIAL_FLAG_REG_STALL): New.
902 * config/i386/i386.md (*ashldi3_cmp_rex64): Disabled for
903 TARGET_PARTIAL_FLAG_REG_STALL.
904 (*ashldi3_cconly_rex64): Likewise.
905 (*ashlsi3_cmp): Likewise.
906 (*ashlsi3_cconly): Likewise.
907 (*ashlsi3_cmp_zext): Likewise.
908 (*ashlhi3_cmp): Likewise.
909 (*ashlhi3_cconly): Likewise.
910 (*ashlqi3_cmp): Likewise.
911 (*ashlqi3_cconly): Likewise.
912 (*ashrdi3_cmp_rex64): Likewise.
913 (*ashrdi3_cconly_rex64): Likewise.
914 (*ashrsi3_cmp): Likewise.
915 (*ashrsi3_cconly): Likewise.
916 (*ashrsi3_cmp_zext): Likewise.
917 (*ashrhi3_cmp): Likewise.
918 (*ashrhi3_cconly): Likewise.
919 (*ashrqi3_cmp): Likewise.
920 (*ashrqi3_cconly): Likewise.
921 (*lshrdi3_cmp_rex64): Likewise.
922 (*lshrdi3_cconly_rex64): Likewise.
923 (*lshrsi3_cmp): Likewise.
924 (*lshrsi3_cconly): Likewise.
925 (*lshrsi3_cmp_zext): Likewise.
926 (*lshrhi3_cmp): Likewise.
927 (*lshrhi3_cconly): Likewise.
928 (*lshrqi2_cmp): Likewise.
929 (*lshrqi2_cconly): Likewise.
931 2006-09-07 Uros Bizjak <uros@kss-loka.si>
934 * config/i386/i386.md ("*ashldi3_cconly_rex64", "*ashlsi3_cconly",
935 "*ashlhi3_cconly", "*ashlqi3_cconly", "*ashrdi3_one_bit_cconly_rex64",
936 "*ashrdi3_cconly_rex64", "*ashrsi3_one_bit_cconly", "*ashrsi3_cconly",
937 "*ashrhi3_one_bit_cconly", "*ashrhi3_cconly",
938 "*ashrqi3_one_bit_cconly", "*ashrqi3_cconly",
939 "*lshrdi3_cconly_one_bit_rex64", "*lshrdi3_cconly_rex64",
940 "*lshrsi3_one_bit_cconly", "*lshrsi3_cconly",
941 "*lshrhi3_one_bit_cconly", "*lshrhi3_cconly",
942 "*lshrqi2_one_bit_cconly", "*lshrqi2_cconly": New patterns to
943 implement only CC setting effects of shift instructions.
945 2006-09-07 Martin Michlmayr <tbm@cyrius.com>
947 * doc/contrib.texi: Add myself.
949 2006-09-07 Andrew Pinski <pinskia@physics.uc.edu>
952 * stor-layout.c (relayout_decl): Don't zero the alignment if it
955 2006-09-07 Paolo Bonzini <bonzini@gnu.org>
958 * config/sh/sh.md (divsi_inv_qitable, divsi_inv_hitable): New patterns.
959 (divsi_inv_m1): Use them.
960 (UNSPEC_DIV_INV_TABLE): New constant.
962 2006-09-06 James E Wilson <wilson@specifix.com>
965 * flow.c (update_life_info): If UPDATE_LIFE_LOCAL and PROP_DEATH_NOTES
966 then call count_or_remove_death_notes.
968 2006-09-06 Jason Merrill <jason@redhat.com>
971 * tree-inline.c (copy_result_decl_to_var): New fn.
972 (declare_return_variable): Use it. Call declare_inline_vars here.
973 (expand_call_inline): Not here.
975 2006-09-06 Diego Novillo <dnovillo@redhat.com>
977 * doc/contrib.texi: Update my entry.
979 2006-09-06 Nick Clifton <nickc@redhat.com>
981 * config/frv/frv.h (EXTRA_MEMORY_CONSTRAINT): Define.
983 2006-09-05 Andrew Pinski <pinskia@physics.uc.edu>
986 * tree-flow.h (tree_ssa_unswitch_loops): Return unsigned int.
987 (canonicalize_induction_variables): Likewise.
988 (tree_unroll_loops_completely): Likewise.
989 (tree_ssa_prefetch_arrays): Likewise.
990 (remove_empty_loops): Likewise.
991 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Return
992 TODO_cleanup_cfg instead of directly calling
993 cleanup_tree_cfg_loop.
994 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables):
996 (tree_unroll_loops_completely): Likewise.
997 (remove_empty_loops): Likewise.
998 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
999 * tree-ssa-loop.c (tree_ssa_loop_unswitch): Use the return value
1000 of tree_ssa_unswitch_loops.
1001 (tree_ssa_loop_ivcanon): Use the return value of
1002 canonicalize_induction_variables.
1003 (tree_ssa_empty_loop): Use the return value of
1005 (tree_complete_unroll): Use the return value of
1006 tree_unroll_loops_completely.
1007 (tree_ssa_loop_prefetch): Use the return value of
1008 tree_ssa_prefetch_arrays.
1009 * passes.c (execute_todo): Before Cleanup CFG, set
1010 updating_used_alone and after cleanup CFG, call
1011 recalculate_used_alone.
1013 2006-09-05 Andrew Pinski <pinskia@physics.uc.edu>
1016 * tree-vect-transform.c (vectorizable_condition): Move the check
1017 for the type after the check for simple condition.
1019 2006-09-05 J"orn Rennecke <joern.rennecke@st.com>
1020 Kaz Kojima <kkojima@gcc.gnu.org>
1023 * mode-switching.c (optimize_mode_switching): Make the destination
1024 block of an abnormal edge have no anticipatable mode. Don't
1025 insert mode switching code at the end of the source block of
1028 2006-09-05 Paolo Bonzini <bonzini@gnu.org>
1030 PR rtl-optimization/26847
1031 * simplify-rtx.c (struct simplify_plus_minus_op_data): Remove ix.
1032 (simplify_plus_minus_op_data_cmp): For REGs, break ties on the regno.
1033 (simplify_plus_minus): Count n_constants while filling ops. Replace
1034 qsort with insertion sort. Before going through the array to simplify
1035 pairs, sort it. Delay early exit until after the first sort, exiting
1036 only if no swaps occurred. Simplify pairs in reversed order, without
1037 special-casing the first iteration. Pack ops after simplifying pairs.
1039 2006-09-05 Anatoly Sokolov <aesok@post.ru>
1041 * config/avr/avr.c (avr_mcu_types): Add support for at90pwm1 device.
1042 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
1043 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
1044 (avr_rtx_costs): Mark 'outer_code' argument with ATTRIBUTE_UNUSED.
1046 2006-09-05 Richard Guenther <rguenther@suse.de>
1048 PR tree-optimization/28900
1049 * tree-if-conv.c (find_phi_replacement_condition): Gimplify
1050 compound conditional before creating COND_EXPR condition.
1052 2006-09-05 Richard Guenther <rguenther@suse.de>
1054 PR tree-optimization/28905
1055 * tree-vrp.c (fix_equivalence_set): Manually implement
1056 !value_ranges_intersect_p to also handle symbolic ranges.
1058 2006-09-05 Richard Guenther <rguenther@suse.de>
1061 * tree-ssa-ccp.c (fold_stmt_r): Make sure to fold the condition
1064 2006-09-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1066 PR rtl-optimization/27616
1067 * cse.c (table_size): New static variable.
1068 (new_basic_block): Initialize it to 0.
1069 (remove_from_table): Decrement it.
1070 (insert): Increment it.
1071 (fold_rtx_mem_1): New function, renamed from fold_rtx_mem.
1072 (fold_rtx_mem): Enforce a cap on the recursion depth. Call
1073 fold_rtx_mem_1 if under the cap.
1074 (fold_rtx) <RTX_COMM_ARITH>: In the associative case, delay a little
1075 the lookup of the equivalent expression and test for equality of the
1076 first operand of the equivalent expression before in turn looking up
1077 an equivalent constant for the second operand.
1079 2006-09-02 Geoffrey Keating <geoffk@apple.com>
1082 2006-03-17 Alexandre Oliva <aoliva@redhat.com>
1083 * dwarf2out.c (dwarf2out_stack_adjust): Always track the stack
1084 pointer, instead of assuming it is possible to derive the
1085 correct args size from a call insn.
1087 2006-09-02 Jakub Jelinek <jakub@redhat.com>
1090 * builtins.c (fold_builtin_memcpy, fold_builtin_memmove): Remove.
1091 (fold_builtin_mempcpy): Rename to...
1092 (fold_builtin_memory_op): ... this. Optimize one element copy
1094 (fold_builtin_memset, fold_builtin_bzero, fold_builtin_bcopy): New
1096 (expand_builtin_strcpy, expand_builtin_strncpy): Handle COMPOUND_EXPR.
1097 (expand_builtin_memcpy, expand_builtin_mempcpy,
1098 expand_builtin_memmove): Likewise. Use fold_builtin_memory_op.
1099 (fold_builtin_1): Handle BUILT_IN_MEMSET, BUILT_IN_BZERO and
1100 BUILT_IN_BCOPY. Use fold_builtin_memory_op for
1101 BUILT_IN_MEM{CPY,PCPY,MOVE}.
1103 2006-09-01 DJ Delorie <dj@redhat.com>
1105 * config/m32c/cond.md (cbranch<mode>4): Defer splitting until after reload.
1106 (stzx_16): Likewise.
1107 ("stzx_24_<mode>"): Likewise.
1108 ("stzx_reversed_<mode>"): Likewise, and make mode-specific.
1109 ("cmp<mode>_op"): New.
1110 (cmp<mode>): Change to expander; just save operands.
1112 (b<code>): Change to expander, emit compare here.
1113 (s<code>_op): Change to use split and expander.
1114 (s<code>_24_op): Likewise.
1115 (s<code>_<mode>): New.
1116 (s<code>_<mode>_24): New.
1117 (movqicc_<code>_<mode): New.
1118 (movhicc_<code>_<mode>): New.
1121 * config/m32c/m32c.c (compare_op0, compare_op1): New.
1122 (m32c_pend_compare): New.
1123 (m32c_unpend_compare): New.
1124 (m32c_expand_scc): New.
1125 (m32c_expand_movcc): Emit the compare also.
1126 * config/m32c/predicates.md (mra_nopp_operand): New.
1128 2006-09-01 J"orn Rennecke <joern.rennecke@st.com>
1129 Richard Guenther <rguenther@suse.de>
1130 Adam Nemet <anemet@caviumnetworks.com>
1133 * builtins.c (get_pointer_alignment): Handle more forms
1134 of base addresses that can be used to derive more precise
1135 information about alignment.
1137 2006-09-01 Jason Merrill <jason@redhat.com>
1140 * gimplify.c (gimplify_modify_expr_rhs) [BIND_EXPR]: Handle
1143 * gimplify.c (voidify_wrapper_expr): Handle null type.
1145 2006-09-01 Josh Conner <jconner@apple.com>
1148 * tree-nrv.c (dest_safe_for_nrv_p): New function.
1149 (execute_return_slot_opt): Use it.
1151 2006-08-31 Josh Conner <jconner@apple.com>
1154 * tree-gimple.c (is_gimple_mem_rhs): Recognize functions
1155 returning aggregates.
1157 2006-08-31 Zdenek Dvorak <dvorakz@suse.cz>
1159 PR tree-optimization/28839
1160 * tree-into-ssa.c (prune_unused_phi_nodes): Take into account kills in
1161 blocks in that phi arguments appear.
1163 2006-08-31 Roger Sayle <roger@eyesopen.com>
1166 * dwarf2out.c (add_fde_cfi): Use a set_loc if the current label is
1167 NULL, otherwise use an advance_loc4 to adjust relative to the
1169 (output_cfi) <DW_CFA_set_loc>: Update the current label.
1170 (dwarf2out_switch_text_section): Reset the current label to avoid
1171 using advance_loc4 over section boundaries.
1173 2006-08-31 Andreas Krebbel <krebbel1@de.ibm.com>
1176 * config/s390/s390.md ("movsi", "movdi" expander): Accept rtxes like
1177 r12 + SYMBOLIC_CONST.
1179 2006-08-30 Richard Guenther <rguenther@suse.de>
1181 * Makefile.in (see.o): Add $(EXPR_H) dependency.
1183 2006-08-30 Zdenek Dvorak <dvorakz@suse.cz>
1185 PR rtl-optimization/27735
1186 * cfgloopmanip.c (fix_loop_placements, fix_bb_placements, unloop):
1187 Add new argument to keep track of whether an irreducible region
1188 was affected. All callers changed.
1189 (fix_irreducible_loops): Removed.
1190 (remove_path): Call mark_irreducible_loops if EDGE_IRREDUCIBLE_LOOP
1191 flags were invalidated.
1193 2006-08-29 H.J. Lu <hongjiu.lu@intel.com>
1195 * config/i386/i386.md (*fop_df_comm_mixed): Match DF operands
1196 instead of SF operands.
1197 (*fop_df_comm_sse): Likewise.
1198 (*fop_df_comm_i387): Likewise.
1199 (*fop_df_1_mixed): Likewise.
1200 (*fop_df_1_sse): Likewise.
1202 2006-08-29 Andrew Pinski <pinskia@physics.uc.edu>
1203 J"orn Rennecke <joern.rennecke@st.com>
1205 PR tree-optimization/17506
1206 * tree-ssa.c (warn_uninit): If warning about a location outside of
1207 the current function, note where the variable was declared.
1209 2006-08-28 Zdenek Dvorak <dvorakz@suse.cz>
1211 PR tree-optimization/28411
1212 * double-int.c (double_int_div): Use double_int_divmod.
1213 (double_int_divmod, double_int_sdivmod, double_int_udivmod,
1214 double_int_mod, double_int_smod, double_int_umod): New functions.
1215 * double-int.h (double_int_divmod, double_int_sdivmod,
1216 double_int_udivmod, double_int_mod, double_int_smod, double_int_umod):
1218 * tree-ssa-loop-ivopts.c (constant_multiple_of): Returns the result
1220 (get_computation_aff, get_computation_cost_at): Handle double_int
1221 return type of constant_multiple_of.
1223 2006-08-28 Kazu Hirata <kazu@codesourcery.com>
1226 * convert.c (convert_to_integer): Set TREE_NO_WARNING to 1 on
1227 an implicit conversion.
1229 2006-08-28 Prafulla Thakare <prafullat@kpitcummins.com>
1231 * config/h8300/h8300.c (TARGET_DEFAULT_TARGET_FLAGS): New.
1233 2006-08-27 Roger Sayle <roger@eyesopen.com>
1235 * ifcvt.c (cheap_bb_rtx_cost_p): Don't speculatively execute
1238 2006-08-27 Kazu Hirata <kazu@codesourcery.com>
1240 * config/i386/crtfastmath.c: Fix a comment typo.
1242 2006-08-26 Roger Sayle <roger@eyesopen.com>
1244 * tree.h (CASE_LOW_SEEN, CASE_HIGH_SEEN): New macros for manipulating
1245 temporary visit flags on CASE_LABEL_EXPRs.
1246 * c-common.c (match_case_to_enum): Add function comment. Avoid
1247 O(N) loop, by looking up both CASE_LOW_SEEN and CASE_HIGH_SEEN.
1248 (c_do_switch_warnings): Reorganize to record CASE_LOW_SEEN and
1249 CASE_HIGH_SEEN for enumerated types. If the switch expression is
1250 a constant, only warn if that constant value isn't handled.
1252 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1255 * input.h (restore_input_file_stack): Declare.
1256 (INPUT_FILE_STACK_BITS): Define.
1257 * toplev.c (fs_p, input_file_stack_history,
1258 input_file_stack_restored, restore_input_file_stack): New.
1259 (push_srcloc, pop_srcloc): Check for input_file_stack_tick
1260 overflowing INPUT_FILE_STACK_BITS bits. Save new state of stack.
1261 (pop_srcloc): Don't free old state of stack.
1263 2006-08-26 David Edelsohn <edelsohn@gnu.org>
1266 * doc/extend.texi (PowerPC Variable Attributes): Mention altivec.
1267 (PowerPC Type Attributes): New.
1269 2006-08-26 Bob Wilson <bob.wilson@acm.org>
1271 * config/xtensa/xtensa.c (function_arg_boundary): New.
1272 (function_arg, xtensa_gimplify_va_arg_expr): Limit alignment to
1274 * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Move code to new
1275 function_arg_boundary function that limits alignment to STACK_BOUNDARY.
1277 2006-08-26 Jakub Jelinek <jakub@redhat.com>
1280 * cfgexpand.c (add_reg_br_prob_note): Check if last has exactly
1283 2006-08-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1285 * flow.c (verify_wide_reg): Use internal_error for consistency failure.
1286 (verify_local_live_at_start): Likewise.
1288 2006-08-25 Joseph S. Myers <joseph@codesourcery.com>
1291 * gimplify.c (gimplify_decl_expr, gimplify_init_ctor_preeval,
1292 omp_add_variable): Treat sizes as variable whenever not
1295 2006-08-26 Richard Guenther <rguenther@suse.de>
1298 * fold-const.c (fold_binary): Fold temporary to correct
1299 type before constructing new comparison.
1301 2006-08-25 Fariborz Jahanian <fjahanian@apple.com>
1304 * c-gimplify.c (gimplify_compound_literal_expr): Don't add
1305 variable again if DECL_SEEN_IN_BIND_EXPR_P.
1307 2006-08-25 Joseph S. Myers <joseph@codesourcery.com>
1310 * c-decl.c (start_function): Don't try to process prototype
1311 information from old declaration that isn't a function.
1313 2006-08-25 Jan Hubicka <jh@suse.cz>
1316 * config/i386/crtfastmath.c (set_fast_math): Force stack alignment.
1318 2006-08-25 Alan Modra <amodra@bigpond.net.au>
1321 * config/rs6000/rs6000.c (print_operand): Only use e500 %y syntax
1324 2006-08-25 J"orn Rennecke <joern.rennecke@st.com>
1326 PR tree-optimization/16876
1327 * c-typeck.c (c_convert_parm_for_inlining): Don't take early
1328 exit if PARM doesn't match VALUE.
1330 2006-08-25 Bob Wilson <bob.wilson@acm.org>
1332 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Do not emit a
1333 literal_prefix directive.
1334 (XTENSA_DECLARE_FUNCTION_SIZE): Delete.
1335 * config/xtensa/linux.h (ASM_DECLARE_FUNCTION_SIZE): Delete.
1336 * config/xtensa/elf.h (ASM_DECLARE_FUNCTION_SIZE): Delete.
1338 2006-08-25 David Edelsohn <edelsohn@gnu.org>
1341 * config/rs6000/rs6000.md (movcc_internal1): Change operand 1
1342 predicate to general_operand. Add 0->y and I->r alternatives.
1344 2006-08-25 Kazu Hirata <kazu@codesourcery.com>
1346 * doc/tm.texi: Fix a typo.
1347 * predict.c: Fix comment typos.
1349 2006-08-25 Nick Clifton <nickc@redhat.com>
1351 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1352 assertions of "cpu" and "machine".
1354 2006-08-24 Andrew Pinski <pinskia@physics.uc.edu>
1357 * tree-ssa-operands.c (access_can_touch_variable): Don't say
1358 the access through a base which has an alias set of 0 cannot
1361 2006-08-24 Bill Wendling <wendling@apple.com>
1363 * doc/tm.texi (TARGET_DEFAULT_PACK_STRUCT): Fixed English.
1365 2006-08-24 Jan Hubicka <jh@suse.cz>
1367 * reload1.c (emit_reload_insns): Fix yet another typo in my patch.
1369 2006-08-24 Jan Hubicka <jh@suse.cz>
1372 * cgraph.c: Fix comments.
1373 (cgraph_varpool_mark_needed_node): Mark only variables not already
1375 * cgraphunit.c: Update comments; include gt-cgraphunit.h
1376 (cgraph_varpool_assembled_nodes_queue): New static variable.
1377 (cgraph_varpool_assemble_decl): Record output decls for debug out code.
1378 (cgraph_varpool_output_debug_info): New function.
1379 (cgraph_finalize_compilation_unit, cgraph_optimize): Call it.
1380 * Makefile.in: Add gt-cgraphunit.h
1382 2006-08-24 Jan Hubicka <jh@suse.cz>
1384 * predict.c (probability_reliable_p): New predicate.
1385 (edge_probability_reliable_p, br_prob_note_reliable_p): Likewise.
1386 (predict_loops): Do not predict loop exit with less than 2%
1388 * basic-block.h (edge_probability_reliable_p,
1389 br_prob_note_reliable_p): Declare.
1390 * ia64.h (ia64_print_operand): Do not disable on-chip branch
1391 prediction when static predictor is not reliable.
1392 * rs6000.c (output_cbranch): Likewise.
1394 2006-08-23 Stuart Hastings <stuart@apple.com>
1397 * gcc/config/i386/i386.c (ix86_expand_vector_init_duplicate,
1398 ix86_expand_vector_init_one_nonzero): Remove TARGET_SSE test.
1400 2006-08-21 Geoffrey Keating <geoffk@apple.com>
1403 * dwarf2out.c (rtl_for_decl_init): Don't try to create RTL for
1404 complex values, nor for generic vector values.
1406 2006-08-22 Richard Guenther <rguenther@suse.de>
1409 * tree-scalar-evolution.c (fold_used_pointer): Add at_stmt
1410 parameter. Convert arguments to arithmetic expression to the
1412 (analyze_scalar_evolution_1): Adjust caller.
1414 2006-08-22 Jan Hubicka <jh@suse.cz>
1416 Patch by Paolo Bonzini
1417 * reload1.c (emit_reload_insns): Fix incorrect bracketing introduced by
1420 2006-08-22 Daniel Berlin <dberlin@dberlin.org>
1422 PR tree-optimization/28003
1423 * tree-ssa-alias.c (compute_may_aliases): Compute call clobbered
1424 before grouping aliases.
1426 2006-08-22 Roger Sayle <roger@eyesopen.com>
1428 * config/i386/i386.c (ix86_value_regno): Don't return FIRST_MMX_REG
1429 if !TARGET_MMX, and don't return FIRST_SSE_REG if !TARGET_SSE.
1431 2006-08-21 Jason Merrill <jason@redhat.com>
1434 * gimplify.c (voidify_wrapper_expr): Handle STATEMENT_LIST as a
1435 wrapper. Loop to handle nested wrappers.
1436 (gimplify_bind_expr): Remove temp parameter.
1437 (gimplify_modify_expr_rhs): Handle CLEANUP_POINT_EXPR, BIND_EXPR
1438 and STATEMENT_LIST on the rhs.
1439 (gimplify_statement_list): Voidify the STATEMENT_LIST.
1440 (gimplify_expr): Pass pre_p to gimplify_statement_list.
1441 (gimplify_target_expr): Remove special BIND_EXPR handling.
1443 2006-08-21 J"orn Rennecke <joern.rennecke@st.com>
1445 * config/sh/lib1funcs-Os-4-200.asm: Guard entire file with
1448 2006-08-21 Olivier Hainque <hainque@adacore.com>
1450 * gimplify.c (gimplify_init_constructor) <RECORD,UNION,ARRAY types>:
1451 Arrange for the temporary captures of components overlapping the lhs
1452 to happen before the lhs is possibly cleared.
1454 2006-08-21 Mark Shinwell <shinwell@codesourcery.com>
1456 * config/arm/pr-support.c (__gnu_unwind_execute): Insert " + 1" in
1457 necessary places to pass the correct "number of registers" values
1460 2006-08-20 Jan Hubicka <jh@suse.cz>
1462 * tree-ssa-alias.c (eq_ptr_info, ptr_info_hash): New function.
1463 (create_name_tags): Instead of quadratic checking use hashtable.
1464 * bitmap.h: Include hashtab.h.
1465 (bitmap_hash): Declare.
1466 * bitmap.c (bitmap_hash): New function.
1468 2006-08-20 Jan Hubicka <jh@suse.cz>
1470 PR rtl-optimization/28071
1471 * tree-optimize.c (tree_rest_of_compilation): Do not remove edges
1473 * tree-inline.c (copy_bb): Use cgraph_set_call_stmt.
1474 * ipa-inline.c (cgraph_check_inline_limits): Add one_only argument.
1475 (cgraph_decide_inlining, cgraph_decide_inlining_of_small_function,
1476 cgraph_decide_inlining_incrementally): Update use of
1477 cgraph_check_inline_limits.
1478 * cgraph.c (edge_hash, edge_eq): New function.
1479 (cgraph_edge, cgraph_set_call_stmt, cgraph_create_edge,
1480 cgraph_edge_remove_caller, cgraph_node_remove_callees,
1481 cgraph_remove_node): Maintain call site hash.
1482 * cgraph.h (struct cgraph_node): Add call_site_hash.
1483 (cgraph_set_call_stmt): New function.
1485 2006-08-20 Jan Hubicka <jh@suse.cz>
1487 PR rtl-optimization/28071
1488 * reload1.c (reg_has_output_reload): Turn into regset.
1489 (reload_as_needed, forget_old_reloads_1, forget_marked_reloads,
1490 choose_reload_regs, emit_reload_insns): Update to new
1491 reg_has_output_reload.
1493 2006-08-20 Jan Hubicka <jh@suse.cz>
1496 * ipa-inline.c (cgraph_decide_inlining, cgraph_early_inlining): Compute
1497 function body sizes.
1498 * cgraphunit.c (cgraph_analyze_function): Don't do so.
1500 2006-08-20 Danny Smith <dannysmith@users.sourceforge.net>
1503 * tree.c (handle_dll_attribute): Return early if not a
1504 var or function decl.
1506 2006-08-18 Joseph Myers <joseph@codesourcery.com>
1509 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT): For SPE, only adjust
1510 alignment of SPE vector types.
1512 2006-08-18 Christophe Jaillet <christophe.jaillet@wanadoo.fr>
1514 * tree.c (is_attribute_with_length_p): Remove a duplicated assert.
1516 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1519 * cgraph.h (struct cgraph_node): Remove externally_visible
1521 * cgraphunit.c (process_function_and_variable_attributes): Set
1522 local.externally_visible rather than externally_visible.
1525 * c-common.c (handle_externally_visible_attribute): First look
1526 at TREE_CODE and only if it is function or var decl, check for
1527 non-public objects. Don't warn for DECL_EXTERNAL.
1528 * cgraphunit.c (process_function_and_variable_attributes): Warn
1529 if externally_visible attribute is used on non-public object.
1531 2006-08-17 Jan Hubicka <jh@suse.cz>
1533 PR tree-optimization/27865
1534 * reload1.c (forget_marked_reloads): New function.
1535 (forget_old_reloads_1): When data are passed, just mark the registers
1537 (reload_as_needed): Use the new mechanizm.
1539 2006-08-17 Alexandre Oliva <aoliva@redhat.com>
1542 * reload.h (reg_equiv_alt_mem_list): New declaration.
1543 * reload1.c (reg_equiv_alt_mem_list): New definition.
1544 (reload): Initialize it and release it.
1545 (delete_output_reload): Use it.
1546 * reload.c (push_reg_equiv_alt_mem): New function.
1547 (find_reloads_toplev): Call it.
1548 (find_reloads_address, find_reloads_address_1): Likewise.
1549 (find_reloads_subreg_address): Likewise.
1551 2006-08-17 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1553 PR rtl-optimization/28489
1554 * sched-ebb.c (begin_schedule_ready): Create basic block
1556 (advance_target_bb): Skip empty blocks.
1557 * haifa-sched.c (bb_note): Make global.
1558 * sched-int.h (bb_note): Add prototype.
1560 2006-08-16 Zdenek Dvorak <dvorakz@suse.cz>
1562 PR tree-optimization/27865
1563 * tree-vrp.c (adjust_range_with_scev): Do not use TYPE_{MIN,MAX}_VALUE
1565 * tree-scalar-evolution.c (fold_used_pointer_cast, pointer_offset_p,
1566 fold_used_pointer, pointer_used_p): New functions.
1567 (analyze_scalar_evolution_1): Use fold_used_pointer.
1568 * tree-chrec.c (convert_affine_scev): Convert no-op casts correctly.
1569 * tree-ssa-loop-ivopts.c (generic_type_for): Return integral type
1572 2006-08-17 Paolo Bonzini <bonzini@gnu.org>
1575 * c-common.c (fold_offsetof_1): Add an argument and recurse down to it
1576 or the INTEGER_CST. Fail on a CALL_EXPR.
1577 (fold_offsetof): Pass new argument to fold_offsetof_1.
1578 * c-parser.c (c_parser_postfix_expression): Don't include a NULL
1579 operand into an INDIRECT_REF.
1580 * c-typeck.c (build_unary_op): Adjust call to fold_offsetof.
1582 2006-08-16 Zdenek Dvorak <dvorakz@suse.cz>
1584 PR gcov/profile/26570
1585 * value-prof.c (static_values): Removed.
1586 (tree_find_values_to_profile): Do not set static_values.
1587 (find_values_to_profile): Do not free static_values.
1588 * profile.c (instrument_values): Do not free the values.
1589 (branch_prob): Free the values.
1591 2006-08-16 Naveen.H.S <naveenh@kpitcummins.com>
1593 * config/m32c/m32c_lib1.S (__mulsi3): Use only registers for dest.
1595 2006-08-16 Joseph S. Myers <joseph@codesourcery.com>
1598 * c-typeck.c (build_component_ref): Combine qualifiers of
1599 structure or union and field.
1601 2006-08-16 Zdenek Dvorak <dvorakz@suse.cz>
1603 PR rtl-optimization/28071
1604 * basic-block.h (bb_dom_dfs_in, bb_dom_dfs_out): Declare.
1605 * dominance.c (bb_dom_dfs_in, bb_dom_dfs_out): New functions.
1606 * tree-into-ssa.c (struct dom_dfsnum): New.
1607 (cmp_dfsnum, find_dfsnum_interval, prune_unused_phi_nodes): New
1609 (insert_phi_nodes_for): Use prune_unused_phi_nodes instead of
1610 compute_global_livein.
1611 (prepare_block_for_update, prepare_use_sites_for): Mark the uses
1612 in phi nodes in the correct blocks.
1614 2006-08-16 Zdenek Dvorak <dvorakz@suse.cz>
1616 PR tree-optimization/28364
1617 * tree-ssa-loop-ivopts.c (aff_combination_to_tree): Handle zero
1619 (fold_affine_expr): New function.
1620 (may_eliminate_iv): Use fold_affine_expr.
1622 2006-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1625 * c-typeck.c (c_start_case): Handle invalid orig_type correctly.
1628 2006-08-16 Mike Stump <mrs@apple.com>
1630 * doc/invoke.texi (-Wno-deprecated-declarations): Fixup use of pxref.
1631 * doc/cppopts.texi (-MD): Likewise.
1633 2006-08-15 Danny Smith <dannysmith@users.sourceforge.net>
1636 * c-common.c (handle_weak_attribute): Ignore and warn if
1637 not a FUNCTION_ or VAR_DECL.
1639 2006-07-15 Mike Stump <mrs@apple.com>
1642 * c-parser.c (c_parser_typeof_specifier): Don't use
1643 c_finish_expr_stmt, open code desired semantics instead.
1645 2006-08-15 Nick Clifton <nickc@redhat.com>
1647 * config.gcc (x86-mingw32): Add a gthr-win32.h including makefile
1648 fragment to tmake_file only if threads are enabled.
1649 * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Move to...
1650 * config/i386/t-gthr-win32: New file. ... here.
1652 2006-08-15 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1655 * c-parser.c (c_parser_compound_statement_nostart): Reset
1656 parser->error after each statement.
1658 2006-08-15 Jakub Jelinek <jakub@redhat.com>
1661 * omp-low.c (lower_omp_parallel): Convert t to
1662 receiver_decl's type.
1663 (expand_omp_parallel): STRIP_NOPS from the MODIFY_EXPR
1664 source before comparison.
1667 * gimplify.c (gimplify_omp_atomic_pipeline): Convert oldival
1668 to itype in assignment to oldival2.
1670 2006-07-14 Andrew Pinski <pinksia@physics.uc.edu>
1674 * c-typeck.c (build_compound_expr): If the second expression
1675 is an error mark, then just return an error mark instead of
1676 creating a COMPOUND_EXPR.
1678 2006-07-14 Mike Stump <mrs@apple.com>
1680 * Makefile.in (LIBGCC_DEPS): Don't depend on LANGUAGES.
1682 2006-08-14 Kazu Hirata <kazu@codesourcery.com>
1684 * c-decl.c, var-tracking.c: Fix comment typos.
1686 2006-08-14 Richard Sandiford <richard@codesourcery.com>
1688 PR rtl-optimization/28634
1689 * reorg.c (fill_slots_from_thread): Do not assume A + X - X == A
1690 for floating-point modes unless flag_unsafe_math_optimizations.
1692 2006-08-13 Alexandre Oliva <aoliva@redhat.com>
1693 Andrew Pinski <pinskia@physics.uc.edu>
1696 * tree.c (build_array_type): Unify array types with
1697 unspecified index_type.
1698 * c-decl.c (grokdeclarator): Make sure we do not modify a
1699 unified incomplete array type.
1700 * c-typeck.c (store_init_value): Create distinct type before
1701 filling in the index type in an initializer from a compound
1704 * c-decl.c (grokdeclarator): Remove code where we copy the
1707 2006-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1709 * tree-pass.h (TODO_update_ssa): Fix which bit is used to take
1710 into account for TODO_dump_cgraph.
1711 (TODO_update_ssa_no_phi): Likewise.
1712 (TODO_update_ssa_full_phi): Likewise.
1713 (TODO_update_ssa_only_virtuals): Likewise.
1714 (TODO_remove_unused_locals): Likewise.
1715 (TODO_set_props): Likewise.
1716 (TODO_update_stmt_usage): Likewise.
1718 2006-08-13 Dirk Mueller <dmueller@suse.de>
1720 * c-common.c (strict_aliasing_warning): Fix formatting.
1722 2006-08-13 Matthias Klose <doko@debian.org>
1724 * doc/invoke.texi: Fix spelling errors.
1726 2006-08-11 Eric Botcazou <ebotcazou@libertysurf.fr>
1728 PR rtl-optimization/23454
1729 * reorg.c (relax_delay_slots): Update comment.
1731 2006-08-11 Richard Guenther <rguenther@suse.de>
1734 * simplify-rtx.c (simplify_const_relational_operation):
1735 Simplify A CMP B to A - B CMP 0 only for EQ and NE comparison
1738 2006-08-10 Eric Botcazou <ebotcazou@adacore.com>
1740 * tree.c (build1_stat): Also propagate the TREE_CONSTANT and
1741 TREE_INVARIANT flags for a VIEW_CONVERT_EXPR.
1743 2006-08-10 Paul Brook <paul@codesourcery.com>
1745 * final.c (final_scan_insn): Clear current_insn_predicate before
1746 outputting inline asm.
1748 2006-08-10 Dorit Nuzman <dorit@il.ibm.com>
1750 PR tree-optimization/26197
1751 * tree-ssa-alias.c (new_type_alias): Takes additional argument. Calls
1752 get_ref_base_and_extent and overlap_subvar to add only relevant
1753 subvars as may-aliases.
1754 (add_may_alias_for_new_tag): New function, factored out of
1756 * tree-vect-transform.c (vect_create_data_ref_ptr): Call new_type_alias
1757 with additional argument.
1758 * tree-flow.h (new_type_alias): Takes additional argument.
1760 2006-08-09 Nathan Sidwell <nathan@codesourcery.com>
1762 * gcov.c (no_data_file): New flag.
1763 (read_count_file): Set it if data file not present. Assume counts
1765 (output_lines): Don't name the data file, if there wasn't one.
1767 2006-08-09 Eric Botcazou <ebotcazou@adacore.com>
1769 * config/rs6000/rs6000.c (print_operand) <D>: Fix comment and adjust.
1770 (rs6000_generate_compare): Tweak comments.
1771 * config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Fix comment.
1773 2006-08-09 Alexandre Oliva <aoliva@redhat.com>
1775 * var-tracking.c (enum micro_operation_type): Add MO_COPY.
1776 (var_debug_decl): New function.
1777 (var_reg_set): Follow debug decl link. Add location even if
1778 reg is already known to hold some other variable.
1779 (var_mem_set): Follow debug decl link.
1780 (var_reg_delete_and_set, var_mem_delete_and_set): Follow debug
1781 decl link. Delete other known locations of the variable part
1783 (var_reg_delete, var_mem_delete): Delete other known locations
1784 of the variable part if requested.
1785 (same_variable_part_p): New function.
1786 (add_stores): Select MO_COPY when appropriate.
1787 (vt_initialize): Handle it.
1788 (compute_bb_dataflow, emit_notes_in_bb): Likewise. Delete
1789 known locations for MO_SET and MO_CLOBBER.
1790 (find_variable_location_part): New function.
1791 (set_variable_part, delete_variable_part): Use it.
1792 (clobber_variable_part): New function.
1793 * dwarf2out.c (dwarf2out_var_location): Do not follow debug
1796 2006-08-07 Victor Kaplansky <victork@il.ibm.com>
1798 PR tree-optimization/26969
1799 * tree-vect-analyze.c (vect_analyze_loop_form): Add check of latch
1800 with an empty list of PHIs.
1802 2006-08-06 Paolo Bonzini <bonzini@gnu.org>
1806 * conffig/i386/i386.md: Add peephole2 to avoid "fld %st"
1809 2006-08-06 Andreas Schwab <schwab@suse.de>
1811 * config/m68k/m68k.c (m68k_output_function_epilogue): Fix format
1812 string. Whitespace and comment fixup.
1814 2006-08-05 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1817 * c-decl.c (validate_proto_after_old_defn): Return false on invalid
1821 * c-typeck.c (build_modify_expr): Test earlier for non-lvalues.
1824 * c-parser.c (c_parser_postfix_expression_after_paren_type): Robustify.
1826 2006-08-04 Jan Hubicka <jh@suse.cz>
1830 * reload.c (push_reload): Patch out the mismatching instruction;
1832 (find_reload): Bail out if the instruction was patched out.
1834 2006-08-04 Jan Hubicka <jh@suse.cz>
1836 PR tree-optimization/24888
1837 * tree-inline.c (expand_call_inline): Do not re-record variables.
1838 (declare_inline_vars): Add variable to unexpanded_var_list.
1840 2006-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1841 Roger Sayle <roger@eyesopen.com>
1843 PR rtl-optimization/26244
1844 * cse.c (fold_rtx): Correctly associate shifts when const_arg1 and/or
1845 inner_const are negative or greater than or equal to the bitsize of
1846 MODE. If SHIFT_COUNT_TRUNCATED is false, the values aren't associated.
1847 Otherwise, the values are masked using GET_MODE_BITSIZE (mode) - 1.
1848 Simplify complicated if statement. For ASHIFT and LSHIFTRT, return
1849 CONST0_RTX (mode) when the new shift count is greater than or equal to
1850 to the bitsize of the object being shifted and XEXP (y, 0) has no side
1853 2006-08-04 Kazu Hirata <kazu@codesourcery.com>
1855 * tree-cfg.c: Fix a comment typo.
1857 2006-08-03 Mark Mitchell <mark@codesourcery.com>
1860 * varasm.c (output_constant): Give the front end another chance to
1861 expand constants, after stripping NOPs.
1863 2006-08-03 Jan Hubicka <jh@suse.cz>
1865 * domwalk.c (walk_dominator_tree): Reorganize to non-recursive
1868 2006-08-03 Dorit Nuzman <dorit@il.ibm.com>
1870 PR tree-optimization/27770
1871 * tree-vectorizer.h (get_vectype_for_scalar_type): Function
1872 declaration removed (moved to tree-flow.h).
1873 (vect_can_force_dr_alignment_p): Likewise.
1874 * tree-flow.h (get_vectype_for_scalar_type): New function declaration
1875 (moved from tree-vectorizer.h).
1876 (vect_can_force_dr_alignment_p): Likewise.
1877 * tree-vectorizer.c (vect_print_dump_info): Allow calling this function
1878 from outside the vectorizer - in particular from cgraph stage.
1879 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Don't increase
1880 the alignment of global arrays when -fsection-anchors is enabled.
1881 * cgraphunit.c (cgraph_increase_alignment): New function.
1882 (cgraph_optimize): Call cgraph_increase_alignment.
1884 2006-08-03 David Edelsohn <edelsohn@gnu.org>
1887 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
1888 not reload a SPE symbol_ref into a lo_sum address.
1890 2006-08-02 Daniel Jacobowitz <dan@codesourcery.com>
1893 * dwarf2out.c (prune_unused_types_prune): Move call to
1894 prune_unused_types_update_strings to cover the parent DIE also.
1896 2006-08-02 Jan Hubicka <jh@suse.cz>
1898 PR gcov/profile/28480
1899 * tree-cfg.c (change_bb_for_stmt): New function.
1900 (tree_merge_blocks, tree_split_blocks): Use it.
1902 2006-08-01 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1908 * toplev.c (compile_file): Return early on errorcount or sorrycount.
1909 * cgraphunit.c (cgraph_finalize_compilation_unit): Likewise.
1910 (cgraph_optimize): Likewise.
1912 2006-08-01 Stuart Hastings <stuart@apple.com>
1914 * rtl.h (UINTVAL) New.
1915 * config/rs6000/rs6000.c (SMALL_INT) Use it.
1916 * testsuite/gcc.dg/20060801-1.c: New.
1918 2006-08-01 Daniel Jacobowitz <dan@codesourcery.com>
1921 * c-typeck.c (build_external_type): Mark used enum types.
1922 * dwarf2out.c (dwarf2out_abstract_function): Save and restore
1924 (gen_subprogram_die): Whitespace fix.
1926 2006-08-01 Jan Hubicka <jh@suse.cz>
1928 * tree-outof-ssa.c (check_replaceable): Do not allocate def_vars
1929 bitmap when not needed.
1930 * tree-ssa-pre.c (bitmap_set_and, bitmap_set_and_compl): Free temporary
1933 2006-08-01 Dirk Mueller <dmueller@suse.de>
1935 * tree-vrp.c (fix_equivalence_set): Avoid bitmap memory leak.
1937 2006-07-31 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1939 * Makefile.in: Revert part of previous patch:
1940 Replace $(VARRAY_H) by varray.h in definition of BASIC_BLOCK_H
1943 2006-07-30 Eric Christopher <echristo@apple.com>
1946 * doc/extend.texi (i386 Variable Attributes): Add anchor.
1947 (PowerPC Variable Attributes): New section.
1949 2006-07-30 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
1951 PR target/28126 (partial fix)
1952 * config/mips/mips.md (tls_get_tp_<mode>): Set can_delay to no.
1954 2006-07-28 Jan Hubicka <jh@suse.cz>
1956 PR rtl-optimization/28071
1957 * cfgrtl.c (rtl_delete_block): Free regsets.
1958 * flow.c (allocate_bb_life_data): Re-use regsets if available.
1960 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1962 * Makefile.in: Use $(HEADER_H) instead of header.h in dependencies
1963 and variables used in dependencies.
1965 2006-07-27 Arjan van de Ven <arjan@linux.intel.com>
1967 * config/i386/i386.md (stack_tls_protect_set_di) Use %gs rather than
1968 %fs for -mcmodel=kernel.
1969 (stack_tls_protect_test_di): Likewise.
1971 2006-07-27 Carlos O'Donell <carlos@codesourcery.com>
1973 * Makefile.in: Use mkinstalldirs.
1975 2006-07-27 H.J. Lu <hongjiu.lu@intel.com>
1978 * opts-common.c (prune_options): Skip joined switches.
1980 2006-07-27 Jan Hubicka <jh@suse.cz>
1982 PR rtl-optimization/28071
1983 * cselib.c (cselib_process_insn): Don't remove useless values too
1984 often for very large hashtables.
1986 2006-07-27 Jan Hubicka <jh@suse.cz>
1988 PR rtl-optimization/28071
1989 * global.c (greg_obstack): New obstack.
1990 (allocate_bb_info): Use it.
1991 (free_bb_info): Likewise.
1992 (modify_reg_pav): Likewise.
1994 2006-07-27 Roger Sayle <roger@eyesopen.com>
1996 * builtins.c (fold_fixed_mathfn): When long and long long are the
1997 same size, canonicalize llceil*, llfloor*, llround* and llrint*
1998 functions to their lceil*, lfloor*, lround* and lrint* forms.
2000 2006-07-27 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2003 * config/m32r/m32r.md (branch_insn): Reduce pc range for short
2005 (rev_branch_insn): Likewise.
2007 2006-07-27 Jan Hubicka <jh@suse.cz>
2009 PR rtl-optimization/28071
2010 * regmove.c (reg_is_remote_constant_p): Avoid quadratic behaviour.
2011 (reg_set_in_bb, max_reg_computed): New static variables.
2012 (regmove_optimize): Free the new array.
2013 (fixup_match_1): Update call of reg_is_remote_constant_p.
2015 2006-07-26 Jan Hubicka <jh@suse.cz>
2017 PR tree-optimization/27882
2018 * cgraph.c (cgraph_remove_node): Clear needed, reachable, next, previous
2020 * cgraphunit.c (cgraph_reset_node): Expect cgraph_remove_node to kill
2022 (cgraph_analyze_compilation_unit): Likewise.
2023 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
2024 * ipa-inline.c (cgraph_decide_recursive_inlining): Likewise.
2025 (cgraph_early_inlinine): Make order garbage collected.
2026 * Makefile.in (gt-ipa-inline): New garbagecollected file.
2028 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
2030 * dbxout.c (output_types_sort): Add a comment.
2031 (output_used_types): Free the VEC.
2033 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
2035 * function.c (reorder_fix_fragments): Delete.
2036 (reorder_blocks): Don't call it.
2037 (reorder_blocks_1): Put all subblocks under the origin block.
2039 2006-07-26 Zdenek Dvorak <dvorakz@suse.cz>
2041 PR rtl-optimization/27907
2042 * expr.c (force_operand): Use convert_move to handle FLOAT_EXTEND and
2045 2006-07-25 Roger Sayle <roger@eyesopen.com>
2048 * convert.c (convert_to_integer): When transforming (T)foo(x) into
2049 bar(x) check that bar's result type can represent all the values of T.
2051 2006-07-25 Zdenek Dvorak <dvorakz@suse.cz>
2053 * tree-chrec.c (chrec_convert_aggressive): Return NULL on failure.
2055 2006-07-25 Nick Clifton <nickc@redhat.com>
2057 * ggc-page.c (NUM_SIZE_LOOKUP): New constant - the length of the
2058 size_lookup[] array.
2059 (ggc_alloc_stat): Use NUM_SIZE_LOOKUP.
2060 (ggc_pch_count_object): Likewise.
2061 (ggc_pch_alloc_object): Likewise.
2062 (ggc_pch_write_object): Likewise.
2063 (init_ggc): Do not attempt to initialize entries in the
2064 size_lookup[] array for objects whose size is greater than than
2065 the length of the array.
2067 2006-07-25 Daniel Jacobowitz <dan@codesourcery.com>
2069 * dbxout.c (output_used_types_helper): Push queued types
2071 (output_types_sort): New.
2072 (output_used_types): Collect used types on a VEC and sort them
2075 2006-07-24 Richard Guenther <rguenther@suse.de>
2078 * cgraph.c (cgraph_remove_node): Do not check if dumps
2080 * cgraphunit.c (cgraph_optimize): Likewise.
2082 2006-07-24 Jan Hubicka <jh@suse.cz>
2084 PR rtl-optimization/28071
2085 * tree-cfg.c (tree_split_block): Do not allocate new stmt_list nodes.
2086 * tree-iterator.c (tsi_split_statement_list_before): Do not crash when
2087 splitting before first stmt.
2089 2006-07-24 Jan Hubicka <jh@suse.cz>
2091 PR rtl-optimization/28071
2092 * ipa-inline.c (update_caller_keys): Remove edges that
2093 are no longer inline candidates.
2095 2006-07-23 Daniel Jacobowitz <dan@codesourcery.com>
2098 * dbxout.c (output_used_types_helper, output_used_types): New.
2099 (dbxout_symbol): Call output_used_types.
2101 2006-07-23 Jan Hubicka <jh@suse.cz>
2105 * cgraph.c (cgraph_varpool_nodes): Export.
2106 (decide_is_variable_needed): Ignored "used" attribute in
2107 unit-at-a-time mode.
2108 * cgraph.h (cgraph_varpool_nodes): Declare.
2109 * cgraphunit.c (decide_is_function_needed): Ignored "used" attribute in
2110 unit-at-a-time mode.
2112 2006-07-23 Roger Sayle <roger@eyesopen.com>
2115 * gthr-solaris.h: Prototype __gthrw forms of thr_self, mutex_init and
2116 mutex_destroy even when !_LIBOOBJC. Remove duplicate prototype of
2117 the __gthrw form of thr_keycreate.
2118 (__gthread_key_delete): Silence the unused argument warning.
2120 2006-07-23 Steven Bosscher <steven@gcc.gnu.org>
2123 * config/elfos.h (ASM_OUTPUT_ASCII): Remove 'register' marks.
2124 Cache the last found '\0' marker to avoid quadratic behavior.
2126 2006-07-23 Jan Hubicka <jh@suse.cz>
2128 * i386.md (subsi_3_zext): Fix output template.
2130 2006-07-21 Mike Stump <mrs@apple.com>
2132 * doc/invoke.texi (C++ Dialect Options): Note that
2133 -fvisibility-inlines-hidden doesn't affect explicitly
2134 instantiationed inline methods.
2136 2006-07-20 Roger Sayle <roger@eyesopen.com>
2138 * config.gcc (i[34567]86-*-solaris2*): Add usegas.h to $tm_file
2139 if the target assembler is GNU binutils' gas.
2140 * config/i386/sol2-10.h (ASM_SPEC): Check USE_GAS to determine
2141 whether to pass GNU gas or native as command line options.
2143 2006-07-20 Jason Merrill <jason@redhat.com>
2145 * tree.c (remove_attribute): New fn.
2146 * tree.h: Declare it.
2148 2006-07-20 Paul Brook <paul@codesourcery.com>
2151 * cse.c (cse_insn): Add destination addresses to hash table. Check if
2152 they are invalidated by this instruction.
2154 2006-07-21 Danny Smith <dannysmith@users.sourceforge.net>
2157 * config/i386/cygming.h (MAX_OFILE_ALIGNMENT): Define.
2159 2006-07-20 Eric Christopher <echristo@apple.com>
2162 * config/i386/i386.h (OPTION_DEFAULT_SPECS): Reorder.
2164 2006-07-19 Eric Christopher <echristo@apple.com>
2166 * config/t-slibgcc-darwin (stmp-lipo): Remove.
2167 Rewrite dependencies for libgcc_s.1.dylib.
2169 2006-07-19 Jakub Jelinek <jakub@redhat.com>
2171 * except.c (duplicate_eh_regions_1): Clear next_peer.
2173 2006-07-17 Nathan Sidwell <nathan@codesourcery.com>
2175 * doc/invoke.texi (RS/6000 and PowerPC Options): Document that
2176 -mlongcall does not guarantee all calls will be long.
2177 * doc/extend.texi (long_call/short_call): Document that longcall
2178 does not guarantee a long call will be used.
2179 (longcall/shortcall): Likewise.
2181 2006-07-18 Roger Sayle <roger@eyesopen.com>
2184 * expmed.c (expand_shift): Additionally check that the shift_cost
2185 is not MAX_COST and that INTVAL(op1) is less than MAX_BITS_PER_WORD
2186 before implementing a LSHIFT_EXPR as a sequence of additions.
2187 * config/sh/sh.c (shift_costs): Return MAX_COST to inform the
2188 middle-end that DImode shifts need to be synthesized by expand.
2190 2006-07-18 Diego Novillo <dnovillo@redhat.com>
2193 * tree-ssa-operands.c (access_can_touch_variable): Update
2195 Return true if ALIAS is .GLOBAL_VAR.
2197 2006-07-18 David Daney <ddaney@avtrex.com>
2199 * gcc.c (display_help): Fix typo in help text.
2201 2006-07-18 Olivier Hainque <hainque@adacore.com>
2203 * tree.h (categorize_ctor_elements): Adjust prototype and add
2204 descriptive comment, both in accordance with the interface change
2206 * varasm.c (constructor_static_from_elts_p): New function.
2207 Whether a constructor node is a valid static constant initializer
2208 if all its elements are.
2209 (initializer_constant_valid_p) <CONSTRUCTOR value>: Use it.
2210 * output.h: Declare it.
2211 * expr.c (categorize_ctor_elements_1): Return whether the constructor
2212 is a valid constant initializer instead of computing the number of
2213 non-constant elements. Use constructor_static_from_elts_p for this
2214 purpose. Replace the head comment with an indication that this is a
2215 helper for categorize_ctor_elements.
2216 (categorize_ctor_elements): Same interface change as for the _1
2217 helper. Former head comment from this helper moved here, adjusted to
2218 account for the interface changes.
2219 (mostly_zeros_p): Adjust call to categorize_ctor_elements.
2220 (all_zeros_p): Likewise.
2221 * gimplify.c (gimplify_init_constructor): Decide whether we can make
2222 static versions of the constructor from the categorize_ctor_elements
2223 return value instead of the formerly computed number of non-constant
2226 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
2228 * configure: Regenerate.
2229 * Makefile.in (build_libsubdir): New configure substitution
2230 (build_libobjdir): New variable.
2231 (BUILD_LIBIBERTY): Use it.
2233 2006-07-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2236 * c-pragma.c (handle_pragma_pack): Handle invalid constants.
2238 2006-07-18 Alexandre Oliva <aoliva@redhat.com>
2241 * c-common.c (handle_weakref_attribute): Ignore attribute in
2242 the same conditions the alias attribute is ignored.
2244 2006-07-17 Carlos O'Donell <carlos@codesourcery.com>
2246 * dbxout.c (dbxout_function_end): Do not increment scope_labelno.
2247 (dbxout_begin_prologue): Increment scope_labelno.
2249 2006-07-17 Richard Henderson <rth@redhat.com>
2252 * tree-nested.c (create_tmp_var_for): Set DECL_COMPLEX_GIMPLE_REG_P
2255 2006-07-17 Roger Sayle <roger@eyesopen.com>
2256 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2258 * config/i386/gmon-sol2.c: Silence compilation warnings by partially
2259 synchronizing code with config/sparc/gmon-sol2.c. Remove #if 0
2260 blocks. #include "tconfig.h" and "tsystem.h" to prototype system
2261 functions such as sbrk, write, etc.. Add function prototypes.
2262 Convert function declarations from K&R to ISO C. Cast pointers
2263 to "long" and "unsigned long" instead of "int" and "unsigned int".
2264 Convert tokens following #endif into comments.
2266 2006-07-17 Toon Moene <toon@moene.indiv.nluug.nl>
2268 * invoke.texi: Remove mention of f77; Reformat table for
2269 inline parameter options correctly; mention that -malign-double
2270 is default on x86-64 targets.
2272 2006-07-17 Zdenek Dvorak <dvorakz@suse.cz>
2274 * tree-chrec.c (avoid_arithmetics_in_type_p): New.
2275 (convert_affine_scev, chrec_convert_aggressive): Use
2276 avoid_arithmetics_in_type_p. Do not check for the subtypes
2279 2006-07-17 Richard Sandiford <richard@codesourcery.com>
2282 * optabs.c (expand_doubleword_shift): Wrap the call to
2283 do_compare_rtx_and_jump with NO_DEFER_POP and OK_DEFER_POP.
2285 2006-07-17 Richard Sandiford <richard@codesourcery.com>
2288 * optabs.c (expand_binop): Pass next_methods rather than methods
2289 to expand_doubleword_shift.
2291 2006-07-17 J"orn Rennecke <joern.rennecke@st.com>
2294 * tree.h (dump_addr): Declare.
2295 * print-tree.c (dump_addr): New function.
2296 (print_node_brief, print_node): Use it.
2297 * print-rtl.c (print_rtx): Likewise.
2298 * common.opt (-fdump-noaddr): New option.
2299 * doc/invoke.texi (-fdump-noaddr): Document.
2300 * loop-unroll.c (si_info_hash): Make hash independent of addresses.
2301 (ve_info_hash): Likewise.
2303 2006-07-13 Andrew Haley <aph@redhat.com>
2305 PR tree-optimization/19505
2306 * tree-cfgcleanup.c (tree_forwarder_block_p): If we have an EH
2307 edge leaving this block, make sure that the destination of this
2308 block has only one predecessor.
2310 2006-07-17 Richard Guenther <rguenther@suse.de>
2312 PR tree-optimization/28238
2313 * tree-inline.c (copy_bb): Check if we produced valid
2314 gimple copying and substituting a stmt. If not, gimplify
2317 2006-07-16 Eric Botcazou <ebotcazou@adacore.com>
2319 * optabs.c (maybe_encapsulate_block): New function extracted from...
2320 (emit_libcall_block): ...here. Invoke it on the block of insns to
2321 maybe emit REG_LIBCALL/REG_RETVAL notes around the block.
2322 (emit_no_conflict_block): Likewise.
2324 2006-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
2326 * doc/install.texi (sparc-sun-solaris2*): Add GMP version number.
2328 2006-07-15 Roger Sayle <roger@eyesopen.com>
2330 * tree-gimple.c (is_gimple_stmt): Sink test of IS_EMPTY_STMT into
2331 a new NOP_EXPR case of the switch statement.
2333 2006-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
2336 * stor-layout.c (place_field): Take the bit field with
2337 an excessive size into account in the ms-bitfiled case.
2340 * stor-layout.c (place_field): Use DECL_BIT_FIELD_TYPE of
2341 the previous bit field.
2343 2006-07-14 Eliot Dresselhaus <eliot@sonic.net>
2346 * config/rs6000/spe.md (frob_di_df_2): Add m->r alternative.
2348 2006-07-14 Ulrich Weigand <uweigand@de.ibm.com>
2350 * config/s390/linux-unwind.h (s390_fallback_frame_state): Detect
2351 signal frames correctly even when the signal was installed with
2354 2006-07-14 Carlos O'Donell <carlos@codesourcery.com>
2356 * dbxout.c (dbxout_begin_prologue): Emit LFBB label at function start.
2357 (dbxout_function_end): Use local label LFBB. Remove hook
2359 (dbxout_source_line): Use local label LFBB.
2360 (dbxout_block): Likewise.
2361 (dbx_output_lbrac): Remove hook DBX_OUTPUT_LBRAC.
2362 (dbx_output_rbrac): Remove hook DBX_OUTPUT_RBRAC.
2363 * config/rs6000/linux64.h: Remove DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC,
2364 and DBX_OUTPUT_NFUN.
2366 2006-07-13 Janis Johnson <janis187@us.ibm.com>
2368 * doc/sourcebuild.texi (Test Directives): Document dg-shouldfail.
2370 2006-07-13 Jan Hubicka <jh@suse.cz>
2372 * cgraphunit.c (cgraph_varpool_analyze_pending_decls): Call
2374 * output.h (align_variable): Declare.
2375 * varasm.c (align_variable): Export.
2376 * value-prof.c (tree_value_profile_transformations): Recompute iterator
2377 when basic block changed.
2379 2006-07-13 Nick Clifton <nickc@redhat.com>
2381 * config/sh/sh.c (sh_reorg): Ignore deleted insns whilst
2382 walking the LOG_LINKS chain.
2384 2006-07-12 Geoffrey Keating <geoffk@apple.com>
2386 * doc/invoke.texi (C++ Dialect Options): Explain difference
2387 between -fvisibility-inlines-hidden and setting hidden
2388 visibility explicitly.
2390 2006-07-12 Eric Christopher <echristo@apple.com>
2392 * config/t-slibgcc-darwin (SHLIB_LINK): Don't munge stmp-lipo.
2393 (stmp-lipo): Depend on libgcc.a.
2395 2006-07-12 Kazu Hirata <kazu@codesourcery.com>
2397 * tree.c: Fix a comment typo.
2399 2006-07-12 Naveen.H.S <naveenh@kpitcummins.com>
2401 * config/m32c/muldiv.md (umulhisi3_c): Use only registers for
2403 (umulhisi3_r): Likewise.
2405 2006-07-12 Paolo Carlini <pcarlini@suse.de>
2408 * doc/install.texi (mips-sgi-irix6): Add note about IRIX 6.5.x,
2409 x < 19, vs wchar_t support.
2411 2006-07-12 Nick Clifton <nickc@redhat.com>
2413 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Use -isa=sh4-up
2414 instead of -isa=sh4.
2416 2006-07-12 Mike Stump <mrs@apple.com>
2418 * protoize.c (edit_fn_definition): Add volatile to clean_text_p.
2420 2006-07-10 Eric Christopher <echristo@apple.com>
2422 * config/t-slibgcc-darwin: Rewrite.
2424 2006-07-10 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2427 * Makefile.in (configure): add missing aclocal.m4 and acinclude.m4
2430 2006-07-08 Matthias Klose <doko@debian.org>
2432 * doc/sourcebuild.texi: Fix typo.
2434 2006-07-07 Mike Stump <mrs@apple.com>
2436 * toplev.c (process_options): Don't give -ffunction-sections may
2437 affect debugging warning for Mach-O.
2439 2006-07-07 James E Wilson <wilson@specifix.com>
2441 * config/mips/mips.md (cpu): Add sb1a.
2442 * config/mips/sb1.md: Modify almost all patterns to accept sb1a in
2443 addition to sb1. Adjust comments to clarify SB-1A differences from
2445 (ir_sb1a_load): New. Modify bypasses to use it.
2446 (ir_sb1a_simple_alu): Likewise.
2447 * config/mips/mips.c (mips_cpu_info_table): Add sb1a.
2448 (mips_rtx_cost_data): Add PROCESSOR_SB1A support.
2449 (mips_issue_rate): Add PROCESSOR_SB1A.
2450 (mips_multipass_dfa_lookahead): Use TUNE_SB1 instead of PROCESSOR_SB1.
2451 * config/mips/mips.h (processor_type): Add PROCESSOR_SB1A.
2452 (TARGET_SB1): Add PROCESSOR_SB1A check.
2453 (TUNE_SB1): Likewise.
2455 * config/mips/mips-protos.h (mips_store_data_bypass_p): New.
2456 * config/mips/mips.c (mips_store_data_bypass_p): New.
2457 * config/mips/sb1.md: Use mips_store_data_bypass_p instead of
2458 store_data_bypass_p.
2460 2006-07-08 Paul Brook <paul@codesourcery.com>
2463 * config/m68k/m68k.md: Add r-m patterns for 68881 movxf.
2465 2006-07-07 Richard Guenther <rguenther@suse.de>
2468 * tree.h (build_one_cst): Declare.
2469 * tree.c (build_one_cst): New function.
2470 * tree-ssa-math-opts.c (get_constant_one): Remove.
2471 (insert_reciprocals): Use build_one_cst.
2472 * fold-const.c (fold_plusminus_mult): Likewise.
2474 2006-07-07 Roger Sayle <roger@eyesopen.com>
2476 * pointer-set.c (pointer_set_destroy): Correct whitespace.
2477 * cfgloopanal.c (dump_graph): Likewise.
2478 * dojump.c (discard_pending_stack_adjust): Likewise.
2479 * fix-header.c (TARGET_EXTRA_INCLUDE, TARGET_EXTRA_PRE_INCLUDES):
2481 * alloc-pool.c (dump_alloc_pool_statistics): Likewise.
2482 * function.c (finalize_block_changes): Likewise.
2483 * gcc-common.c (ggc_free_overhead, dump_gcc_loc_statistics): Likewise.
2484 * tree-ssa-dce.c (clear_control_dependence_bitmap): Likewise.
2485 * rtl.c (dump_rtx_statistics): Likewise.
2486 * tree-ssa-structalias.c (sort_fieldstack, init_alias_heapvars):
2488 * varray.c (dump_varray_statistics): Likewise.
2489 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
2490 decode_decimal64, encode_decimal128, decode_decimal128,
2491 decimal_real_to_decimal): Likewise.
2493 2006-07-07 Richard Guenther <rguenther@suse.de>
2495 PR tree-optimization/28187
2496 * tree-vrp.c (vrp_operand_equal_p): New function.
2497 (vrp_bitmap_equal_p): Likewise.
2498 (update_value_range): Use them to compare old and new
2501 2006-07-06 Roger Sayle <roger@eyesopen.com>
2503 * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Add
2504 a default case to switch statement to silence compiler warnings.
2506 2006-07-06 Roger Sayle <roger@eyesopen.com>
2509 * configure.ac (HAVE_AS_IX86_FFREEP): On x86 targets check whether
2510 the configured assembler supports the x87's ffreep mnemonic.
2511 * configure: Regenerate.
2512 * config.in: Regenerate.
2514 * config/i386/i386.c (output_387_ffreep): New function.
2515 (output_fp_compare): Use output_387_ffreep to emit ffreep insns.
2516 (output_387_reg_move): Likewise.
2518 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
2520 Port to hosts whose 'sort' and 'tail' implementations
2521 treat operands with leading '+' as file names, as POSIX
2522 has required since 2001. However, make sure the code still
2523 works on pre-POSIX hosts.
2524 * Makefile.in (slowcompare): Port to POSIX 1003.1-2001,
2525 which says you should use "tail -c +N" rather than "tail +Nc".
2526 Fix a bug: the old code incorrectly skipped 15 bytes, not 16.
2528 2006-07-06 Zdenek Dvorak <dvorakz@suse.cz>
2530 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Fix typo in
2533 2006-07-06 David Edelsohn <edelsohn@gnu.org>
2536 * config/rs6000/rs6000.c (rs6000_legitimate_address): Do not allow
2537 PRE_{INC,DEC} of TFmode.
2539 2006-07-06 David Edelsohn <edelsohn@gnu.org>
2540 Alan Modra <amodra@bigpond.net.au>
2543 * config/rs6000/rs6000.c (insvdi_rshift_rlwimi_p): Correct shiftop
2546 2006-07-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2549 * config/alpha/predicates.md (alpha_swapped_comparison_operator):
2550 Remove duplicate gtu.
2552 2006-07-05 Jason Merrill <jason@redhat.com>
2556 * stor-layout.c (finish_record_layout): Copy TYPE_PACKED to variants.
2557 * c-common.c (handle_packed_attribute): So don't copy it here.
2558 * c-decl.c (finish_struct): Don't copy TYPE_ALIGN.
2560 2006-07-05 Mike Stump <mrs@apple.com>
2562 * doc/invoke.texi (Invoking G++): Clarify prose for g++.
2564 2006-07-05 H.J. Lu <hongjiu.lu@intel.com>
2567 * config.gcc: Check with_cpu for i[34567]86--*-solaris2.1[0-9]*.
2569 2006-07-05 Richard Guenther <rguenther@suse.de>
2572 * config/i386/i386.md (*negdf2_1): Restrict pattern to
2573 TARGET_SSE2 targets if using SSE math.
2574 (*absdf2_1): Likewise.
2576 2006-07-05 Richard Guenther <rguenther@suse.de>
2578 PR tree-optimization/28162
2579 * fold-const.c (fold_binary): For (-A) * (-B) -> A * B
2580 make sure to convert the operands to the correct type.
2582 2006-07-04 Paolo Bonzini <bonzini@gnu.org>
2584 PR tree-optimization/28218
2586 * tree-ssa-math-opts.c (execute_cse_reciprocals): Fix calls
2587 to calculate and free the dominator information.
2589 2006-07-04 Peter O'Gorman <peter@pogma.com>
2591 * mklibgcc.in: chmod 644 before ranlib during install.
2593 2006-07-04 Andrew Stubbs <andrew.stubbs@st.com>
2594 J"orn Rennecke <joern.rennecke@st.com>
2596 * configure.ac (.eh_frame data check): Use diff -b.
2598 2006-07-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2601 * Makefile.in (BUILD_RTL): Add build/vec.o.
2602 (build/gencondmd.o): Filter out -fkeep-inline-functions.
2603 (build/genextract): Delete.
2604 (build/genautomata): Likewise.
2606 2006-07-04 Alan Modra <amodra@bigpond.net.au>
2609 * config/rs6000/rs6000.c (function_arg_boundary): Double-word align
2610 128-bit IBM long doubles for ABI_V4.
2612 2006-07-03 Eric Botcazou <ebotcazou@adacore.com>
2614 * tree.c (range_in_array_bounds_p): New predicate.
2615 * tree.h (range_in_array_bounds_p): Declare it.
2616 * tree-eh.c (tree_could_trap_p) <ARRAY_RANGE_REF>: Use it to
2617 return a less conservative answer.
2618 * tree-sra.c (struct sra_elt): Add new pointer field 'groups'
2619 and flag 'is_group'.
2620 (IS_ELEMENT_FOR_GROUP): New macro.
2621 (FOR_EACH_ACTUAL_CHILD): Likewise.
2622 (next_child_for_group): New helper function.
2623 (can_completely_scalarize_p): Take into account groups.
2624 (sra_hash_tree): Handle RANGE_EXPR.
2625 (sra_elt_eq): Likewise.
2626 (lookup_element): Be prepared for handling groups.
2627 (is_valid_const_index): Delete.
2628 (maybe_lookup_element_for_expr) <ARRAY_REF>: Use in_array_bounds_p
2629 instead of is_valid_const_index.
2630 <ARRAY_RANGE_REF>: New case.
2631 (sra_walk_expr) <ARRAY_REF>: Use in_array_bounds_p instead of
2632 is_valid_const_index.
2633 <ARRAY_RANGE_REF>: Do not unconditionally punt.
2634 (scan_dump): Dump info for groups too.
2635 (decide_instantiation_1): Likewise.
2636 (decide_block_copy): Assert that the element is not a group.
2637 Propagate decision to groups.
2638 (generate_one_element_ref): Handle RANGE_EXPR.
2639 (mark_no_warning): Iterate over actual childs.
2640 (generate_copy_inout): Likewise.
2641 (generate_element_copy): Likewise.
2642 (generate_element_zero): Likewise.
2643 (generate_element_init_1): Likewise.
2644 (dump_sra_elt_name): Handle RANGE_EXPR.
2646 2006-07-03 Roger Sayle <roger@eyesopen.com>
2648 PR tree-optimization/26251
2649 * tree-ssa-threadupdate.c (redirection_block_p): New function.
2650 (thread_block): When optimizing for size refuse to thread jumps
2651 that would require duplication of blocks other than redirection
2654 2006-07-03 Paolo Bonzini <bonzini@gnu.org>
2656 * configure.ac: Fix thinko in previous check-in.
2657 * configure: Regenerate.
2659 2006-07-03 Paolo Bonzini <bonzini@gnu.org>
2662 * configure.ac (for lang...): Simplify nesting of conditionals.
2663 Test subdir_requires for non-enabled languages. Move processing
2664 of lang_opt_files and lang_tree_fiels below that test.
2665 * configure: Regenerate.
2666 * doc/sourcebuild.texi (Front End Config): Document subdir_requires.
2668 2006-07-01 Martin Michlmayr <tbm@cyrius.com>
2670 * doc/gcov.texi (Invoking Gcov): Add a missing word.
2672 2006-06-30 Kazu Hirata <kazu@codesourcery.com>
2674 * cfgexpand.c, config/i386/i386.c, genpreds.c, tree-cfg.c: Fix
2677 2006-06-29 Jason Merrill <jason@redhat.com>
2684 * tree.c (build_decl_stat): Don't hande #pragma visibility here.
2685 * c-common.c (c_determine_visibility): Handle it here.
2686 * c-decl.c (finish_decl): Call c_determine_visibility for
2688 * flags.h (enum symbol_visibility): Sort from most to least visibility.
2690 * varasm.c (default_assemble_visibility): Likewise.
2691 * c-common.c (handle_visibility_attribute): Complain about trying
2692 to give visibility to an already defined class, or trying to change
2693 declared visibility. Always attach the attribute.
2698 * attribs.c (decl_attributes): Ignore type-in-place attributes
2699 once the type has been defined.
2701 2006-06-29 Roger Sayle <roger@eyesopen.com>
2704 * c-lex.c (c_lex_with_flags) <CPP_N_INVALID>: Increment errorcount
2705 to indicate the cpplib has issued an error message for us.
2707 2006-06-29 Asher Langton <langton2@llnl.gov>
2710 * config/i386/i386.c (ix86_output_function_epilogue): Don't
2711 insert a label at the end of an function under Mach-O.
2713 2006-06-29 Eric Christopher <echristo@apple.com>
2714 Evan Cheng <evan.cheng@apple.com>
2716 * predicates.md (vector_all_ones_operand): New.
2717 (nonimmediate_or_sse_const_operand): Ditto.
2718 * config/i386/i386-protos.h (standard_sse_constant_opcode): Declare.
2719 * config/i386/i386.c (standard_sse_constant_opcode): Define.
2720 (standard_sse_mode_p): Ditto.
2721 (standard_sse_constant_p): Add case for -1 vector.
2722 (ix86_expand_vector_move): Try to use.
2723 * sse.md (*mov<mode>_internal): Use nonimmediate_or_sse_const_operand.
2724 Call standard_sse_constant_opcode.
2725 (*movv4sf_internal): Ditto.
2726 (*movv2df_internal): Ditto.
2728 2006-06-29 Roger Sayle <roger@eyesopen.com>
2730 * genpreds.c (write_match_code_switch): Correctly use XSTR instead
2731 of XEXP to extract the operands of a MATCH_CODE rtx.
2733 2006-06-28 Andrew Pinski <pinskia@gmail.com>
2735 * tree.c (tree_size): Do not waste tail padding in
2736 struct tree_string and make the size be the same as
2737 build_string will generate.
2739 2006-06-28 Jason Merrill <jason@redhat.com>
2742 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
2743 may_aliases already in the tag's annotations to the bitmap.
2745 2006-06-28 Roger Sayle <roger@eyesopen.com>
2747 * genpreds.c (write_predicate_stmts) <IOR>: Add missing break.
2749 2006-06-28 Roger Sayle <roger@eyesopen.com>
2751 * genpreds.c (generate_switch_p): New function.
2752 (add_mode_tests): Push the new mode test down inside an AND expr
2753 if this allows the switch-suitable MATCH_CODE to be near the root.
2754 (write_match_code_switch): New function to write a MATCH_CODE as
2756 (write_predicate_stmts): New function to write a predicate RTX
2757 expression as a sequence of statements.
2758 (write_one_predicate_function): Use write_predicate_stmts.
2759 (write_tm_constrs_h): Likewise.
2761 2006-06-26 Fred Fish <fnf@specifix.com>
2763 * config/mips/t-sb1: New file.
2764 * config.gcc (mipsisa64sb1-*-elf*): Add mips/t-sb1 to
2767 2006-06-26 DJ Delorie <dj@redhat.com>
2769 * config/m32c/m32c.c (m32c_print_operand): Fix sign-merging logic.
2771 2006-06-26 Naveen H.S <naveenh@kpitcummins.com>
2772 Jayant Sonar <jayants@kpitcummins.com>
2773 Jaydeep Vipradas <jaydeepv@kpitcummins.com>
2775 * config/m32c/addsub.md (addsi3, addsi3_1, addsi3_2): New.
2776 (subsi3, subsi3_1, subsi3_2): New.
2777 * config/m32c/bitops.md (andsi3, iorsi3, xorsi3): New.
2778 * config/m32c/mov.md (SI mov peephole): New.
2779 * config/m32c/m32.c (m32c_immd_dbl_mov): New.
2780 * config/m32c/m32c-protos.h (m32c_immd_dbl_mov): New.
2782 2006-06-26 Olivier Hainque <hainque@adacore.com>
2784 * function.c (aggregate_value_p): Honor DECL_BY_REFERENCE on
2785 a CALL_EXPR target function declaration.
2787 2006-06-26 Richard Guenther <rguenther@suse.de>
2789 * tree.c (build_string): Do not waste tail padding in
2792 2006-06-26 Richard Guenther <rguenther@suse.de>
2794 * ggc-page.c (init_ggc): Add missing element to size_lookup
2798 2006-06-23 Richard Guenther <rguenther@suse.de>
2800 * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
2801 sizes to MAX_ALIGNMENT. Fix the size_lookup table to honour
2802 alignment requests instead. Add verification code.
2803 Add struct tree_function_decl and struct tree_binfo size to
2804 extra_order_size_table. Add missing element to size_lookup
2807 2006-06-25 Eric Botcazou <ebotcazou@adacore.com>
2810 * fold-const.c (const_binop): Be prepared for self returning zero.
2811 Simplify code handling complex values.
2813 2006-06-24 Olivier Hainque <hainque@adacore.com>
2815 * gimplify.c (gimplify_scalar_mode_aggregate_compare): New function.
2816 (gimplify_expr): Use it for tcc_comparison of operands of non BLKmode
2819 2006-06-24 Olivier Hainque <hainque@adacore.com>
2821 * tree-ssa-loop-im.c (for_each_index): Handle ARRAY_RANGE_REF as
2822 ARRAY_REF, so have the callback called for the low bound expression.
2824 2006-06-23 Janis Johnson <janis187@us.ibm.com>
2826 * tree.h (DECIMAL_FLOAT_TYPE_P): New.
2827 * c-typeck.c (c_common_type): Disallow operations on decimal float
2828 types and other float types.
2829 * convert.c (convert_to_real): Don't ignore conversions involving
2830 decimal float types.
2832 2006-06-23 Olivier Hainque <hainque@adacore.com>
2834 * tree.c (max_int_size_in_bytes): New function, inspired from
2835 code in function.c:assign_temp.
2836 * tree.h (max_int_size_in_bytes): Declare.
2837 * function.c (assign_temp): Use it.
2838 * gimplify.c (create_tmp_var): Relax the assertions on the type
2839 properties, not mandating constant size any more.
2840 (force_constant_size): New static function.
2841 (gimple_add_tmp_var): Use it, forcing variable size to a
2842 constant upper bound if it is not constant on entry.
2844 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2847 * config/i386/winnt.c (ix86_handle_selectany_attribute): Move check
2848 for initialization and setting of one_only flag to ...
2849 (i386_pe_encode_section_info): ...here.
2850 (i386_pe_dllimport_p): Check for DECL_DLLIMPORT_P also.
2851 Recheck that the symbol has not been defined.
2853 2006-06-23 Richard Guenther <rguenther@suse.de>
2855 * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
2856 sizes to MAX_ALIGNMENT. Fix the size_lookup table to honour
2857 alignment requests instead. Add verification code.
2858 Add struct tree_function_decl and struct tree_binfo size to
2859 extra_order_size_table. Add missing element to size_lookup
2862 2006-06-22 Roger Sayle <roger@eyesopen.com>
2863 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2866 * expr.c (expand_expr_real_1) <VECTOR_CST>: Check whether the
2867 call to lang_hooks.types.type_for_mode returned NULL_TREE.
2869 2006-06-23 Ben Elliston <bje@au.ibm.com>
2871 * dfp.c (decimal_to_decnumber): Do not use decNumberNegate to
2872 negate dn -- manipulate it directly.
2874 2006-06-22 Roger Sayle <roger@eyesopen.com>
2875 Steven Bosscher <stevenb.gcc@gmail.com>
2878 * reload1.c (gen_reload): Call mark_jump_label on the new insns
2879 generated by gen_move_insn to add REG_LABEL notes if necessary.
2881 2006-06-22 Bob Wilson <bob.wilson@acm.org>
2883 * config/xtensa/lib1funcs.asm (MIN_ESA): Delete.
2884 (leaf_entry): Remove use of MIN_ESA.
2886 2006-06-22 Zdenek Dvorak <dvorakz@suse.cz>
2888 PR rtl-optimization/28121
2889 * cfgexpand.c (tree_expand_cfg): Clean EDGE_EXECUTABLE flag from
2892 2006-06-21 DJ Delorie <dj@redhat.com>
2894 * config/m32c/muldiv.md (mulhisi3_i): Only use registers for dest
2896 (mulhisi3_r): Likewise.
2898 2006-06-21 Richard Sandiford <richard@codesourcery.com>
2901 * coverage.c (coverage_counter_alloc): Leave the index type
2903 (coverage_counter_alloc): Use null arguments for operands 2 and 3
2906 2006-06-21 Andrew Pinski <pinskia@physics.uc.edu>
2908 * doc/invoke.texi (-fopenmp) Move to "Options Controlling C Dialect"
2909 section from the "Options for Code Generation Conventions".
2911 2006-06-21 Richard Henderson <rth@redhat.com>
2915 * config/alpha/predicates.md (small_symbolic_operand): Deny weak
2917 (global_symbolic_operand): Allow weak symbols, even if local_p.
2919 2006-06-21 Eric Botcazou <ebotcazou@adacore.com>
2921 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): New function.
2922 (find_interesting_uses_address): Punt if above function returns true.
2924 2006-06-21 Richard Guenther <rguenther@suse.de>
2926 * configure: Regenerated.
2928 2006-06-21 Joseph Myers <joseph@codesourcery.com>
2930 * config/mips/mips.c (function_arg): Where one part of a
2931 complex argument is in registers and the other part in the stack,
2932 return a REG not a PARALLEL.
2934 2006-06-21 Mark Mitchell <mark@codesourcery.com>
2936 * configure.ac: Set gcc_gxx_include_dir to $target/include/c++
2937 when cross-compiling. Do not substitute libstdcxx_incdir.
2938 * configure: Regenerated.
2940 2006-06-21 Jakub Jelinek <jakub@redhat.com>
2942 * varasm.c (mergeable_string_section): Check for embedded NULs and
2943 NUL termination in the first int_size_in_bytes (TREE_TYPE (decl))
2944 rather than TREE_STRING_LENGTH bytes.
2946 2006-06-21 Richard Guenther <rguenther@suse.de>
2948 * ggc-page.c (extra_order_size_table): Add var_ann_d,
2949 tree_ssa_name, bitmap_element and phi_node with 4 arguments
2952 2006-06-21 Richrad Guenther <rguenther@suse.de>
2954 * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
2955 Limit iteration over the dominators.
2957 2006-06-20 Roger Sayle <roger@eyesopen.com>
2959 * config/mips/iris6.h (LIB_SPEC): Add support for -pthread.
2960 (SUBTARGET_CPP_SPEC): Define _REENTERANT if -pthread specified.
2962 2006-06-20 Richard Guenther <rguenther@suse.de>
2963 Michael Matz <matz@suse.de>
2965 * alloc-pool.h (free_alloc_pool_if_empty): Prototype new
2967 * alloc-pool.c (free_alloc_pool_if_empty): New function.
2968 * et-forest.h (et_free_pools): Prototype new function.
2969 * et-forest.c (et_free_tree_force): Free parent occurrence.
2970 (et_free_pools): New function.
2971 * dominance.c (free_dominance_info): Free et-forest alloc
2974 2006-06-20 Roger Sayle <roger@eyesopen.com>
2976 * expr.c (expand_expr_real_1) <VECTOR_CST>: For vector constants with
2977 integer modes, attempt to directly construct an integer constant.
2979 * fold-const.c (native_encode_vector): Determine the size of each
2980 element from the vector type instead of the first vector element.
2982 * tree.c (build_constructor_single): Mark a CONSTRUCTOR as constant,
2983 if all of its elements/components are constant.
2984 (build_constructor_from_list): Likewise.
2986 2006-06-20 Zdenek Dvorak <dvorakz@suse.cz>
2988 PR tree-optimization/27331
2989 * tree-data-ref.c (free_data_ref): New function.
2990 (create_data_ref): Fail if the data reference has unknown access
2992 (free_data_refs): Use free_data_ref.
2994 2006-06-19 Andrew Pinski <pinskia@gmail.com>
2997 * tree-inline.c (setup_one_parameter): Strip useless
2998 type conversion before adding it to the IR.
2999 (declare_return_variable): Likewise.
3001 2006-06-19 Martin Michlmayr <tbm@cyrius.com>
3004 * c-common.c (c_common_truthvalue_conversion): Fix grammar in warning.
3006 2006-06-19 Mike Stump <mrs@apple.com>
3008 * tree.c (variably_modified_type_p): VM arguments don't make the
3011 2006-06-19 Richard Guenther <rguenther@suse.de>
3013 * tree-ssa-pre.c (try_combine_conversion): Strip useless
3014 type conversions after folding.
3016 2006-06-19 Richard Guenther <rguenther@suse.de>
3018 * ggc-page.c (extra_order_size_tab): Add entries with
3019 size of struct function and basic_block.
3020 (size_lookup): Extend to cover sizes up to 511.
3021 (ggc_alloc_stat): Adjust user.
3022 (ggc_pch_count_object): Likewise.
3023 (ggc_pch_alloc_object): Likewise.
3024 (ggc_pch_write_object): Likewise.
3026 2006-06-19 Zdenek Dvorak <dvorakz@suse.cz>
3028 * tree-ssa-loop-niter.c (implies_ge_p): New function.
3029 (derive_constant_upper_bound): Handle OP0 - CST in unsigned types
3032 2006-06-19 Denis Chertykov <denisc@overta.ru>
3034 * config/avr/libgcc.S : Correct my wrong previous commit.
3036 2006-06-19 Roger Sayle <roger@eyesopen.com>
3039 * expmed.c (expand_shift): On SHIFT_COUNT_TRUNCATED targets, we may
3040 have stripped a SUBREG from the shift count, so we may need to
3041 convert_to_mode back to the type's mode before calling make_tree.
3042 Use new_amount instead of amount to avoid expanding a tree twice.
3044 2006-06-19 Richard Guenther <rguenther@suse.de>
3047 * fold-const.c (operand_equal_p): Check if the argument types
3048 have the same precision before stripping NOPs.
3050 2006-06-19 Daniel Berlin <dberlin@dberlin.org>
3052 Fix PR tree-optimization/27341
3053 * tree-cfg.c (gimplify_val): Call mark_new_vars_to_rename on the
3055 * tree-complex.c (pass_lower_complex): Update SMT usage.
3057 2006-06-19 Andreas Krebbel <krebbel1@de.ibm.com>
3059 * config/s390/s390.md ("doloop_si64", "doloop_si31", "doloop_di"):
3060 Add a new alternative to the constraint strings. Add move of
3061 operand 1 to 3 to the splitter definition.
3062 ("doloop_si_long"): Second contraint alternative removed.
3064 2006-06-08 Anatoly Sokolov <aesok@post.ru>
3066 * config/avr/avr.h (avr_have_movw_lpmx_p): Declare.
3067 (TARGET_CPU_CPP_BUILTINS): Add __AVR_HAVE_MOVW__ and
3069 (AVR_HAVE_MOVW) Define.
3070 (ASSEMBLER_DIALECT): Use AVR_HAVE_MOVW.
3071 (ASM_SPEC): Add avr25.
3072 (LINK_SPEC): Add avr25.
3073 * config/avr/avr.c (avr_have_movw_lpmx_p): Add.
3074 (base_arch_s): Add new member 'have_movw_lpmx'.
3075 (avr_arch_types): Init 'have_movw_lpmx'.
3076 (avr_mcu_types): Add 'avr25'. Move attiny13, attiny2313, attiny24,
3077 attiny44, attiny84, attiny25, attiny45, attiny85, attiny261,
3078 attiny461, attiny861 and at86rf401 in 'avr25' arhitecture.
3079 (avr_override_options): Init 'avr_have_movw_lpmx_p'.
3080 (output_movhi, output_movsisf, ashlsi3_out, avr_rtx_costs): Use
3082 (avr_file_start): Do not output '.arh' derective.
3083 * config/avr/libgcc.S (mov_l): Use __AVR_HAVE_MOVW__.
3084 (__do_copy_data): Use __AVR_HAVE_LPMX__.
3085 * config/avr/avr.md (mcu_enhanced): Delete.
3086 (mcu_have_movw): Define.
3087 (negsi2, extendhisi2, zero_extendhisi2): Use 'mcu_have_movw'.
3088 (call_insn, call_value_insn): Use 'call_insn' and __AVR_HAVE_MOVW__.
3089 * config/avr/t-avr(MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add avr25.
3090 (MULTILIB_MATCHES): Add attiny13, attiny2313, attiny24, attiny44,
3091 attiny84, attiny25, attiny45, attiny85, attiny261, attiny461,
3092 attiny861 and at86rf401 devices.
3094 2006-06-18 Jie Zhang <jie.zhang@analog.com>
3096 * config/bfin/bfin.c (MAX_LOOP_LENGTH): Define to be 2042 instead
3099 2006-06-17 Karl Berry <karl@gnu.org>
3101 * doc/cpp.texi, doc/cppinternals.texi, doc/gcc.texi,
3102 doc/gccint.texi, doc/install.texi (@dircategory): Use
3103 "Software development" instead of "Programming", following
3104 the Free Software Directory.
3106 2006-06-17 Alexandre Oliva <aoliva@redhat.com>
3108 * config/i386/i386.c (legitimate_tls_address)
3109 <TARGET_GNU2_TLS>: Add tp after DTPOFF.
3110 * config/i386/i386.md (*tls_dynamic_gnu2_combine_32): Adjust.
3111 (*tls_dynamic_gnu2_combine_64): Likewise.
3113 2006-06-16 Richard Guenther <rguenther@suse.de>
3116 * fold-const.c (negate_expr_p): Do not introduce undefined
3117 overflow in negating INTEGER_CSTs.
3118 (fold_negate_expr): Rename from negate_expr. Revert last
3119 change for folding BIT_NOT_EXPR. Change semantics to
3120 return NULL_TREE for non-simplified negations. Do not
3121 strip type conversions and unify type handling.
3122 (negate_expr): New function, wrap around fold_negate_expr
3123 but ensure building a tree always. Strip type conversions
3124 here, fold to result type.
3125 (fold_unary): Use fold_negate_expr for folding NEGATE_EXPR.
3127 2006-06-16 Roger Sayle <roger@eyesopen.com>
3130 * reg-stack.c (subst_stack_regs): Handle noreturn function calls
3131 that (would) return their results in stack registers.
3133 2006-06-16 Michael Matz <matz@suse.de>
3134 Richard Guenther <rguenther@suse.de>
3136 * fold-const.c (fold_truthop): Only return new tree node if
3137 we canonicalized something.
3139 2006-06-16 Richard Guenther <rguenther@suse.de>
3141 * function.h (enum function_frequency): Move declaration
3142 out of struct function.
3143 (struct function): Move bool fields and the enum to the bitfield
3144 section. Reorder elements to avoid padding. Remove unused
3145 fields left over from the RTL inliner removal.
3146 * function.c (free_after_compilation): Do not zero removed fields.
3147 * Makefile.in (ipa-reference.o): Add $(FUNCTION_H) dependency.
3148 (ipa-type-escape.o): Likewise.
3150 2006-06-16 Richard Guenther <rguenther@suse.de>
3152 * cgraph.h (struct cgraph_local_info): Turn bool elements
3154 (struct cgraph_node): Likewise.
3155 (struct cgraph_varpool_node): Likewise.
3157 2006-06-15 Richard Guenther <rguenther@suse.de>
3159 * fold-const.c (fold_truth_not_expr): Rename from
3160 invert_truthvalue. Give it fold_* semantics to avoid
3162 (invert_truthvalue): New function. Wrapper around
3163 fold_truth_not_expr.
3164 (optimize_minmax_comparison): Avoid creating garbage.
3165 (fold_unary): Use fold_truth_not_expr for folding
3167 (fold_ternary): Replace uses of invert_truthvalue with
3168 fold_truth_not_expr where applicable.
3169 * tree.h (fold_truth_not_expr): Prototype.
3171 2006-06-16 Richard Guenther <rguenther@suse.de>
3173 PR tree-optimization/27781
3174 * Makefile.in (ipa-pure-const.o): Add $(TARGET_H) dependency.
3175 * ipa-pure-const.c (target.h): Include.
3176 (analyze_function): Do not analyze functions that do not
3179 2006-06-15 Andrew MacLeod <amacleod@redhat.com>
3182 * tree-dfa.c (referenced_vars_dup_list): Remove.
3183 (find_referenced_vars): Remove assert.
3184 (referenced_var_check_and_insert): Replace dup list with assert.
3185 * tree-ssa.c (delete_tree_ssa): Remove dup list processing.
3186 * tree-flow.h (referenced_vars_dup_list): Remove extern decl.
3188 2006-06-15 Richard Guenther <rguenther@suse.de>
3190 * tree-ssa-structalias.c (alias_get_name): Avoid creating
3191 extra unused identifiers if not dumping.
3192 (create_variable_info_for): Likewise.
3194 2006-06-15 Zdenek Dvorak <dvorakz@suse.cz>
3196 * tree-ssa-loop-niter.c (implies_nonnegative_p): New function.
3197 (derive_constant_upper_bound): Derive more precise upper bound in
3198 common cases. Return type changed to double_int.
3199 (record_estimate): Reflect the changed return type of
3200 derive_constant_upper_bound.
3201 * double-int.c (double_int_zext, double_int_sext): Fix.
3203 2006-06-15 Paolo Bonzini <bonzini@gnu.org>
3205 * configure.ac (CFLAGS): Get them from the toplevel or from the
3206 configure invocation.
3207 * configure: Regenerate.
3208 * Makefile.in (CFLAGS): Substitute value provided by configure.
3210 2006-06-14 Mark Mitchell <mark@codesourcery.com>
3213 * c-common.h (c_finish_omp_atomic): Adjust declaration.
3214 * c-omp.c (c_finish_omp_atomic): Return the expression to perform,
3215 rather than calling add_stmt on it.
3216 * c-parser.c (c_parser_omp_atomic): Adjust accordingly.
3218 2006-06-14 Andreas Krebbel <krebbel1@de.ibm.com>
3221 * reload1.c (reload): Remove registers returned by update_eliminables
3222 from used_spill_regs.
3224 2006-06-13 DJ Delorie <dj@redhat.com>
3226 * config/m32c/muldiv.md (mulpsi3): Expect arbitrary constants.
3228 2006-06-13 Carlos O'Donell <carlos@codesourcery.com>
3230 * Makefile.in: Define HTMLS_BUILD, HTMLS_INSTALL,
3231 html__strip_dir, html__mkdir_p. Enhance install-html target.
3232 * configure.ac: AC_SUBST datarootdir, docdir and htmldir.
3233 * configure: Regenerate.
3235 2006-06-13 Fariborz Jahanian <fjahanian@apple.com>
3237 * fold-const.c (fold_cond_expr_with_comparison): Check for
3238 Objective-C++ as language in deciding COND_EXPR transformation.
3240 2006-06-06 J"orn Rennecke <joern.rennecke@st.com>
3243 * config/sh/t-sh (LIB1ASMFUNCS): Add _udiv_qrnnd16
3244 * config/sh/sh.c (print_operand): Add !SHMEDIA functionality to 'M'.
3245 * config/sh/lib1funcs.h (SL, SL1): Define.
3246 * config/sh/lib1funcs.asm (__udiv_qrnnd16): New hidden function.
3247 * longlong.h (__sh__): Define umul_ppmm, udiv_qrnnd and sub_ddmmss.
3248 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): New rule.
3249 (OBJS_Os_4_200): New variable.
3250 ($(T)libgcc-Os-4-200.a): Use it.
3251 * sh.md (udivsi3): For TARGET_DIVIDE_CALL_TABLE, avoid function call
3252 when dividing 1 and/or by 0.
3254 2006-06-13 Roger Sayle <roger@eyesopen.com>
3256 * configure.ac (HAS_MCONTEXT_T_UNDERSCORES): Include <sys/signal.h>
3257 before <ucontext.h> to define sigset_t required by <sys/ucontext.h>.
3258 * configure: Regenerate.
3260 2006-06-13 Jie Zhang <jie.zhang@analog.com>
3262 * config/bfin/bfin.c (bfin_reorg_loops): Only call recog_memoized ()
3263 for real instruction.
3265 2006-06-13 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3268 * haifa-sched.c (check_cfg): Handle special case.
3270 2006-06-13 Eric Botcazou <ebotcazou@adacore.com>
3273 * gimplify.c (declare_tmp_vars): Rename into declare_vars.
3274 Add debug_info parameter. Chain the vars to the BLOCK instead
3275 of the BIND_EXPR if debug info are requested for them.
3276 (pop_gimplify_context): Adjust for above change.
3277 (gimple_add_tmp_var): Likewise.
3278 * tree-gimple.h (declare_tmp_vars): Rename into declare_vars.
3280 * tree-nested.c (convert_nonlocal_reference): Adjust for above change.
3281 (convert_local_reference): Likewise.
3282 (get_local_debug_decl): Set DECL_IGNORED_P on the original variable.
3283 (finalize_nesting_tree_1): Request that debug info be emitted
3284 for debug_var_chain.
3286 2006-06-13 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3288 * haifa-sched.c (unlink_other_notes, unlink_line_notes): Fix the patch
3289 for PR target/27863.
3291 2006-06-13 Richard Guenther <rguenther@suse.de>
3294 * except.c (output_ttype): Expand type with EXPAND_INITIALIZER.
3296 2006-06-13 Richard Guenther <rguenther@suse.de>
3298 PR tree-optimization/27830
3299 * tree-inline.c (copy_body_r): For copying the operand
3300 of an ADDR_EXPR make sure to fold &* afterwards.
3302 2006-06-12 Eric Botcazou <ebotcazou@adacore.com>
3304 * gimplify.c (gimplify_expr): Treat VIEW_CONVERT_EXPR like other
3305 lvalues in the fb_none case with side-effects.
3307 2006-06-12 Kazu Hirata <kazu@codesourcery.com>
3309 * tree-flow.h: Remove the prototype for
3310 compute_phi_arg_on_exit.
3311 * tree-ssa-loop-ivopts.c (protect_loop_closed_ssa_form_use,
3312 protect_loop_closed_ssa_form, compute_phi_arg_on_exit):
3315 2006-06-12 Mark Shinwell <shinwell@codesourcery.com>
3317 * builtins.c (expand_builtin_return_addr): Only use
3318 frame_pointer_rtx when count == 0 and we are expanding
3319 __builtin_return_address.
3321 2006-06-12 Fred Fish <fnf@specifix.com>
3323 * config/mips/mips.c (mips_file_start): Create special section
3324 ".gcc_compiled_longXX" for o64 ABI as well as EABI.
3326 2006-06-11 Eric Christopher <echristo@apple.com>
3329 * stor-layout.c (place_field): Remove check for
3330 remaining_in_alignment when aligning at the end of a run.
3332 2006-06-11 Eric Christopher <echristo@apple.com>
3335 * doc/extend.texi (Structure-Packing Pragmas): Document ms_struct
3338 2006-06-11 Roger Sayle <roger@eyesopen.com>
3341 Revert incorrect fix for PR target/27158
3342 2006-05-08 Roger Sayle <roger@eyesopen.com>
3343 * reload.c (find_reloads_toplev): Only return the simplified SUBREG
3344 of a reg_equiv_constant if the result is a legitimate constant.
3346 2006-06-11 Roger Sayle <roger@eyesopen.com>
3349 * config/rs6000/rs6000.c (const_vector_elt_as_int): New function to
3350 extract a CONST_VECTOR element and interpret it as an integer.
3351 (vspltis_constant): Use const_vector_elt_as_int instead of the
3352 macro CONST_VECTOR_ELT in order to handle FP vector modes.
3353 * config/rs6000/predicates.md (easy_vector_const): Consider
3354 floating point ALTIVEC_VECTOR_MODEs via easy_altivec_constant.
3356 2006-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
3359 * stor-layout.c (update_alignment_for_field): Don't add extra
3360 alignment for packed non-bitfield fields in ms_bitfield_layout_p
3363 2006-06-09 Ralf Corsepius <ralf.corsepius@rtems.org>
3365 * config/mips/t-rtems: Add EL/EB multilib variants.
3367 2006-06-09 Mike Stump <mrs@apple.com>
3369 * c-typeck.c (c_begin_vm_scope): Fix file_scope processing.
3371 2006-06-09 David Daney <ddaney@avtrex.com>
3373 * doc/install.texi: Add binutils version recommendation for mips-*-*.
3375 2006-06-09 Andreas Krebbel <krebbel1@de.ibm.com>
3377 * reload.c (find_reloads): Unset force_reload for 'X' constraint.
3379 2006-06-09 Richard Guenther <rguenther@suse.de>
3381 PR tree-optimization/26998
3382 * tree-vrp.c (extract_range_from_unary_expr): For NEGATE_EXPR
3383 of signed types, only TYPE_MIN_VALUE is special, but for both,
3384 minimum and maximum value. Likewise VR_ANTI_RANGE is special
3385 in this case, as is -fwrapv.
3387 2006-06-08 Mike Stump <mrs@apple.com>
3390 * config/darwin.c (darwin_asm_output_anchor): Disable
3391 -fsection-anchors on darwin for now.
3392 * config/darwin.h (TARGET_ASM_OUTPUT_ANCHOR): Likewise.
3393 * rs6000/rs6000.c (optimization_options): Likewise.
3395 2006-06-08 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3398 * config/i386/i386.c (classify_argument): Skip fields with invalid
3401 2006-06-08 Steven Bosscher <steven@gcc.gnu.org>
3403 * cse.c (flush_hash_table): Use VOIDmode to invalidate a REG.
3404 (cse_insn): Likewise for the stack_pointer_rtx.
3406 2006-06-08 Roger Sayle <roger@eyesopen.com>
3408 * tree-ssa-dom.c (record_conditions): Only record "unordered"
3409 conditions from floating point comparisons.
3411 2006-06-08 Paolo Bonzini <bonzini@gnu.org>
3414 * expmed.c (struct alg_hash_entry): Fix type of field T
3415 to match synth_mult argument.
3416 (NUM_ALG_HASH_ENTRIES): Make it bigger for 64-bit HOST_WIDE_INT.
3418 2006-06-08 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3421 * haifa-sched.c (unlink_other_notes, unlink_line_notes): Update basic
3424 2006-06-08 Richard Guenther <rguenther@suse.de>
3427 * fold-const.c (negate_expr_p): We can negate BIT_NOT_EXPR
3428 only, if overflow is defined and not trapping.
3429 (negate_expr): Likewise.
3431 2006-06-07 Zdenek Dvorak <dvorakz@suse.cz>
3433 PR tree-optimization/27872
3434 * tree-ssa-loop-manip.c (tree_unroll_loop): Set EDGE_IRREDUCIBLE_LOOP
3435 flag on the new exit edge of the unrolled loop.
3437 2006-06-07 Zdenek Dvorak <dvorakz@suse.cz>
3439 PR rtl-optimization/26449
3440 * loop-invariant.c (move_invariant_reg): Fail if force_operand fails.
3442 2006-06-07 Andrew MacLeod <amacleod@redhat.com>
3445 * tree-dfa.c (referenced_vars_dup_list): New. List of duplicate
3446 referenced_variables with matching DECL_UID's.
3447 (find_referenced_vars): Make sure duplicate list is empty to start.
3448 (referenced_var_p): Remove.
3449 (referenced_var_check_and_insert): Renamed from referenced_var_insert.
3450 Check if var is in the list, and add if needed. Update the duplicate
3451 list if a different var is in the list with the same DECL_UID.
3452 (add_referenced_var): Call routine to check and insert.
3453 * tree-ssa.c (delete_tree_ssa): Clear var_ann's on duplicates.
3454 * tree-flow.h (referenced_vars_dup_list): External declaration.
3456 2006-06-07 Fred Fish <fnf@specifix.com>
3458 * config/mips/t-elf (MULTILIB_MATCHES): Combine two entries
3461 2006-06-07 Paolo Bonzini <bonzini@gnu.org>
3464 * reg-stack.c (subst_stack_regs_pat): Reorder resetting of
3465 the imaginary and real parts of a clobbered register.
3466 Emit insn to set the imaginary part.
3468 2006-06-06 Peter Lemieszewski <lemie@us.ibm.com>
3470 * config/s390/t-tpf (LIB2ADDEH): Include unwind-dw2-fde-glibc.c
3471 in lieu of unwind-dw2-fde.c.
3473 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3475 * config/i386/mingw32.h (GOMP_SELF_SPECS): Define.
3477 2006-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3480 * config/rs6000/altivec.md (UNSPEC_VSLW): Remove.
3481 ("altivec_vspltisw_v4sf", "altivec_vslw_v4sf"): Remove.
3482 ("mulv4sf3", "absv4sf3", "negv4sf3"): Adapt users to use
3483 V4SImode temporaries and operations instead.
3485 2006-06-06 Joseph S. Myers <joseph@codesourcery.com>
3487 * config/mips/t-linux64 (tp-bit.c): Append to tp-bit.c, not
3490 2006-06-06 Mike Stump <mrs@apple.com>
3492 * Makefile.in: Rename to htmldir to build_htmldir to avoid
3493 installing during build.
3495 2006-06-06 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3497 * params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): Change default
3499 * doc/invoke.texi (max-sched-extend-regions-iters): Document.
3500 * config/ia64/ia64.c (params.h): New header.
3501 (ia64_optimization_options): New function to adjust parameters.
3502 * config/ia64/ia64-protos.h (ia64_optimization_options): New prototype.
3503 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): New macro.
3504 * config/ia64/t-ia64 (ia64.o): Add dependence from params.h .
3506 2006-06-05 Kazu Hirata <kazu@codesourcery.com>
3508 * stor-layout.c (debug_rli): Fix a typo in a debug message.
3510 2006-06-05 Steve Ellcey <sje@cup.hp.com>
3513 * config/ia64/ia64.c (ia64_select_rtx_section): Check TARGET_NO_SDATA.
3515 2006-06-05 Dorit Nuzman <dorit@il.ibm.com>
3516 Victor Kaplansky <victork@il.ibm.com>
3518 PR tree-optimization/26360
3519 * tree-vectorizer.c (destroy_loop_vec_info): Remove (dead) pattern
3522 2006-06-04 Roger Sayle <roger@eyesopen.com>
3523 Andrew Pinski <pinskia@physics.uc.edu>
3526 * c-common.c (c_common_truthvalue_conversion): Explicitly check