1 2006-08-04 Kazu Hirata <kazu@codesourcery.com>
3 * tree-cfg.c: Fix a comment typo.
5 2006-08-03 Mark Mitchell <mark@codesourcery.com>
8 * varasm.c (output_constant): Give the front end another chance to
9 expand constants, after stripping NOPs.
11 2006-08-03 Jan Hubicka <jh@suse.cz>
13 * domwalk.c (walk_dominator_tree): Reorganize to non-recursive
16 2006-08-03 Dorit Nuzman <dorit@il.ibm.com>
18 PR tree-optimization/27770
19 * tree-vectorizer.h (get_vectype_for_scalar_type): Function
20 declaration removed (moved to tree-flow.h).
21 (vect_can_force_dr_alignment_p): Likewise.
22 * tree-flow.h (get_vectype_for_scalar_type): New function declaration
23 (moved from tree-vectorizer.h).
24 (vect_can_force_dr_alignment_p): Likewise.
25 * tree-vectorizer.c (vect_print_dump_info): Allow calling this function
26 from outside the vectorizer - in particular from cgraph stage.
27 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Don't increase
28 the alignment of global arrays when -fsection-anchors is enabled.
29 * cgraphunit.c (cgraph_increase_alignment): New function.
30 (cgraph_optimize): Call cgraph_increase_alignment.
32 2006-08-03 David Edelsohn <edelsohn@gnu.org>
35 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
36 not reload a SPE symbol_ref into a lo_sum address.
38 2006-08-02 Daniel Jacobowitz <dan@codesourcery.com>
41 * dwarf2out.c (prune_unused_types_prune): Move call to
42 prune_unused_types_update_strings to cover the parent DIE also.
44 2006-08-02 Jan Hubicka <jh@suse.cz>
47 * tree-cfg.c (change_bb_for_stmt): New function.
48 (tree_merge_blocks, tree_split_blocks): Use it.
50 2006-08-01 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
56 * toplev.c (compile_file): Return early on errorcount or sorrycount.
57 * cgraphunit.c (cgraph_finalize_compilation_unit): Likewise.
58 (cgraph_optimize): Likewise.
60 2006-08-01 Stuart Hastings <stuart@apple.com>
62 * rtl.h (UINTVAL) New.
63 * config/rs6000/rs6000.c (SMALL_INT) Use it.
64 * testsuite/gcc.dg/20060801-1.c: New.
66 2006-08-01 Daniel Jacobowitz <dan@codesourcery.com>
69 * c-typeck.c (build_external_type): Mark used enum types.
70 * dwarf2out.c (dwarf2out_abstract_function): Save and restore
72 (gen_subprogram_die): Whitespace fix.
74 2006-08-01 Jan Hubicka <jh@suse.cz>
76 * tree-outof-ssa.c (check_replaceable): Do not allocate def_vars
77 bitmap when not needed.
78 * tree-ssa-pre.c (bitmap_set_and, bitmap_set_and_compl): Free temporary
81 2006-08-01 Dirk Mueller <dmueller@suse.de>
83 * tree-vrp.c (fix_equivalence_set): Avoid bitmap memory leak.
85 2006-07-31 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
87 * Makefile.in: Revert part of previous patch:
88 Replace $(VARRAY_H) by varray.h in definition of BASIC_BLOCK_H
91 2006-07-30 Eric Christopher <echristo@apple.com>
94 * doc/extend.texi (i386 Variable Attributes): Add anchor.
95 (PowerPC Variable Attributes): New section.
97 2006-07-30 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
99 PR target/28126 (partial fix)
100 * config/mips/mips.md (tls_get_tp_<mode>): Set can_delay to no.
102 2006-07-28 Jan Hubicka <jh@suse.cz>
104 PR rtl-optimization/28071
105 * cfgrtl.c (rtl_delete_block): Free regsets.
106 * flow.c (allocate_bb_life_data): Re-use regsets if available.
108 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
110 * Makefile.in: Use $(HEADER_H) instead of header.h in dependencies
111 and variables used in dependencies.
113 2006-07-27 Arjan van de Ven <arjan@linux.intel.com>
115 * config/i386/i386.md (stack_tls_protect_set_di) Use %gs rather than
116 %fs for -mcmodel=kernel.
117 (stack_tls_protect_test_di): Likewise.
119 2006-07-27 Carlos O'Donell <carlos@codesourcery.com>
121 * Makefile.in: Use mkinstalldirs.
123 2006-07-27 H.J. Lu <hongjiu.lu@intel.com>
126 * opts-common.c (prune_options): Skip joined switches.
128 2006-07-27 Jan Hubicka <jh@suse.cz>
130 PR rtl-optimization/28071
131 * cselib.c (cselib_process_insn): Don't remove useless values too
132 often for very large hashtables.
134 2006-07-27 Jan Hubicka <jh@suse.cz>
136 PR rtl-optimization/28071
137 * global.c (greg_obstack): New obstack.
138 (allocate_bb_info): Use it.
139 (free_bb_info): Likewise.
140 (modify_reg_pav): Likewise.
142 2006-07-27 Roger Sayle <roger@eyesopen.com>
144 * builtins.c (fold_fixed_mathfn): When long and long long are the
145 same size, canonicalize llceil*, llfloor*, llround* and llrint*
146 functions to their lceil*, lfloor*, lround* and lrint* forms.
148 2006-07-27 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
151 * config/m32r/m32r.md (branch_insn): Reduce pc range for short
153 (rev_branch_insn): Likewise.
155 2006-07-27 Jan Hubicka <jh@suse.cz>
157 PR rtl-optimization/28071
158 * regmove.c (reg_is_remote_constant_p): Avoid quadratic behaviour.
159 (reg_set_in_bb, max_reg_computed): New static variables.
160 (regmove_optimize): Free the new array.
161 (fixup_match_1): Update call of reg_is_remote_constant_p.
163 2006-07-26 Jan Hubicka <jh@suse.cz>
165 PR tree-optimization/27882
166 * cgraph.c (cgraph_remove_node): Clear needed, reachable, next, previous
168 * cgraphunit.c (cgraph_reset_node): Expect cgraph_remove_node to kill
170 (cgraph_analyze_compilation_unit): Likewise.
171 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
172 * ipa-inline.c (cgraph_decide_recursive_inlining): Likewise.
173 (cgraph_early_inlinine): Make order garbage collected.
174 * Makefile.in (gt-ipa-inline): New garbagecollected file.
176 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
178 * dbxout.c (output_types_sort): Add a comment.
179 (output_used_types): Free the VEC.
181 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
183 * function.c (reorder_fix_fragments): Delete.
184 (reorder_blocks): Don't call it.
185 (reorder_blocks_1): Put all subblocks under the origin block.
187 2006-07-26 Zdenek Dvorak <dvorakz@suse.cz>
189 PR rtl-optimization/27907
190 * expr.c (force_operand): Use convert_move to handle FLOAT_EXTEND and
193 2006-07-25 Roger Sayle <roger@eyesopen.com>
196 * convert.c (convert_to_integer): When transforming (T)foo(x) into
197 bar(x) check that bar's result type can represent all the values of T.
199 2006-07-25 Zdenek Dvorak <dvorakz@suse.cz>
201 * tree-chrec.c (chrec_convert_aggressive): Return NULL on failure.
203 2006-07-25 Nick Clifton <nickc@redhat.com>
205 * ggc-page.c (NUM_SIZE_LOOKUP): New constant - the length of the
207 (ggc_alloc_stat): Use NUM_SIZE_LOOKUP.
208 (ggc_pch_count_object): Likewise.
209 (ggc_pch_alloc_object): Likewise.
210 (ggc_pch_write_object): Likewise.
211 (init_ggc): Do not attempt to initialize entries in the
212 size_lookup[] array for objects whose size is greater than than
213 the length of the array.
215 2006-07-25 Daniel Jacobowitz <dan@codesourcery.com>
217 * dbxout.c (output_used_types_helper): Push queued types
219 (output_types_sort): New.
220 (output_used_types): Collect used types on a VEC and sort them
223 2006-07-24 Richard Guenther <rguenther@suse.de>
226 * cgraph.c (cgraph_remove_node): Do not check if dumps
228 * cgraphunit.c (cgraph_optimize): Likewise.
230 2006-07-24 Jan Hubicka <jh@suse.cz>
232 PR rtl-optimization/28071
233 * tree-cfg.c (tree_split_block): Do not allocate new stmt_list nodes.
234 * tree-iterator.c (tsi_split_statement_list_before): Do not crash when
235 splitting before first stmt.
237 2006-07-24 Jan Hubicka <jh@suse.cz>
239 PR rtl-optimization/28071
240 * ipa-inline.c (update_caller_keys): Remove edges that
241 are no longer inline candidates.
243 2006-07-23 Daniel Jacobowitz <dan@codesourcery.com>
246 * dbxout.c (output_used_types_helper, output_used_types): New.
247 (dbxout_symbol): Call output_used_types.
249 2006-07-23 Jan Hubicka <jh@suse.cz>
253 * cgraph.c (cgraph_varpool_nodes): Export.
254 (decide_is_variable_needed): Ignored "used" attribute in
256 * cgraph.h (cgraph_varpool_nodes): Declare.
257 * cgraphunit.c (decide_is_function_needed): Ignored "used" attribute in
260 2006-07-23 Roger Sayle <roger@eyesopen.com>
263 * gthr-solaris.h: Prototype __gthrw forms of thr_self, mutex_init and
264 mutex_destroy even when !_LIBOOBJC. Remove duplicate prototype of
265 the __gthrw form of thr_keycreate.
266 (__gthread_key_delete): Silence the unused argument warning.
268 2006-07-23 Steven Bosscher <steven@gcc.gnu.org>
271 * config/elfos.h (ASM_OUTPUT_ASCII): Remove 'register' marks.
272 Cache the last found '\0' marker to avoid quadratic behavior.
274 2006-07-23 Jan Hubicka <jh@suse.cz>
276 * i386.md (subsi_3_zext): Fix output template.
278 2006-07-21 Mike Stump <mrs@apple.com>
280 * doc/invoke.texi (C++ Dialect Options): Note that
281 -fvisibility-inlines-hidden doesn't affect explicitly
282 instantiationed inline methods.
284 2006-07-20 Roger Sayle <roger@eyesopen.com>
286 * config.gcc (i[34567]86-*-solaris2*): Add usegas.h to $tm_file
287 if the target assembler is GNU binutils' gas.
288 * config/i386/sol2-10.h (ASM_SPEC): Check USE_GAS to determine
289 whether to pass GNU gas or native as command line options.
291 2006-07-20 Jason Merrill <jason@redhat.com>
293 * tree.c (remove_attribute): New fn.
294 * tree.h: Declare it.
296 2006-07-20 Paul Brook <paul@codesourcery.com>
299 * cse.c (cse_insn): Add destination addresses to hash table. Check if
300 they are invalidated by this instruction.
302 2006-07-21 Danny Smith <dannysmith@users.sourceforge.net>
305 * config/i386/cygming.h (MAX_OFILE_ALIGNMENT): Define.
307 2006-07-20 Eric Christopher <echristo@apple.com>
310 * config/i386/i386.h (OPTION_DEFAULT_SPECS): Reorder.
312 2006-07-19 Eric Christopher <echristo@apple.com>
314 * config/t-slibgcc-darwin (stmp-lipo): Remove.
315 Rewrite dependencies for libgcc_s.1.dylib.
317 2006-07-19 Jakub Jelinek <jakub@redhat.com>
319 * except.c (duplicate_eh_regions_1): Clear next_peer.
321 2006-07-17 Nathan Sidwell <nathan@codesourcery.com>
323 * doc/invoke.texi (RS/6000 and PowerPC Options): Document that
324 -mlongcall does not guarantee all calls will be long.
325 * doc/extend.texi (long_call/short_call): Document that longcall
326 does not guarantee a long call will be used.
327 (longcall/shortcall): Likewise.
329 2006-07-18 Roger Sayle <roger@eyesopen.com>
332 * expmed.c (expand_shift): Additionally check that the shift_cost
333 is not MAX_COST and that INTVAL(op1) is less than MAX_BITS_PER_WORD
334 before implementing a LSHIFT_EXPR as a sequence of additions.
335 * config/sh/sh.c (shift_costs): Return MAX_COST to inform the
336 middle-end that DImode shifts need to be synthesized by expand.
338 2006-07-18 Diego Novillo <dnovillo@redhat.com>
341 * tree-ssa-operands.c (access_can_touch_variable): Update
343 Return true if ALIAS is .GLOBAL_VAR.
345 2006-07-18 David Daney <ddaney@avtrex.com>
347 * gcc.c (display_help): Fix typo in help text.
349 2006-07-18 Olivier Hainque <hainque@adacore.com>
351 * tree.h (categorize_ctor_elements): Adjust prototype and add
352 descriptive comment, both in accordance with the interface change
354 * varasm.c (constructor_static_from_elts_p): New function.
355 Whether a constructor node is a valid static constant initializer
356 if all its elements are.
357 (initializer_constant_valid_p) <CONSTRUCTOR value>: Use it.
358 * output.h: Declare it.
359 * expr.c (categorize_ctor_elements_1): Return whether the constructor
360 is a valid constant initializer instead of computing the number of
361 non-constant elements. Use constructor_static_from_elts_p for this
362 purpose. Replace the head comment with an indication that this is a
363 helper for categorize_ctor_elements.
364 (categorize_ctor_elements): Same interface change as for the _1
365 helper. Former head comment from this helper moved here, adjusted to
366 account for the interface changes.
367 (mostly_zeros_p): Adjust call to categorize_ctor_elements.
368 (all_zeros_p): Likewise.
369 * gimplify.c (gimplify_init_constructor): Decide whether we can make
370 static versions of the constructor from the categorize_ctor_elements
371 return value instead of the formerly computed number of non-constant
374 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
376 * configure: Regenerate.
377 * Makefile.in (build_libsubdir): New configure substitution
378 (build_libobjdir): New variable.
379 (BUILD_LIBIBERTY): Use it.
381 2006-07-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
384 * c-pragma.c (handle_pragma_pack): Handle invalid constants.
386 2006-07-18 Alexandre Oliva <aoliva@redhat.com>
389 * c-common.c (handle_weakref_attribute): Ignore attribute in
390 the same conditions the alias attribute is ignored.
392 2006-07-17 Carlos O'Donell <carlos@codesourcery.com>
394 * dbxout.c (dbxout_function_end): Do not increment scope_labelno.
395 (dbxout_begin_prologue): Increment scope_labelno.
397 2006-07-17 Richard Henderson <rth@redhat.com>
400 * tree-nested.c (create_tmp_var_for): Set DECL_COMPLEX_GIMPLE_REG_P
403 2006-07-17 Roger Sayle <roger@eyesopen.com>
404 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
406 * config/i386/gmon-sol2.c: Silence compilation warnings by partially
407 synchronizing code with config/sparc/gmon-sol2.c. Remove #if 0
408 blocks. #include "tconfig.h" and "tsystem.h" to prototype system
409 functions such as sbrk, write, etc.. Add function prototypes.
410 Convert function declarations from K&R to ISO C. Cast pointers
411 to "long" and "unsigned long" instead of "int" and "unsigned int".
412 Convert tokens following #endif into comments.
414 2006-07-17 Toon Moene <toon@moene.indiv.nluug.nl>
416 * invoke.texi: Remove mention of f77; Reformat table for
417 inline parameter options correctly; mention that -malign-double
418 is default on x86-64 targets.
420 2006-07-17 Zdenek Dvorak <dvorakz@suse.cz>
422 * tree-chrec.c (avoid_arithmetics_in_type_p): New.
423 (convert_affine_scev, chrec_convert_aggressive): Use
424 avoid_arithmetics_in_type_p. Do not check for the subtypes
427 2006-07-17 Richard Sandiford <richard@codesourcery.com>
430 * optabs.c (expand_doubleword_shift): Wrap the call to
431 do_compare_rtx_and_jump with NO_DEFER_POP and OK_DEFER_POP.
433 2006-07-17 Richard Sandiford <richard@codesourcery.com>
436 * optabs.c (expand_binop): Pass next_methods rather than methods
437 to expand_doubleword_shift.
439 2006-07-17 J"orn Rennecke <joern.rennecke@st.com>
442 * tree.h (dump_addr): Declare.
443 * print-tree.c (dump_addr): New function.
444 (print_node_brief, print_node): Use it.
445 * print-rtl.c (print_rtx): Likewise.
446 * common.opt (-fdump-noaddr): New option.
447 * doc/invoke.texi (-fdump-noaddr): Document.
448 * loop-unroll.c (si_info_hash): Make hash independent of addresses.
449 (ve_info_hash): Likewise.
451 2006-07-13 Andrew Haley <aph@redhat.com>
453 PR tree-optimization/19505
454 * tree-cfgcleanup.c (tree_forwarder_block_p): If we have an EH
455 edge leaving this block, make sure that the destination of this
456 block has only one predecessor.
458 2006-07-17 Richard Guenther <rguenther@suse.de>
460 PR tree-optimization/28238
461 * tree-inline.c (copy_bb): Check if we produced valid
462 gimple copying and substituting a stmt. If not, gimplify
465 2006-07-16 Eric Botcazou <ebotcazou@adacore.com>
467 * optabs.c (maybe_encapsulate_block): New function extracted from...
468 (emit_libcall_block): ...here. Invoke it on the block of insns to
469 maybe emit REG_LIBCALL/REG_RETVAL notes around the block.
470 (emit_no_conflict_block): Likewise.
472 2006-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
474 * doc/install.texi (sparc-sun-solaris2*): Add GMP version number.
476 2006-07-15 Roger Sayle <roger@eyesopen.com>
478 * tree-gimple.c (is_gimple_stmt): Sink test of IS_EMPTY_STMT into
479 a new NOP_EXPR case of the switch statement.
481 2006-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
484 * stor-layout.c (place_field): Take the bit field with
485 an excessive size into account in the ms-bitfiled case.
488 * stor-layout.c (place_field): Use DECL_BIT_FIELD_TYPE of
489 the previous bit field.
491 2006-07-14 Eliot Dresselhaus <eliot@sonic.net>
494 * config/rs6000/spe.md (frob_di_df_2): Add m->r alternative.
496 2006-07-14 Ulrich Weigand <uweigand@de.ibm.com>
498 * config/s390/linux-unwind.h (s390_fallback_frame_state): Detect
499 signal frames correctly even when the signal was installed with
502 2006-07-14 Carlos O'Donell <carlos@codesourcery.com>
504 * dbxout.c (dbxout_begin_prologue): Emit LFBB label at function start.
505 (dbxout_function_end): Use local label LFBB. Remove hook
507 (dbxout_source_line): Use local label LFBB.
508 (dbxout_block): Likewise.
509 (dbx_output_lbrac): Remove hook DBX_OUTPUT_LBRAC.
510 (dbx_output_rbrac): Remove hook DBX_OUTPUT_RBRAC.
511 * config/rs6000/linux64.h: Remove DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC,
514 2006-07-13 Janis Johnson <janis187@us.ibm.com>
516 * doc/sourcebuild.texi (Test Directives): Document dg-shouldfail.
518 2006-07-13 Jan Hubicka <jh@suse.cz>
520 * cgraphunit.c (cgraph_varpool_analyze_pending_decls): Call
522 * output.h (align_variable): Declare.
523 * varasm.c (align_variable): Export.
524 * value-prof.c (tree_value_profile_transformations): Recompute iterator
525 when basic block changed.
527 2006-07-13 Nick Clifton <nickc@redhat.com>
529 * config/sh/sh.c (sh_reorg): Ignore deleted insns whilst
530 walking the LOG_LINKS chain.
532 2006-07-12 Geoffrey Keating <geoffk@apple.com>
534 * doc/invoke.texi (C++ Dialect Options): Explain difference
535 between -fvisibility-inlines-hidden and setting hidden
536 visibility explicitly.
538 2006-07-12 Eric Christopher <echristo@apple.com>
540 * config/t-slibgcc-darwin (SHLIB_LINK): Don't munge stmp-lipo.
541 (stmp-lipo): Depend on libgcc.a.
543 2006-07-12 Kazu Hirata <kazu@codesourcery.com>
545 * tree.c: Fix a comment typo.
547 2006-07-12 Naveen.H.S <naveenh@kpitcummins.com>
549 * config/m32c/muldiv.md (umulhisi3_c): Use only registers for
551 (umulhisi3_r): Likewise.
553 2006-07-12 Paolo Carlini <pcarlini@suse.de>
556 * doc/install.texi (mips-sgi-irix6): Add note about IRIX 6.5.x,
557 x < 19, vs wchar_t support.
559 2006-07-12 Nick Clifton <nickc@redhat.com>
561 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Use -isa=sh4-up
564 2006-07-12 Mike Stump <mrs@apple.com>
566 * protoize.c (edit_fn_definition): Add volatile to clean_text_p.
568 2006-07-10 Eric Christopher <echristo@apple.com>
570 * config/t-slibgcc-darwin: Rewrite.
572 2006-07-10 Laurynas Biveinis <laurynas.biveinis@gmail.com>
575 * Makefile.in (configure): add missing aclocal.m4 and acinclude.m4
578 2006-07-08 Matthias Klose <doko@debian.org>
580 * doc/sourcebuild.texi: Fix typo.
582 2006-07-07 Mike Stump <mrs@apple.com>
584 * toplev.c (process_options): Don't give -ffunction-sections may
585 affect debugging warning for Mach-O.
587 2006-07-07 James E Wilson <wilson@specifix.com>
589 * config/mips/mips.md (cpu): Add sb1a.
590 * config/mips/sb1.md: Modify almost all patterns to accept sb1a in
591 addition to sb1. Adjust comments to clarify SB-1A differences from
593 (ir_sb1a_load): New. Modify bypasses to use it.
594 (ir_sb1a_simple_alu): Likewise.
595 * config/mips/mips.c (mips_cpu_info_table): Add sb1a.
596 (mips_rtx_cost_data): Add PROCESSOR_SB1A support.
597 (mips_issue_rate): Add PROCESSOR_SB1A.
598 (mips_multipass_dfa_lookahead): Use TUNE_SB1 instead of PROCESSOR_SB1.
599 * config/mips/mips.h (processor_type): Add PROCESSOR_SB1A.
600 (TARGET_SB1): Add PROCESSOR_SB1A check.
601 (TUNE_SB1): Likewise.
603 * config/mips/mips-protos.h (mips_store_data_bypass_p): New.
604 * config/mips/mips.c (mips_store_data_bypass_p): New.
605 * config/mips/sb1.md: Use mips_store_data_bypass_p instead of
608 2006-07-08 Paul Brook <paul@codesourcery.com>
611 * config/m68k/m68k.md: Add r-m patterns for 68881 movxf.
613 2006-07-07 Richard Guenther <rguenther@suse.de>
616 * tree.h (build_one_cst): Declare.
617 * tree.c (build_one_cst): New function.
618 * tree-ssa-math-opts.c (get_constant_one): Remove.
619 (insert_reciprocals): Use build_one_cst.
620 * fold-const.c (fold_plusminus_mult): Likewise.
622 2006-07-07 Roger Sayle <roger@eyesopen.com>
624 * pointer-set.c (pointer_set_destroy): Correct whitespace.
625 * cfgloopanal.c (dump_graph): Likewise.
626 * dojump.c (discard_pending_stack_adjust): Likewise.
627 * fix-header.c (TARGET_EXTRA_INCLUDE, TARGET_EXTRA_PRE_INCLUDES):
629 * alloc-pool.c (dump_alloc_pool_statistics): Likewise.
630 * function.c (finalize_block_changes): Likewise.
631 * gcc-common.c (ggc_free_overhead, dump_gcc_loc_statistics): Likewise.
632 * tree-ssa-dce.c (clear_control_dependence_bitmap): Likewise.
633 * rtl.c (dump_rtx_statistics): Likewise.
634 * tree-ssa-structalias.c (sort_fieldstack, init_alias_heapvars):
636 * varray.c (dump_varray_statistics): Likewise.
637 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
638 decode_decimal64, encode_decimal128, decode_decimal128,
639 decimal_real_to_decimal): Likewise.
641 2006-07-07 Richard Guenther <rguenther@suse.de>
643 PR tree-optimization/28187
644 * tree-vrp.c (vrp_operand_equal_p): New function.
645 (vrp_bitmap_equal_p): Likewise.
646 (update_value_range): Use them to compare old and new
649 2006-07-06 Roger Sayle <roger@eyesopen.com>
651 * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Add
652 a default case to switch statement to silence compiler warnings.
654 2006-07-06 Roger Sayle <roger@eyesopen.com>
657 * configure.ac (HAVE_AS_IX86_FFREEP): On x86 targets check whether
658 the configured assembler supports the x87's ffreep mnemonic.
659 * configure: Regenerate.
660 * config.in: Regenerate.
662 * config/i386/i386.c (output_387_ffreep): New function.
663 (output_fp_compare): Use output_387_ffreep to emit ffreep insns.
664 (output_387_reg_move): Likewise.
666 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
668 Port to hosts whose 'sort' and 'tail' implementations
669 treat operands with leading '+' as file names, as POSIX
670 has required since 2001. However, make sure the code still
671 works on pre-POSIX hosts.
672 * Makefile.in (slowcompare): Port to POSIX 1003.1-2001,
673 which says you should use "tail -c +N" rather than "tail +Nc".
674 Fix a bug: the old code incorrectly skipped 15 bytes, not 16.
676 2006-07-06 Zdenek Dvorak <dvorakz@suse.cz>
678 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Fix typo in
681 2006-07-06 David Edelsohn <edelsohn@gnu.org>
684 * config/rs6000/rs6000.c (rs6000_legitimate_address): Do not allow
685 PRE_{INC,DEC} of TFmode.
687 2006-07-06 David Edelsohn <edelsohn@gnu.org>
688 Alan Modra <amodra@bigpond.net.au>
691 * config/rs6000/rs6000.c (insvdi_rshift_rlwimi_p): Correct shiftop
694 2006-07-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
697 * config/alpha/predicates.md (alpha_swapped_comparison_operator):
698 Remove duplicate gtu.
700 2006-07-05 Jason Merrill <jason@redhat.com>
704 * stor-layout.c (finish_record_layout): Copy TYPE_PACKED to variants.
705 * c-common.c (handle_packed_attribute): So don't copy it here.
706 * c-decl.c (finish_struct): Don't copy TYPE_ALIGN.
708 2006-07-05 Mike Stump <mrs@apple.com>
710 * doc/invoke.texi (Invoking G++): Clarify prose for g++.
712 2006-07-05 H.J. Lu <hongjiu.lu@intel.com>
715 * config.gcc: Check with_cpu for i[34567]86--*-solaris2.1[0-9]*.
717 2006-07-05 Richard Guenther <rguenther@suse.de>
720 * config/i386/i386.md (*negdf2_1): Restrict pattern to
721 TARGET_SSE2 targets if using SSE math.
722 (*absdf2_1): Likewise.
724 2006-07-05 Richard Guenther <rguenther@suse.de>
726 PR tree-optimization/28162
727 * fold-const.c (fold_binary): For (-A) * (-B) -> A * B
728 make sure to convert the operands to the correct type.
730 2006-07-04 Paolo Bonzini <bonzini@gnu.org>
732 PR tree-optimization/28218
734 * tree-ssa-math-opts.c (execute_cse_reciprocals): Fix calls
735 to calculate and free the dominator information.
737 2006-07-04 Peter O'Gorman <peter@pogma.com>
739 * mklibgcc.in: chmod 644 before ranlib during install.
741 2006-07-04 Andrew Stubbs <andrew.stubbs@st.com>
742 J"orn Rennecke <joern.rennecke@st.com>
744 * configure.ac (.eh_frame data check): Use diff -b.
746 2006-07-04 Eric Botcazou <ebotcazou@libertysurf.fr>
749 * Makefile.in (BUILD_RTL): Add build/vec.o.
750 (build/gencondmd.o): Filter out -fkeep-inline-functions.
751 (build/genextract): Delete.
752 (build/genautomata): Likewise.
754 2006-07-04 Alan Modra <amodra@bigpond.net.au>
757 * config/rs6000/rs6000.c (function_arg_boundary): Double-word align
758 128-bit IBM long doubles for ABI_V4.
760 2006-07-03 Eric Botcazou <ebotcazou@adacore.com>
762 * tree.c (range_in_array_bounds_p): New predicate.
763 * tree.h (range_in_array_bounds_p): Declare it.
764 * tree-eh.c (tree_could_trap_p) <ARRAY_RANGE_REF>: Use it to
765 return a less conservative answer.
766 * tree-sra.c (struct sra_elt): Add new pointer field 'groups'
768 (IS_ELEMENT_FOR_GROUP): New macro.
769 (FOR_EACH_ACTUAL_CHILD): Likewise.
770 (next_child_for_group): New helper function.
771 (can_completely_scalarize_p): Take into account groups.
772 (sra_hash_tree): Handle RANGE_EXPR.
773 (sra_elt_eq): Likewise.
774 (lookup_element): Be prepared for handling groups.
775 (is_valid_const_index): Delete.
776 (maybe_lookup_element_for_expr) <ARRAY_REF>: Use in_array_bounds_p
777 instead of is_valid_const_index.
778 <ARRAY_RANGE_REF>: New case.
779 (sra_walk_expr) <ARRAY_REF>: Use in_array_bounds_p instead of
780 is_valid_const_index.
781 <ARRAY_RANGE_REF>: Do not unconditionally punt.
782 (scan_dump): Dump info for groups too.
783 (decide_instantiation_1): Likewise.
784 (decide_block_copy): Assert that the element is not a group.
785 Propagate decision to groups.
786 (generate_one_element_ref): Handle RANGE_EXPR.
787 (mark_no_warning): Iterate over actual childs.
788 (generate_copy_inout): Likewise.
789 (generate_element_copy): Likewise.
790 (generate_element_zero): Likewise.
791 (generate_element_init_1): Likewise.
792 (dump_sra_elt_name): Handle RANGE_EXPR.
794 2006-07-03 Roger Sayle <roger@eyesopen.com>
796 PR tree-optimization/26251
797 * tree-ssa-threadupdate.c (redirection_block_p): New function.
798 (thread_block): When optimizing for size refuse to thread jumps
799 that would require duplication of blocks other than redirection
802 2006-07-03 Paolo Bonzini <bonzini@gnu.org>
804 * configure.ac: Fix thinko in previous check-in.
805 * configure: Regenerate.
807 2006-07-03 Paolo Bonzini <bonzini@gnu.org>
810 * configure.ac (for lang...): Simplify nesting of conditionals.
811 Test subdir_requires for non-enabled languages. Move processing
812 of lang_opt_files and lang_tree_fiels below that test.
813 * configure: Regenerate.
814 * doc/sourcebuild.texi (Front End Config): Document subdir_requires.
816 2006-07-01 Martin Michlmayr <tbm@cyrius.com>
818 * doc/gcov.texi (Invoking Gcov): Add a missing word.
820 2006-06-30 Kazu Hirata <kazu@codesourcery.com>
822 * cfgexpand.c, config/i386/i386.c, genpreds.c, tree-cfg.c: Fix
825 2006-06-29 Jason Merrill <jason@redhat.com>
832 * tree.c (build_decl_stat): Don't hande #pragma visibility here.
833 * c-common.c (c_determine_visibility): Handle it here.
834 * c-decl.c (finish_decl): Call c_determine_visibility for
836 * flags.h (enum symbol_visibility): Sort from most to least visibility.
838 * varasm.c (default_assemble_visibility): Likewise.
839 * c-common.c (handle_visibility_attribute): Complain about trying
840 to give visibility to an already defined class, or trying to change
841 declared visibility. Always attach the attribute.
846 * attribs.c (decl_attributes): Ignore type-in-place attributes
847 once the type has been defined.
849 2006-06-29 Roger Sayle <roger@eyesopen.com>
852 * c-lex.c (c_lex_with_flags) <CPP_N_INVALID>: Increment errorcount
853 to indicate the cpplib has issued an error message for us.
855 2006-06-29 Asher Langton <langton2@llnl.gov>
858 * config/i386/i386.c (ix86_output_function_epilogue): Don't
859 insert a label at the end of an function under Mach-O.
861 2006-06-29 Eric Christopher <echristo@apple.com>
862 Evan Cheng <evan.cheng@apple.com>
864 * predicates.md (vector_all_ones_operand): New.
865 (nonimmediate_or_sse_const_operand): Ditto.
866 * config/i386/i386-protos.h (standard_sse_constant_opcode): Declare.
867 * config/i386/i386.c (standard_sse_constant_opcode): Define.
868 (standard_sse_mode_p): Ditto.
869 (standard_sse_constant_p): Add case for -1 vector.
870 (ix86_expand_vector_move): Try to use.
871 * sse.md (*mov<mode>_internal): Use nonimmediate_or_sse_const_operand.
872 Call standard_sse_constant_opcode.
873 (*movv4sf_internal): Ditto.
874 (*movv2df_internal): Ditto.
876 2006-06-29 Roger Sayle <roger@eyesopen.com>
878 * genpreds.c (write_match_code_switch): Correctly use XSTR instead
879 of XEXP to extract the operands of a MATCH_CODE rtx.
881 2006-06-28 Andrew Pinski <pinskia@gmail.com>
883 * tree.c (tree_size): Do not waste tail padding in
884 struct tree_string and make the size be the same as
885 build_string will generate.
887 2006-06-28 Jason Merrill <jason@redhat.com>
890 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
891 may_aliases already in the tag's annotations to the bitmap.
893 2006-06-28 Roger Sayle <roger@eyesopen.com>
895 * genpreds.c (write_predicate_stmts) <IOR>: Add missing break.
897 2006-06-28 Roger Sayle <roger@eyesopen.com>
899 * genpreds.c (generate_switch_p): New function.
900 (add_mode_tests): Push the new mode test down inside an AND expr
901 if this allows the switch-suitable MATCH_CODE to be near the root.
902 (write_match_code_switch): New function to write a MATCH_CODE as
904 (write_predicate_stmts): New function to write a predicate RTX
905 expression as a sequence of statements.
906 (write_one_predicate_function): Use write_predicate_stmts.
907 (write_tm_constrs_h): Likewise.
909 2006-06-26 Fred Fish <fnf@specifix.com>
911 * config/mips/t-sb1: New file.
912 * config.gcc (mipsisa64sb1-*-elf*): Add mips/t-sb1 to
915 2006-06-26 DJ Delorie <dj@redhat.com>
917 * config/m32c/m32c.c (m32c_print_operand): Fix sign-merging logic.
919 2006-06-26 Naveen H.S <naveenh@kpitcummins.com>
920 Jayant Sonar <jayants@kpitcummins.com>
921 Jaydeep Vipradas <jaydeepv@kpitcummins.com>
923 * config/m32c/addsub.md (addsi3, addsi3_1, addsi3_2): New.
924 (subsi3, subsi3_1, subsi3_2): New.
925 * config/m32c/bitops.md (andsi3, iorsi3, xorsi3): New.
926 * config/m32c/mov.md (SI mov peephole): New.
927 * config/m32c/m32.c (m32c_immd_dbl_mov): New.
928 * config/m32c/m32c-protos.h (m32c_immd_dbl_mov): New.
930 2006-06-26 Olivier Hainque <hainque@adacore.com>
932 * function.c (aggregate_value_p): Honor DECL_BY_REFERENCE on
933 a CALL_EXPR target function declaration.
935 2006-06-26 Richard Guenther <rguenther@suse.de>
937 * tree.c (build_string): Do not waste tail padding in
940 2006-06-26 Richard Guenther <rguenther@suse.de>
942 * ggc-page.c (init_ggc): Add missing element to size_lookup
946 2006-06-23 Richard Guenther <rguenther@suse.de>
948 * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
949 sizes to MAX_ALIGNMENT. Fix the size_lookup table to honour
950 alignment requests instead. Add verification code.
951 Add struct tree_function_decl and struct tree_binfo size to
952 extra_order_size_table. Add missing element to size_lookup
955 2006-06-25 Eric Botcazou <ebotcazou@adacore.com>
958 * fold-const.c (const_binop): Be prepared for self returning zero.
959 Simplify code handling complex values.
961 2006-06-24 Olivier Hainque <hainque@adacore.com>
963 * gimplify.c (gimplify_scalar_mode_aggregate_compare): New function.
964 (gimplify_expr): Use it for tcc_comparison of operands of non BLKmode
967 2006-06-24 Olivier Hainque <hainque@adacore.com>
969 * tree-ssa-loop-im.c (for_each_index): Handle ARRAY_RANGE_REF as
970 ARRAY_REF, so have the callback called for the low bound expression.
972 2006-06-23 Janis Johnson <janis187@us.ibm.com>
974 * tree.h (DECIMAL_FLOAT_TYPE_P): New.
975 * c-typeck.c (c_common_type): Disallow operations on decimal float
976 types and other float types.
977 * convert.c (convert_to_real): Don't ignore conversions involving
980 2006-06-23 Olivier Hainque <hainque@adacore.com>
982 * tree.c (max_int_size_in_bytes): New function, inspired from
983 code in function.c:assign_temp.
984 * tree.h (max_int_size_in_bytes): Declare.
985 * function.c (assign_temp): Use it.
986 * gimplify.c (create_tmp_var): Relax the assertions on the type
987 properties, not mandating constant size any more.
988 (force_constant_size): New static function.
989 (gimple_add_tmp_var): Use it, forcing variable size to a
990 constant upper bound if it is not constant on entry.
992 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
995 * config/i386/winnt.c (ix86_handle_selectany_attribute): Move check
996 for initialization and setting of one_only flag to ...
997 (i386_pe_encode_section_info): ...here.
998 (i386_pe_dllimport_p): Check for DECL_DLLIMPORT_P also.
999 Recheck that the symbol has not been defined.
1001 2006-06-23 Richard Guenther <rguenther@suse.de>
1003 * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
1004 sizes to MAX_ALIGNMENT. Fix the size_lookup table to honour
1005 alignment requests instead. Add verification code.
1006 Add struct tree_function_decl and struct tree_binfo size to
1007 extra_order_size_table. Add missing element to size_lookup
1010 2006-06-22 Roger Sayle <roger@eyesopen.com>
1011 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1014 * expr.c (expand_expr_real_1) <VECTOR_CST>: Check whether the
1015 call to lang_hooks.types.type_for_mode returned NULL_TREE.
1017 2006-06-23 Ben Elliston <bje@au.ibm.com>
1019 * dfp.c (decimal_to_decnumber): Do not use decNumberNegate to
1020 negate dn -- manipulate it directly.
1022 2006-06-22 Roger Sayle <roger@eyesopen.com>
1023 Steven Bosscher <stevenb.gcc@gmail.com>
1026 * reload1.c (gen_reload): Call mark_jump_label on the new insns
1027 generated by gen_move_insn to add REG_LABEL notes if necessary.
1029 2006-06-22 Bob Wilson <bob.wilson@acm.org>
1031 * config/xtensa/lib1funcs.asm (MIN_ESA): Delete.
1032 (leaf_entry): Remove use of MIN_ESA.
1034 2006-06-22 Zdenek Dvorak <dvorakz@suse.cz>
1036 PR rtl-optimization/28121
1037 * cfgexpand.c (tree_expand_cfg): Clean EDGE_EXECUTABLE flag from
1040 2006-06-21 DJ Delorie <dj@redhat.com>
1042 * config/m32c/muldiv.md (mulhisi3_i): Only use registers for dest
1044 (mulhisi3_r): Likewise.
1046 2006-06-21 Richard Sandiford <richard@codesourcery.com>
1049 * coverage.c (coverage_counter_alloc): Leave the index type
1051 (coverage_counter_alloc): Use null arguments for operands 2 and 3
1054 2006-06-21 Andrew Pinski <pinskia@physics.uc.edu>
1056 * doc/invoke.texi (-fopenmp) Move to "Options Controlling C Dialect"
1057 section from the "Options for Code Generation Conventions".
1059 2006-06-21 Richard Henderson <rth@redhat.com>
1063 * config/alpha/predicates.md (small_symbolic_operand): Deny weak
1065 (global_symbolic_operand): Allow weak symbols, even if local_p.
1067 2006-06-21 Eric Botcazou <ebotcazou@adacore.com>
1069 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): New function.
1070 (find_interesting_uses_address): Punt if above function returns true.
1072 2006-06-21 Richard Guenther <rguenther@suse.de>
1074 * configure: Regenerated.
1076 2006-06-21 Joseph Myers <joseph@codesourcery.com>
1078 * config/mips/mips.c (function_arg): Where one part of a
1079 complex argument is in registers and the other part in the stack,
1080 return a REG not a PARALLEL.
1082 2006-06-21 Mark Mitchell <mark@codesourcery.com>
1084 * configure.ac: Set gcc_gxx_include_dir to $target/include/c++
1085 when cross-compiling. Do not substitute libstdcxx_incdir.
1086 * configure: Regenerated.
1088 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1090 * varasm.c (mergeable_string_section): Check for embedded NULs and
1091 NUL termination in the first int_size_in_bytes (TREE_TYPE (decl))
1092 rather than TREE_STRING_LENGTH bytes.
1094 2006-06-21 Richard Guenther <rguenther@suse.de>
1096 * ggc-page.c (extra_order_size_table): Add var_ann_d,
1097 tree_ssa_name, bitmap_element and phi_node with 4 arguments
1100 2006-06-21 Richrad Guenther <rguenther@suse.de>
1102 * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
1103 Limit iteration over the dominators.
1105 2006-06-20 Roger Sayle <roger@eyesopen.com>
1107 * config/mips/iris6.h (LIB_SPEC): Add support for -pthread.
1108 (SUBTARGET_CPP_SPEC): Define _REENTERANT if -pthread specified.
1110 2006-06-20 Richard Guenther <rguenther@suse.de>
1111 Michael Matz <matz@suse.de>
1113 * alloc-pool.h (free_alloc_pool_if_empty): Prototype new
1115 * alloc-pool.c (free_alloc_pool_if_empty): New function.
1116 * et-forest.h (et_free_pools): Prototype new function.
1117 * et-forest.c (et_free_tree_force): Free parent occurrence.
1118 (et_free_pools): New function.
1119 * dominance.c (free_dominance_info): Free et-forest alloc
1122 2006-06-20 Roger Sayle <roger@eyesopen.com>
1124 * expr.c (expand_expr_real_1) <VECTOR_CST>: For vector constants with
1125 integer modes, attempt to directly construct an integer constant.
1127 * fold-const.c (native_encode_vector): Determine the size of each
1128 element from the vector type instead of the first vector element.
1130 * tree.c (build_constructor_single): Mark a CONSTRUCTOR as constant,
1131 if all of its elements/components are constant.
1132 (build_constructor_from_list): Likewise.
1134 2006-06-20 Zdenek Dvorak <dvorakz@suse.cz>
1136 PR tree-optimization/27331
1137 * tree-data-ref.c (free_data_ref): New function.
1138 (create_data_ref): Fail if the data reference has unknown access
1140 (free_data_refs): Use free_data_ref.
1142 2006-06-19 Andrew Pinski <pinskia@gmail.com>
1145 * tree-inline.c (setup_one_parameter): Strip useless
1146 type conversion before adding it to the IR.
1147 (declare_return_variable): Likewise.
1149 2006-06-19 Martin Michlmayr <tbm@cyrius.com>
1152 * c-common.c (c_common_truthvalue_conversion): Fix grammar in warning.
1154 2006-06-19 Mike Stump <mrs@apple.com>
1156 * tree.c (variably_modified_type_p): VM arguments don't make the
1159 2006-06-19 Richard Guenther <rguenther@suse.de>
1161 * tree-ssa-pre.c (try_combine_conversion): Strip useless
1162 type conversions after folding.
1164 2006-06-19 Richard Guenther <rguenther@suse.de>
1166 * ggc-page.c (extra_order_size_tab): Add entries with
1167 size of struct function and basic_block.
1168 (size_lookup): Extend to cover sizes up to 511.
1169 (ggc_alloc_stat): Adjust user.
1170 (ggc_pch_count_object): Likewise.
1171 (ggc_pch_alloc_object): Likewise.
1172 (ggc_pch_write_object): Likewise.
1174 2006-06-19 Zdenek Dvorak <dvorakz@suse.cz>
1176 * tree-ssa-loop-niter.c (implies_ge_p): New function.
1177 (derive_constant_upper_bound): Handle OP0 - CST in unsigned types
1180 2006-06-19 Denis Chertykov <denisc@overta.ru>
1182 * config/avr/libgcc.S : Correct my wrong previous commit.
1184 2006-06-19 Roger Sayle <roger@eyesopen.com>
1187 * expmed.c (expand_shift): On SHIFT_COUNT_TRUNCATED targets, we may
1188 have stripped a SUBREG from the shift count, so we may need to
1189 convert_to_mode back to the type's mode before calling make_tree.
1190 Use new_amount instead of amount to avoid expanding a tree twice.
1192 2006-06-19 Richard Guenther <rguenther@suse.de>
1195 * fold-const.c (operand_equal_p): Check if the argument types
1196 have the same precision before stripping NOPs.
1198 2006-06-19 Daniel Berlin <dberlin@dberlin.org>
1200 Fix PR tree-optimization/27341
1201 * tree-cfg.c (gimplify_val): Call mark_new_vars_to_rename on the
1203 * tree-complex.c (pass_lower_complex): Update SMT usage.
1205 2006-06-19 Andreas Krebbel <krebbel1@de.ibm.com>
1207 * config/s390/s390.md ("doloop_si64", "doloop_si31", "doloop_di"):
1208 Add a new alternative to the constraint strings. Add move of
1209 operand 1 to 3 to the splitter definition.
1210 ("doloop_si_long"): Second contraint alternative removed.
1212 2006-06-08 Anatoly Sokolov <aesok@post.ru>
1214 * config/avr/avr.h (avr_have_movw_lpmx_p): Declare.
1215 (TARGET_CPU_CPP_BUILTINS): Add __AVR_HAVE_MOVW__ and
1217 (AVR_HAVE_MOVW) Define.
1218 (ASSEMBLER_DIALECT): Use AVR_HAVE_MOVW.
1219 (ASM_SPEC): Add avr25.
1220 (LINK_SPEC): Add avr25.
1221 * config/avr/avr.c (avr_have_movw_lpmx_p): Add.
1222 (base_arch_s): Add new member 'have_movw_lpmx'.
1223 (avr_arch_types): Init 'have_movw_lpmx'.
1224 (avr_mcu_types): Add 'avr25'. Move attiny13, attiny2313, attiny24,
1225 attiny44, attiny84, attiny25, attiny45, attiny85, attiny261,
1226 attiny461, attiny861 and at86rf401 in 'avr25' arhitecture.
1227 (avr_override_options): Init 'avr_have_movw_lpmx_p'.
1228 (output_movhi, output_movsisf, ashlsi3_out, avr_rtx_costs): Use
1230 (avr_file_start): Do not output '.arh' derective.
1231 * config/avr/libgcc.S (mov_l): Use __AVR_HAVE_MOVW__.
1232 (__do_copy_data): Use __AVR_HAVE_LPMX__.
1233 * config/avr/avr.md (mcu_enhanced): Delete.
1234 (mcu_have_movw): Define.
1235 (negsi2, extendhisi2, zero_extendhisi2): Use 'mcu_have_movw'.
1236 (call_insn, call_value_insn): Use 'call_insn' and __AVR_HAVE_MOVW__.
1237 * config/avr/t-avr(MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add avr25.
1238 (MULTILIB_MATCHES): Add attiny13, attiny2313, attiny24, attiny44,
1239 attiny84, attiny25, attiny45, attiny85, attiny261, attiny461,
1240 attiny861 and at86rf401 devices.
1242 2006-06-18 Jie Zhang <jie.zhang@analog.com>
1244 * config/bfin/bfin.c (MAX_LOOP_LENGTH): Define to be 2042 instead
1247 2006-06-17 Karl Berry <karl@gnu.org>
1249 * doc/cpp.texi, doc/cppinternals.texi, doc/gcc.texi,
1250 doc/gccint.texi, doc/install.texi (@dircategory): Use
1251 "Software development" instead of "Programming", following
1252 the Free Software Directory.
1254 2006-06-17 Alexandre Oliva <aoliva@redhat.com>
1256 * config/i386/i386.c (legitimate_tls_address)
1257 <TARGET_GNU2_TLS>: Add tp after DTPOFF.
1258 * config/i386/i386.md (*tls_dynamic_gnu2_combine_32): Adjust.
1259 (*tls_dynamic_gnu2_combine_64): Likewise.
1261 2006-06-16 Richard Guenther <rguenther@suse.de>
1264 * fold-const.c (negate_expr_p): Do not introduce undefined
1265 overflow in negating INTEGER_CSTs.
1266 (fold_negate_expr): Rename from negate_expr. Revert last
1267 change for folding BIT_NOT_EXPR. Change semantics to
1268 return NULL_TREE for non-simplified negations. Do not
1269 strip type conversions and unify type handling.
1270 (negate_expr): New function, wrap around fold_negate_expr
1271 but ensure building a tree always. Strip type conversions
1272 here, fold to result type.
1273 (fold_unary): Use fold_negate_expr for folding NEGATE_EXPR.
1275 2006-06-16 Roger Sayle <roger@eyesopen.com>
1278 * reg-stack.c (subst_stack_regs): Handle noreturn function calls
1279 that (would) return their results in stack registers.
1281 2006-06-16 Michael Matz <matz@suse.de>
1282 Richard Guenther <rguenther@suse.de>
1284 * fold-const.c (fold_truthop): Only return new tree node if
1285 we canonicalized something.
1287 2006-06-16 Richard Guenther <rguenther@suse.de>
1289 * function.h (enum function_frequency): Move declaration
1290 out of struct function.
1291 (struct function): Move bool fields and the enum to the bitfield
1292 section. Reorder elements to avoid padding. Remove unused
1293 fields left over from the RTL inliner removal.
1294 * function.c (free_after_compilation): Do not zero removed fields.
1295 * Makefile.in (ipa-reference.o): Add $(FUNCTION_H) dependency.
1296 (ipa-type-escape.o): Likewise.
1298 2006-06-16 Richard Guenther <rguenther@suse.de>
1300 * cgraph.h (struct cgraph_local_info): Turn bool elements
1302 (struct cgraph_node): Likewise.
1303 (struct cgraph_varpool_node): Likewise.
1305 2006-06-15 Richard Guenther <rguenther@suse.de>
1307 * fold-const.c (fold_truth_not_expr): Rename from
1308 invert_truthvalue. Give it fold_* semantics to avoid
1310 (invert_truthvalue): New function. Wrapper around
1311 fold_truth_not_expr.
1312 (optimize_minmax_comparison): Avoid creating garbage.
1313 (fold_unary): Use fold_truth_not_expr for folding
1315 (fold_ternary): Replace uses of invert_truthvalue with
1316 fold_truth_not_expr where applicable.
1317 * tree.h (fold_truth_not_expr): Prototype.
1319 2006-06-16 Richard Guenther <rguenther@suse.de>
1321 PR tree-optimization/27781
1322 * Makefile.in (ipa-pure-const.o): Add $(TARGET_H) dependency.
1323 * ipa-pure-const.c (target.h): Include.
1324 (analyze_function): Do not analyze functions that do not
1327 2006-06-15 Andrew MacLeod <amacleod@redhat.com>
1330 * tree-dfa.c (referenced_vars_dup_list): Remove.
1331 (find_referenced_vars): Remove assert.
1332 (referenced_var_check_and_insert): Replace dup list with assert.
1333 * tree-ssa.c (delete_tree_ssa): Remove dup list processing.
1334 * tree-flow.h (referenced_vars_dup_list): Remove extern decl.
1336 2006-06-15 Richard Guenther <rguenther@suse.de>
1338 * tree-ssa-structalias.c (alias_get_name): Avoid creating
1339 extra unused identifiers if not dumping.
1340 (create_variable_info_for): Likewise.
1342 2006-06-15 Zdenek Dvorak <dvorakz@suse.cz>
1344 * tree-ssa-loop-niter.c (implies_nonnegative_p): New function.
1345 (derive_constant_upper_bound): Derive more precise upper bound in
1346 common cases. Return type changed to double_int.
1347 (record_estimate): Reflect the changed return type of
1348 derive_constant_upper_bound.
1349 * double-int.c (double_int_zext, double_int_sext): Fix.
1351 2006-06-15 Paolo Bonzini <bonzini@gnu.org>
1353 * configure.ac (CFLAGS): Get them from the toplevel or from the
1354 configure invocation.
1355 * configure: Regenerate.
1356 * Makefile.in (CFLAGS): Substitute value provided by configure.
1358 2006-06-14 Mark Mitchell <mark@codesourcery.com>
1361 * c-common.h (c_finish_omp_atomic): Adjust declaration.
1362 * c-omp.c (c_finish_omp_atomic): Return the expression to perform,
1363 rather than calling add_stmt on it.
1364 * c-parser.c (c_parser_omp_atomic): Adjust accordingly.
1366 2006-06-14 Andreas Krebbel <krebbel1@de.ibm.com>
1369 * reload1.c (reload): Remove registers returned by update_eliminables
1370 from used_spill_regs.
1372 2006-06-13 DJ Delorie <dj@redhat.com>
1374 * config/m32c/muldiv.md (mulpsi3): Expect arbitrary constants.
1376 2006-06-13 Carlos O'Donell <carlos@codesourcery.com>
1378 * Makefile.in: Define HTMLS_BUILD, HTMLS_INSTALL,
1379 html__strip_dir, html__mkdir_p. Enhance install-html target.
1380 * configure.ac: AC_SUBST datarootdir, docdir and htmldir.
1381 * configure: Regenerate.
1383 2006-06-13 Fariborz Jahanian <fjahanian@apple.com>
1385 * fold-const.c (fold_cond_expr_with_comparison): Check for
1386 Objective-C++ as language in deciding COND_EXPR transformation.
1388 2006-06-06 J"orn Rennecke <joern.rennecke@st.com>
1391 * config/sh/t-sh (LIB1ASMFUNCS): Add _udiv_qrnnd16
1392 * config/sh/sh.c (print_operand): Add !SHMEDIA functionality to 'M'.
1393 * config/sh/lib1funcs.h (SL, SL1): Define.
1394 * config/sh/lib1funcs.asm (__udiv_qrnnd16): New hidden function.
1395 * longlong.h (__sh__): Define umul_ppmm, udiv_qrnnd and sub_ddmmss.
1396 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): New rule.
1397 (OBJS_Os_4_200): New variable.
1398 ($(T)libgcc-Os-4-200.a): Use it.
1399 * sh.md (udivsi3): For TARGET_DIVIDE_CALL_TABLE, avoid function call
1400 when dividing 1 and/or by 0.
1402 2006-06-13 Roger Sayle <roger@eyesopen.com>
1404 * configure.ac (HAS_MCONTEXT_T_UNDERSCORES): Include <sys/signal.h>
1405 before <ucontext.h> to define sigset_t required by <sys/ucontext.h>.
1406 * configure: Regenerate.
1408 2006-06-13 Jie Zhang <jie.zhang@analog.com>
1410 * config/bfin/bfin.c (bfin_reorg_loops): Only call recog_memoized ()
1411 for real instruction.
1413 2006-06-13 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1416 * haifa-sched.c (check_cfg): Handle special case.
1418 2006-06-13 Eric Botcazou <ebotcazou@adacore.com>
1421 * gimplify.c (declare_tmp_vars): Rename into declare_vars.
1422 Add debug_info parameter. Chain the vars to the BLOCK instead
1423 of the BIND_EXPR if debug info are requested for them.
1424 (pop_gimplify_context): Adjust for above change.
1425 (gimple_add_tmp_var): Likewise.
1426 * tree-gimple.h (declare_tmp_vars): Rename into declare_vars.
1428 * tree-nested.c (convert_nonlocal_reference): Adjust for above change.
1429 (convert_local_reference): Likewise.
1430 (get_local_debug_decl): Set DECL_IGNORED_P on the original variable.
1431 (finalize_nesting_tree_1): Request that debug info be emitted
1432 for debug_var_chain.
1434 2006-06-13 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1436 * haifa-sched.c (unlink_other_notes, unlink_line_notes): Fix the patch
1437 for PR target/27863.
1439 2006-06-13 Richard Guenther <rguenther@suse.de>
1442 * except.c (output_ttype): Expand type with EXPAND_INITIALIZER.
1444 2006-06-13 Richard Guenther <rguenther@suse.de>
1446 PR tree-optimization/27830
1447 * tree-inline.c (copy_body_r): For copying the operand
1448 of an ADDR_EXPR make sure to fold &* afterwards.
1450 2006-06-12 Eric Botcazou <ebotcazou@adacore.com>
1452 * gimplify.c (gimplify_expr): Treat VIEW_CONVERT_EXPR like other
1453 lvalues in the fb_none case with side-effects.
1455 2006-06-12 Kazu Hirata <kazu@codesourcery.com>
1457 * tree-flow.h: Remove the prototype for
1458 compute_phi_arg_on_exit.
1459 * tree-ssa-loop-ivopts.c (protect_loop_closed_ssa_form_use,
1460 protect_loop_closed_ssa_form, compute_phi_arg_on_exit):
1463 2006-06-12 Mark Shinwell <shinwell@codesourcery.com>
1465 * builtins.c (expand_builtin_return_addr): Only use
1466 frame_pointer_rtx when count == 0 and we are expanding
1467 __builtin_return_address.
1469 2006-06-12 Fred Fish <fnf@specifix.com>
1471 * config/mips/mips.c (mips_file_start): Create special section
1472 ".gcc_compiled_longXX" for o64 ABI as well as EABI.
1474 2006-06-11 Eric Christopher <echristo@apple.com>
1477 * stor-layout.c (place_field): Remove check for
1478 remaining_in_alignment when aligning at the end of a run.
1480 2006-06-11 Eric Christopher <echristo@apple.com>
1483 * doc/extend.texi (Structure-Packing Pragmas): Document ms_struct
1486 2006-06-11 Roger Sayle <roger@eyesopen.com>
1489 Revert incorrect fix for PR target/27158
1490 2006-05-08 Roger Sayle <roger@eyesopen.com>
1491 * reload.c (find_reloads_toplev): Only return the simplified SUBREG
1492 of a reg_equiv_constant if the result is a legitimate constant.
1494 2006-06-11 Roger Sayle <roger@eyesopen.com>
1497 * config/rs6000/rs6000.c (const_vector_elt_as_int): New function to
1498 extract a CONST_VECTOR element and interpret it as an integer.
1499 (vspltis_constant): Use const_vector_elt_as_int instead of the
1500 macro CONST_VECTOR_ELT in order to handle FP vector modes.
1501 * config/rs6000/predicates.md (easy_vector_const): Consider
1502 floating point ALTIVEC_VECTOR_MODEs via easy_altivec_constant.
1504 2006-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
1507 * stor-layout.c (update_alignment_for_field): Don't add extra
1508 alignment for packed non-bitfield fields in ms_bitfield_layout_p
1511 2006-06-09 Ralf Corsepius <ralf.corsepius@rtems.org>
1513 * config/mips/t-rtems: Add EL/EB multilib variants.
1515 2006-06-09 Mike Stump <mrs@apple.com>
1517 * c-typeck.c (c_begin_vm_scope): Fix file_scope processing.
1519 2006-06-09 David Daney <ddaney@avtrex.com>
1521 * doc/install.texi: Add binutils version recommendation for mips-*-*.
1523 2006-06-09 Andreas Krebbel <krebbel1@de.ibm.com>
1525 * reload.c (find_reloads): Unset force_reload for 'X' constraint.
1527 2006-06-09 Richard Guenther <rguenther@suse.de>
1529 PR tree-optimization/26998
1530 * tree-vrp.c (extract_range_from_unary_expr): For NEGATE_EXPR
1531 of signed types, only TYPE_MIN_VALUE is special, but for both,
1532 minimum and maximum value. Likewise VR_ANTI_RANGE is special
1533 in this case, as is -fwrapv.
1535 2006-06-08 Mike Stump <mrs@apple.com>
1538 * config/darwin.c (darwin_asm_output_anchor): Disable
1539 -fsection-anchors on darwin for now.
1540 * config/darwin.h (TARGET_ASM_OUTPUT_ANCHOR): Likewise.
1541 * rs6000/rs6000.c (optimization_options): Likewise.
1543 2006-06-08 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1546 * config/i386/i386.c (classify_argument): Skip fields with invalid
1549 2006-06-08 Steven Bosscher <steven@gcc.gnu.org>
1551 * cse.c (flush_hash_table): Use VOIDmode to invalidate a REG.
1552 (cse_insn): Likewise for the stack_pointer_rtx.
1554 2006-06-08 Roger Sayle <roger@eyesopen.com>
1556 * tree-ssa-dom.c (record_conditions): Only record "unordered"
1557 conditions from floating point comparisons.
1559 2006-06-08 Paolo Bonzini <bonzini@gnu.org>
1562 * expmed.c (struct alg_hash_entry): Fix type of field T
1563 to match synth_mult argument.
1564 (NUM_ALG_HASH_ENTRIES): Make it bigger for 64-bit HOST_WIDE_INT.
1566 2006-06-08 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1569 * haifa-sched.c (unlink_other_notes, unlink_line_notes): Update basic
1572 2006-06-08 Richard Guenther <rguenther@suse.de>
1575 * fold-const.c (negate_expr_p): We can negate BIT_NOT_EXPR
1576 only, if overflow is defined and not trapping.
1577 (negate_expr): Likewise.
1579 2006-06-07 Zdenek Dvorak <dvorakz@suse.cz>
1581 PR tree-optimization/27872
1582 * tree-ssa-loop-manip.c (tree_unroll_loop): Set EDGE_IRREDUCIBLE_LOOP
1583 flag on the new exit edge of the unrolled loop.
1585 2006-06-07 Zdenek Dvorak <dvorakz@suse.cz>
1587 PR rtl-optimization/26449
1588 * loop-invariant.c (move_invariant_reg): Fail if force_operand fails.
1590 2006-06-07 Andrew MacLeod <amacleod@redhat.com>
1593 * tree-dfa.c (referenced_vars_dup_list): New. List of duplicate
1594 referenced_variables with matching DECL_UID's.
1595 (find_referenced_vars): Make sure duplicate list is empty to start.
1596 (referenced_var_p): Remove.
1597 (referenced_var_check_and_insert): Renamed from referenced_var_insert.
1598 Check if var is in the list, and add if needed. Update the duplicate
1599 list if a different var is in the list with the same DECL_UID.
1600 (add_referenced_var): Call routine to check and insert.
1601 * tree-ssa.c (delete_tree_ssa): Clear var_ann's on duplicates.
1602 * tree-flow.h (referenced_vars_dup_list): External declaration.
1604 2006-06-07 Fred Fish <fnf@specifix.com>
1606 * config/mips/t-elf (MULTILIB_MATCHES): Combine two entries
1609 2006-06-07 Paolo Bonzini <bonzini@gnu.org>
1612 * reg-stack.c (subst_stack_regs_pat): Reorder resetting of
1613 the imaginary and real parts of a clobbered register.
1614 Emit insn to set the imaginary part.
1616 2006-06-06 Peter Lemieszewski <lemie@us.ibm.com>
1618 * config/s390/t-tpf (LIB2ADDEH): Include unwind-dw2-fde-glibc.c
1619 in lieu of unwind-dw2-fde.c.
1621 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1623 * config/i386/mingw32.h (GOMP_SELF_SPECS): Define.
1625 2006-06-06 Ulrich Weigand <uweigand@de.ibm.com>
1628 * config/rs6000/altivec.md (UNSPEC_VSLW): Remove.
1629 ("altivec_vspltisw_v4sf", "altivec_vslw_v4sf"): Remove.
1630 ("mulv4sf3", "absv4sf3", "negv4sf3"): Adapt users to use
1631 V4SImode temporaries and operations instead.
1633 2006-06-06 Joseph S. Myers <joseph@codesourcery.com>
1635 * config/mips/t-linux64 (tp-bit.c): Append to tp-bit.c, not
1638 2006-06-06 Mike Stump <mrs@apple.com>
1640 * Makefile.in: Rename to htmldir to build_htmldir to avoid
1641 installing during build.
1643 2006-06-06 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1645 * params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): Change default
1647 * doc/invoke.texi (max-sched-extend-regions-iters): Document.
1648 * config/ia64/ia64.c (params.h): New header.
1649 (ia64_optimization_options): New function to adjust parameters.
1650 * config/ia64/ia64-protos.h (ia64_optimization_options): New prototype.
1651 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): New macro.
1652 * config/ia64/t-ia64 (ia64.o): Add dependence from params.h .
1654 2006-06-05 Kazu Hirata <kazu@codesourcery.com>
1656 * stor-layout.c (debug_rli): Fix a typo in a debug message.
1658 2006-06-05 Steve Ellcey <sje@cup.hp.com>
1661 * config/ia64/ia64.c (ia64_select_rtx_section): Check TARGET_NO_SDATA.
1663 2006-06-05 Dorit Nuzman <dorit@il.ibm.com>
1664 Victor Kaplansky <victork@il.ibm.com>
1666 PR tree-optimization/26360
1667 * tree-vectorizer.c (destroy_loop_vec_info): Remove (dead) pattern
1670 2006-06-04 Roger Sayle <roger@eyesopen.com>
1671 Andrew Pinski <pinskia@physics.uc.edu>
1674 * c-common.c (c_common_truthvalue_conversion): Explicitly check
1675 for LABEL_DECL before calling DECL_WEAK.
1678 * c-typeck.c (build_binary_op): Likewise, explicitly check for
1679 LABEL_DECL and PARM_DECL.
1681 2006-06-05 Joseph S. Myers <joseph@codesourcery.com>
1685 * c-decl.c (grokdeclarator): Disallow variably modified types at
1686 file scope. Avoid marking shared array type of constant size as
1689 2006-06-04 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1692 * c-common.c (fold_offsetof_1): Handle static members.
1694 2006-06-04 Eric Christopher <echristo@apple.com>
1696 * stor-layout.c (start_record_layout): Initialize remaining_in_alignment.
1697 (debug_rli): Output value for remaining_in_alignment.
1698 (update_alignment_for_field): Unconditionalize
1699 ms_bitfield_layout_p code. Handle non-bitfield fields. Remove
1700 extra alignment code.
1701 (place_field): Don't realign if ms_bitfield_layout_p. Unconditionalize
1702 ms_bitfield_layout_p code. Rewrite handling of structure fields.
1703 * tree.h (record_layout_info_s): Remove prev_packed.
1704 * doc/extend.texi (ms_struct): Add documentation of format.
1706 2006-06-04 Mark Shinwell <shinwell@codesourcery.com>
1708 * tree.h: Declare folding_initializer.
1709 * builtins.c (fold_builtin_constant_p): Give definite answer
1710 if folding inside an initializer.
1711 * fold-const.c: Define folding_initializer.
1712 (START_FOLD_INIT): Save and then set folding_initializer.
1713 (END_FOLD_INIT): Restore folding_initializer.
1715 2006-06-04 Richard Guenther <rguenther@suse.de>
1717 PR tree-optimization/27039
1718 * fold-const.c (fold_comparison): Handle pointer comparison
1719 again for all comparison codes. Compare offsets in signed
1721 (fold_binary): Move code from here.
1723 2006-06-03 Roger Sayle <roger@eyesopen.com>
1726 * config/i386/i386.c (construct_container): Split static issued_error
1727 flag into issued_sse_arg_error, issued_sse_ret_error and
1728 issued_x87_ret_error. Issue a daignostic if the x86-64 ABI
1729 requires the use of x87 registers and the user explicitly
1730 specified the -mno-80387 command line option.
1732 2006-06-02 Geoffrey Keating <geoffk@apple.com>
1734 * config/rs6000/host-darwin.c (sigaltstack): Protect prototype with
1735 HAVE_DECL_SIGALTSTACK.
1737 (segv_handler): Use MC_FLD.
1738 * configure.ac: Check for a sigaltstack declaration.
1739 Compute HAS_MCONTEXT_T_UNDERSCORES on Darwin.
1740 * configure: Regenerate.
1741 * config.in: Regenerate.
1743 2006-06-03 J"orn Rennecke <joern.rennecke@st.com>
1746 * Makefile.in (stmp-fixinc): Fix typo.
1748 2006-06-02 Roger Sayle <roger@eyesopen.com>
1750 * fold-const.c (fold_unary) <CONJ_EXPR>: Ensure folded expressions
1751 are type correct. Clean-up.
1752 <REALPART_EXPR>: Likewise. Optimize creal(~z) as creal(z).
1753 <IMAGPART_EXPR>: Likewise. Optimize cimag(~z) as -cimag(z).
1755 2006-06-01 DJ Delorie <dj@redhat.com>
1757 * config/v850/v850.h (ASM_OUTPUT_ADDR_DIFF_ELT): Disabled the
1758 shift, as we've disabled the "switch" insn that needs it.
1760 2006-06-01 Per Bothner <bothner@bothner.com>
1762 Suppress extra '#1 <built-in> or '#1 <command line>' on -dD output.
1763 * c-opts.c (finish_options): Use internal line 0 for <command-line>.
1764 * c-ppoutput.c (cb_define): Don't increment line 0.
1766 2006-06-01 Pete Steinmetz <steinmtz@us.ibm.com>
1768 * doc/invoke.texi: Add cpu_type power6.
1769 * config.gcc: Add cpu_type power6.
1770 * config/rs6000/rs6000.c (rs6000_override_options): Alias power6
1771 to power5+ with Altivec.
1772 * config/rs6000/aix52.h (ASM_CPU_SPEC): Add power6.
1773 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add power6.
1775 2006-05-30 Anatoly Sokolov <aesok@post.ru>
1777 * config/avr/avr.h (SET_ASM_OP): Define.
1779 2006-06-01 Kazu Hirata <kazu@codesourcery.com>
1781 * config/bfin/bfin.c: Fix comment typos.
1783 2006-06-01 Paolo Bonzini <bonzini@gnu.org>
1786 * doc/install.texi: Document --enable-bootstrap and
1787 --disable-bootstrap.
1789 2006-06-01 Paolo Bonzini <bonzini@gnu.org>
1791 * doc/install.texi: Document that InfoZIP can replace jar.
1793 2006-05-31 Roger Sayle <roger@eyesopen.com>
1795 * config/i386/i386.c (ix86_expand_fp_absneg_operator): When SSE
1796 isn't available, directly generate the simpler x87 patterns without
1797 the (use (const_int 0)).
1798 * config/i386/i386.md (*negsf2_1): Enable pre-reload if the SSE
1799 implementation isn't available.
1800 (*negdf2_1): Likewise.
1801 (*negxf2_1): XF mode negation is always done using the x87.
1802 (*abssf2_1, *absdf2_1, *absxf2_1): Likewise^3 for fabs.
1804 2006-05-31 Roger Sayle <roger@eyesopen.com>
1806 * builtins.c (fold_builtin_cabs): Delete prototype. Require an
1807 additional FNDECL argument. Optimize cabs(-z) and cabs(~z) as
1809 (fold_builtin_decl) <BUILT_IN_CABS>: Update fold_builtin_cabs call.
1811 2006-05-31 Jie Zhang <jie.zhang@analog.com>
1813 * config/bfin/bfin-protos.h (bfin_hardware_loop): Declare.
1814 * config/bfin/bfin.c (basic-block.h): Include.
1815 (struct machine_function): New.
1816 (bfin_init_machine_status): New.
1817 (override_options): Initialize init_machine_status.
1818 (bfin_hardware_loop): New.
1819 (MAX_LOOP_DEPTH, MAX_LOOP_LENGTH): Define.
1820 (DEF_VEC_P (loop_info)): New.
1821 (DEF_VEC_ALLOC_P (loop_info,heap)): New.
1822 (struct loop_info): New.
1823 (loop_info): New typedef.
1824 (struct loop_work): New.
1825 (loop_work): New typedef.
1826 (DEF_VEC_O (loop_work)): New.
1827 (DEF_VEC_ALLOC_O (loop_work,heap)): New.
1828 (bfin_dump_loops): New.
1829 (bfin_bb_in_loop): New.
1830 (bfin_scan_loop): New.
1831 (bfin_optimize_loop): New.
1832 (bfin_reorg_loops): New.
1833 (bfin_reorg): Use bfin_reorg_loops.
1834 * config/bfin/bfin.h (FIRST_PSEUDO_REGISTER): Adjust for adding
1836 (I_REGNO_P): Simplify.
1837 (DP_REGNO_P, DPREG_P): New macros.
1838 (REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
1839 REG_ALLOC_ORDER): Add LT0, LT1, LC0, LC1, LB0, LB1.
1840 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
1841 Add LT_REGS, LC_REGS, LB_REGS.
1842 (REG_CLASS_FROM_LETTER): Add 't' for LT_REGS, 'k' for LC_REGS,
1844 (REGNO_REG_CLASS): Deal with loop registers.
1845 * config/bfin/bfin.md: Add comment for 't', 'k', 'l' constraint
1847 (REG_LT0, REG_LT1, REG_LC0, REG_LC1, REG_LB0, REG_LB1):
1848 New constants for loop registers.
1849 (UNSPEC_LSETUP_END): New.
1850 (seq_insns): New define_attr. Set it for appropriate insns.
1851 (movsi_insn): Add alternatives for move from/to
1852 loop count registers.
1853 (doloop_end): New define_expand.
1854 (loop_end): New define_insn.
1855 (define_split for bad doloop_end): New.
1856 (lsetup_with_autoinit): New define_insn.
1857 (lsetup_without_autoinit): New define_insn.
1858 (rep_movsi, rep_movhi): Clobber LT1, LC1, LB1.
1859 * config/bfin/predicates.md (lc_register_operand): New.
1860 (lt_register_operand): New.
1861 (lb_register_operand): New.
1862 (nondp_register_operand): New.
1863 (nondp_reg_or_memory_operand): New.
1864 * doc/md.texi: Document Blackfin new 't', 'k', 'l' constraint letters.
1866 2006-05-31 Jie Zhang <jie.zhang@analog.com>
1868 * config/bfin/bfin.c (bfin_delegitimize_address): New.
1869 (TARGET_DELEGITIMIZE_ADDRESS): Define.
1871 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
1873 * Makefile.in (CATALOGS): Add po/ prefix.
1874 * configure: Regenerated.
1876 2006-05-31 Richard Earnshaw <richard.earnshaw@arm.com>
1879 * arm.c (arm_print_operand case 'S'): Validate that the operand is
1880 a shift operand before calling shift_op. Avoid redundant call of
1883 2006-05-30 Naveen.H.S <naveenh@kpitcummins.com>
1884 DJ Delorie <dj@redhat.com>
1886 * config/m32c/m32c.c (m32c_expand_insv): Check that the value
1887 we're inserting is a singlt-bit constant.
1889 2006-05-30 Roger Sayle <roger@eyesopen.com>
1891 * simplify-rtx.c (simplify_binary_operation_1) <LSHIFTRT>: Cast
1892 width to HOST_WIDE_INT to avoid comparison warnings on some targets.
1894 2006-05-30 Roger Sayle <roger@eyesopen.com>
1896 PR tree-optimization/23452
1897 * fold-const.c (fold_mult_zconjz): New subroutine of fold_binary,
1898 to optimize z * conj(z) as realpart(z)^2 + imagpart(z)^2.
1899 (fold_binary) <MULT_EXPR>: Call fold_mult_zconjz for integral
1900 complex values and with -ffast-math for FP complex values.
1902 2006-05-30 Kazu Hirata <kazu@codesourcery.com>
1904 * c-common.h: Remove the prototype for yyparse.
1905 * rtl.h: Remove the prototype for init_loop.
1907 2006-05-30 Andreas Krebbel <krebbel1@de.ibm.com>
1909 * cse.c (validate_canon_reg, cse_insn): Don't change insns without
1912 2006-05-30 Roger Sayle <roger@eyesopen.com>
1914 * simplify-rtx.c (simplify_binary_operation): Unfactor the shift
1916 <LSHIFTRT>: Optimize (lshiftrt (clz X) C) as (eq X 0) where C is
1917 log2(GET_MODE_BITSIZE(X)) on targets with the appropriate semantics.
1919 2006-05-30 Dirk Mueller <dmueller@suse.de>
1922 * c-common.c (convert_and_check): Only track TREE_CONSTANT_OVERFLOW
1923 for CONSTANT_CLASS_P expresisons.
1925 2006-05-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1928 * c-typeck.c (c_expr_sizeof_type): Handle invalid types.
1930 2006-05-30 Zdenek Dvorak <dvorakz@suse.cz>
1932 PR tree-optimization/27779
1933 * tree-data-ref.c (analyze_siv_subscript_cst_affine): Use
1934 initial_condition instead of CHREC_LEFT.
1936 2006-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
1938 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Fix type of begin_label.
1939 * config/m32r/initfini.c (__do_global_dtors, __do_global_ctors):
1940 Make prototypes ISO C90.
1942 2006-05-30 Mircea Namolaru <namolaru@il.ibm.com>
1943 Leehod Baruch <leehod.baruch@weizmann.ac.il>
1945 * see.c (see_analyze_one_def): Correct check.
1946 (see_get_extension_data): Check if extension is parallel.
1947 (see_get_extension_reg): Likewise.
1949 2006-05-30 Uros Bizjak <uros@kss-loka.si>
1952 * config/i386/i386.c (ix86_expand_int_vcond): Force cop0
1953 into register for (code == GTU).
1955 2006-05-29 Roger Sayle <roger@eyesopen.com>
1957 PR tree-optimization/24964
1958 * simplify-rtx.c (simplify_binary_operation_1): Add function comment.
1959 <MULT>: Minor clean-up. Don't convert x*-1.0 into -x if we honor
1960 signaling NaNs. Optimize -x*-x as x*x for all float modes, and
1961 abs(x)*abs(x) as x*x for scalar floating point modes.
1963 2006-05-29 Sebastian Pop <pop@cri.ensmp.fr>
1966 * lambda-code.c (perfect_nestify): Don't copy statements
1967 in the inner loop: move them to the inner loop header.
1969 2006-05-29 Diego Novillo <dnovillo@redhat.com>
1972 * c-tree.texi: Document OpenMP directives and clauses.
1974 2006-05-29 Kazu Hirata <kazu@codesourcery.com>
1976 * varasm.c (globalize_decl): Fix indentation.
1978 2006-05-29 Diego Novillo <dnovillo@redhat.com>
1981 * doc/passes.texi: Add documentation for pass_vrp, pass_ipa_pta,
1982 pass_fre, pass_store_ccp, pass_copy_prop,
1983 pass_store_copy_prop, pass_merge_phi, pass_nrv,
1984 pass_return_slot, pass_object_size, pass_lim,
1985 pass_linear_transform, pass_empty_loop, pass_complete_unroll,
1986 pass_loop_prefetch and pass_stdarg.
1988 2005-05-29 Bernd Schmidt <bernd.schmidt@analog.com>
1990 * config/bfin/bfin.opt (mfdpic): New option.
1991 * config/bfin/t-bfin-elf (EXTRA_PARTS): Add crtbeginS.o and crtendS.o.
1992 (EXTRA_MULTILIB_PARTS): Likewise.
1993 (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS): Use -fpic.
1994 (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Build one extra -mfdpic
1996 * config/bfin/elf.h (STARTFILE_SPEC): Don't link in crt0.o if -shared.
1997 (CRT_CALL_STATIC_FUNCTION): New.
1998 * config/bfin/uclinux.h (STARTFILE_SPEC): Don't link in crt0.o if
2000 (CRT_CALL_STATIC_FUNCTION): New.
2001 * config/bfin/bfin.c (legitimize_pic_address): Now static. Handle
2003 (n_pregs_to_save): PIC register doesn't need to be saved with FD-PIC.
2004 (print_operand): Handle UNSPEC_MOVE_FDPIC and UNSPEC_FUNCDESC_GOT17M4.
2005 (initialize_trampoline): Changed to handle FD-PIC code generation.
2006 (expand_move): If TARGET_FDPIC, use emit_pic_move as needed.
2007 (bfin_expand_call): Generate FD-PIC calls if TARGET_FDPIC.
2008 (override_options): Disallow -mid-shared-library -mfdpic combination.
2009 Can't do unaligned ops if FD-PIC.
2010 Turn off flag_pic if trying to generate non-id-shared-library
2011 non-fdpic code, since it's not supported.
2012 (bfin_assemble_integer): New function.
2013 (TARGET_ASM_INTEGER): Define.
2014 * config/bfin/crti.s (__init, __fini): Save P3 on the stack if
2016 * config/bfin/crtn.s: Restore them.
2017 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __BFIN_FDPIC__
2019 (DRIVER_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
2020 LINK_GCC_C_SEQUENCE_SPEC, ASM_SPEC, LINK_SPEC): New macros.
2021 (FDPIC_FPTR_REGNO, FDPIC_REGNO, OUR_FDPIC_REG): New macros.
2022 (TRAMPOLINE_SIZE, TRAMPOLINE_TEMPLATE): Adjust for FD-PIC.
2023 (CONDITIONAL_REGISTER_USAGE): If TARGET_FDPIC, FDPIC_REGNO is
2025 (enum reg_class, REG_CLASS_CONTENTS, REG_CLASS_NAMES): Add
2026 FDPIC_REGS and FDPIC_FPTR_REGS.
2027 (REG_CLASS_FROM_LETTER): Use 'Z' and 'Y' for them.
2028 * config/bfin/bfin.md (UNSPEC_MOVE_FDPIC, UNSPEC_FUNCDESC_GOT17M4,
2029 UNSPEC_VOLATILE_LOAD_FUNCDESC): New constants.
2030 (load_funcdescsi): New pattern.
2031 (call_symbol_fdpic, sibcall_symbol_fdpic, call_value_symbol_fdpic,
2032 sibcall_value_symbol_fdpic, call_insn_fdpic, sibcall_insn_fdpic,
2033 call_value_insn_fdpic, sibcall_value_insn_fdpic): New patterns.
2035 2006-05-29 Kazu Hirata <kazu@codesourcery.com>
2037 * gcse.c, rtlanal.c: Remove obsolete comments associated with
2040 * config/bfin/bfin.h (PARM_BOUNDRY, STACK_BOUNDRY): Remove.
2042 * tree-flow.h: Remove the prototype for add_type_alias.
2043 * tree-ssa-alias.c (add_type_alias): Remove.
2045 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
2047 * cfgcleanup.c, cfgexpand.c, cgraphunit.c, config/arm/arm.c,
2048 config/fr30/fr30.md, config/i386/i386-interix.h,
2049 config/i386/i386.c, config/i386/i386.md, config/sh/superh.h,
2050 config/sh/superh64.h, config/v850/v850.c, df-core.c,
2051 df-problems.c, df.h, except.c, final.c, haifa-sched.c,
2052 lambda-code.c, libgcc2.h, omp-low.c, optabs.c, predict.c,
2053 reload.c, tree-flow.h, tree-outof-ssa.c, tree-ssa-dce.c,
2054 tree-ssa-pre.c, tree-vect-transform.c: Fix comment typos.
2055 Follow spelling conventions.
2056 * doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix typos.
2057 Follow spelling conventions.
2059 2006-05-27 Richard Guenther <rguenther@suse.de>
2062 * fold-const.c (fold_plusminus_mult_expr): Use fold_convert
2063 to produce a constant of value 1 of generic type.
2065 2006-05-27 Dirk Mueller <dmueller@suse.de>
2067 * cgraphunit.c (decide_is_function_needed): Fix wrong
2070 2006-05-26 Ulrich Weigand <uweigand@de.ibm.com>
2072 PR rtl-optimization/27661
2073 * reload.c (find_reloads): When reloading a VOIDmode constant
2074 as address due to an EXTRA_MEMORY_CONSTRAINT or 'o' constraint,
2075 use Pmode as mode of the reload register.
2077 2006-05-26 Eric Botcazou <ebotcazou@adacore.com>
2079 * doc/invoke.texi (Optimize Options): Document that -funit-at-a-time
2080 is enabled at -O and above.
2082 2006-05-26 Steven Bosscher <steven@gcc.gnu.org>
2085 * config/alpha/alpha.c (alpha_does_function_need_gp): Skip jump
2088 2006-05-25 Mark Mitchell <mark@codesourcery.com>
2091 * gimplify.c (gimplify_decl_expr): Do not call gimple_add_tmp_var
2092 for anonymous variables explicitly declared by front ends.
2094 2006-05-25 Eric Botcazou <ebotcazou@adacore.com>
2096 * tree-ssa-structalias.h (PTR_IS_REF_ALL): New macro.
2097 (struct alias_info): Add new field ref_all_symbol_mem_tag.
2098 * tree-ssa-alias.c (compute_may_aliases): If the program contains
2099 ref-all pointers, run a finalization pass for them.
2100 (compute_flow_insensitive_aliasing): Skip ref-all pointers.
2101 (finalize_ref_all_pointers): New function.
2102 (is_escape_site): Return ESCAPE_BAD_CAST for conversion from a
2103 regular pointer type to a ref-all pointer type.
2104 (get_tmt_for): Return the special memory tag for ref-all pointers.
2106 2006-05-25 Richard Guenther <rguenther@suse.de>
2109 * fold-const.c (fold_binary): Do not look at the stripped
2110 op0 for (a OP c1) OP c2 to a OP (c1+c2) shift optimization.
2112 2006-05-25 Eric Botcazou <ebotcazou@adacore.com>
2114 * tree-vrp.c (extract_range_from_assert): Set the range to VARYING
2115 for LT and GT if the computed range is effectively empty.
2117 2006-05-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2120 * pa/pa-modes.def: Use mips_single_format, mips_double_format and
2121 mips_quad_format formats instead of ieee_single_format,
2122 ieee_double_format and ieee_quad_format formats, respectively.
2124 2006-05-24 Zdenek Dvorak <dvorakz@suse.cz>
2126 PR tree-optimization/27639
2127 PR tree-optimization/26719
2128 * tree-vrp.c (adjust_range_with_scev): Use scev_direction and adjust
2129 call to scev_probably_wraps_p.
2130 * tree-ssa-loop-niter.c (compare_trees, convert_step_widening,
2131 used_in_pointer_arithmetic_p, convert_step): Removed.
2132 (nowrap_type_p): New function.
2133 (scev_probably_wraps_p): Rewritten.
2134 * tree-scalar-evolution.c (instantiate_parameters_1): Do not call
2135 chrec_convert if chrec_convert_aggressive might have been used.
2136 * tree-chrec.c (convert_affine_scev, chrec_convert_1,
2137 scev_direction): New functions.
2138 (chrec_convert): Changed to a wrapper over chrec_convert_1.
2139 * tree-ssa-loop-ivopts.c (idx_find_step): Use convert_affine_scev
2140 instead of convert_step.
2141 * tree-flow.h (scev_probably_wraps_p): Declaration changed.
2142 (convert_step): Declaration removed.
2143 (convert_affine_scev, nowrap_type_p, scev_direction): Declare.
2145 2006-05-23 Kenneth Zadeck <zadeck@naturalbridge.com>
2147 * df-core.c: Added to header comments.
2148 * df.h (df_ru_bb_info, df_rd_bb_info, df_lr_bb_info,
2149 df_ur_bb_info, df_urec_bb_info): Added comments.
2150 * df-problems (df_ref_bitmap, ru, rd, lr, ur,
2151 urec, ri problems): Fixed header comments.
2152 (df_ru_transfer_function): Fixed in-out set dyslexia when copying
2153 code from df_rd_transfer_function.
2155 2006-05-23 Richard Sandiford <richard@codesourcery.com>
2157 * libgcc2.c (LIBGCC2_MAX_UNITS_PER_WORD): New macro.
2158 (LIBGCC2_UNITS_PER_WORD): Use LIBGCC2_MAX_UNITS_PER_WORD rather than
2159 MIN_UNITS_PER_WORD to set the default. Also use it in the guard.
2161 2006-05-23 Joseph Myers <joseph@codesourcery.com>
2163 * expr.c (undefined_operand_subword_p): New.
2164 (emit_move_multi_word): Do not generate move from undefined bits
2165 of a paradoxical subreg.
2167 2006-05-23 Richard Sandiford <richard@codesourcery.com>
2169 PR rtl-optimization/27736
2170 * combine.c (replaced_rhs_value): New variable.
2171 (combine_instructions): Set it.
2172 (distribute_notes): When distributing a note in replaced_rhs_insn,
2173 check whether the value was used in replaced_rhs_value.
2175 2006-05-23 Andrew MacLeod <amacleod@redhat.com>
2178 * tree-ssa-loop-im.c (determine_invariantness_stmt): Use
2179 add_referenced_var instead of add_referenced_tmp_var.
2180 * tree-complex.c (create_one_component_var): Use add_referenced_var.
2181 * tree-ssa-loop-manip.c (create_iv, tree_unroll_loop): Use
2183 * tree-tailcall.c (adjust_accumulator_values, adjust_return_value,
2184 tree_optimize_tail_calls_1): Use add_referenced_var.
2185 * tree-ssa-loop-ivopts.c (create_new_iv): Use add_referenced_var.
2186 * tree-ssa-alias.c (create_memory_tag, create_global_var, create_sft):
2187 Use add_referenced_var.
2188 * tree-if-conv.c (ifc_temp_var): Use add_referenced_var.
2189 * gimplify.c (force_gimple_operand): Use add_referenced_var.
2190 * tree-ssa-phiopt.c (conditional_replacement, abs_replacement):
2191 Use add_referenced_var.
2192 * tree-dfa.c (struct walk_state): Remove.
2193 (find_referenced_vars): Remove walk state and vars_found hash table.
2194 (make_rename_temp): Use add_referenced_var.
2195 (find_vars_r): Pass less parameters to add_referenced_var.
2196 (referenced_var_p): New. Is var in referenced_var hash table.
2197 (referenced_var_insert): Assert var isn't already in hash table.
2198 (add_referenced_var): Don't need walk_state parameter. Add var if it
2199 isn't already in the hash table.
2200 (add_referenced_tmp_var): Remove.
2201 (find_new_referenced_vars_1): Use add_referenced_var.
2202 * tree-ssa-pre.c (create_expression_by_pieces,
2203 insert_into_preds_of_block, insert_extra_phis, realify_fake_stores):
2204 Use add_referenced_var.
2205 * tree-vect-patterns.c (vect_pattern_recog_1): Use add_referenced_var.
2206 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
2207 lambda_loopnest_to_gcc_loopnest, perfect_nestify): Use
2209 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
2210 vect_create_data_ref_ptr, vect_create_destination_var,
2211 vect_init_vector, vect_build_loop_niters,
2212 vect_generate_tmps_on_preheader, vect_update_ivs_after_vectorizer,
2213 vect_gen_niters_for_prolog_loop, vect_create_cond_for_align_checks):
2214 Use add_referenced_var.
2215 * tree-outof-ssa.c (create_temp): Use add_referenced_var.
2216 * tree-flow.h (add_referenced_tmp_var): Remove prototype
2217 (add_referenced_var): Add prototype.
2218 * tree-ssa-structalias.c (get_constraint_for,
2219 intra_create_variable_infos): Use add_referenced_var.
2221 2006-05-23 Alexandre Oliva <aoliva@redhat.com>
2223 * simplify-rtx.c (simplify_subreg): Adjust REG_OFFSET for
2224 big-endian paradoxical subregs.
2225 * var-tracking.c (struct micro_operation_def): Document that,
2226 for modify micro operations, insn is the subsequent instruction.
2227 (var_reg_delete_and_set, var_mem_delete_and_set): Split into...
2228 (var_reg_set, var_mem_set): ... new functions.
2229 (add_stores): Record subsequent insn.
2230 (compute_bb_dataflow): Use new functions for MO_USE.
2231 (emit_notes_in_bb): Use new functions for MO_USE. Emit use
2232 notes after the insn, and modify notes before the insn known
2233 to be the subsequent one.
2234 (vt_initialize): Invert sorting of MO_CLOBBERs and MO_SETs.
2236 2006-05-23 Kazu Hirata <kazu@codesourcery.com>
2239 * config/i386/i386.c (ix86_expand_builtin): Use
2240 gen_sse3_monitor64 for TARGET_64BIT.
2242 2006-05-22 Kenneth Zadeck <zadeck@naturalbridge.com>
2244 PR rtl-optimization/26375
2245 PR rtl-optimization/26855
2246 * df-problems (df_ru_bb_local_compute_process_def): Removed update
2248 (df_ru_bb_local_compute): Reversed statements and removed bogus
2249 comment explaining why they should be in wrong order.
2250 (df_ru_dump, df_rd_dump): Enhanced debug info.
2251 * modulo-sched.c (sms_schedule, tree_opt_pass pass_sms): Enhanced
2253 * ddg.c (add_deps_for_def): Converted use of reaching defs to
2254 reaching uses and fixed space problem.
2256 2006-05-23 Jan Hubicka <jh@suse.cz>
2258 * cgraphunit.c (decide_is_function_needed): Also nested functions
2259 and functions declared inline can be optimized out at -O0.
2261 2006-05-22 Gerald Pfeifer <gerald@pfeifer.com>
2263 * doc/install.texi (Configuration): Remove reference to CrossGCC
2267 2006-05-22 Kazu Hirata <kazu@codesourcery.com>
2270 * config/i386/i386.c (ix86_expand_branch): Jump to simple if
2271 ix86_compare_emitted is non-NULL.
2273 2006-05-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2276 * stmt.c (expand_asm_operands): Skip asm statement with erroneous
2279 2006-05-22 Richard Sandiford <richard@codesourcery.com>
2281 PR rtl-optimization/25514
2282 * combine.c (replaced_rhs_insn): New variable.
2283 (combine_instructions): Set replaced_rhs_insn when trying to replace
2284 a SET_SRC with a REG_EQUAL note.
2285 (distribute_notes): Use replaced_rhs_insn when determining the live
2286 range of a REG_DEAD register.
2288 2006-18-05 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
2289 Anatoly Sokolov <aesok@post.ru>
2291 * config/avr/avr.c (avr_mcu_types): Add support for attiny261,
2292 attiny461, attiny861, attiny25, attiny45, attiny85, attiny24,
2293 attiny44, attiny84, at90pwm2, at90pwm3, atmega165p, atmega169p,
2294 atmega164p, atmega324p, atmega644p, atmega644, atmega329,
2295 atmega3290, atmega649, atmega6490, atmega406, atmega640,
2296 atmega1280, atmega1281, at90can32, at90can64, at90usb646,
2297 at90usb647, at90usb1286 and at90usb1287 devices.
2298 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
2299 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
2301 2006-05-22 Richard Sandiford <richard@codesourcery.com>
2303 * mklibgcc.in (lib2funcs): Remove _floatdidf from initial assignment.
2305 2006-05-22 Richard Guenther <rguenther@suse.de>
2308 2006-01-31 Richard Guenther <rguenther@suse.de>
2309 Paolo Bonzini <bonzini@gnu.org>
2311 * doc/install.texi (--disable-libgcc-math): Document.
2313 2006-05-22 Richard Guenther <rguenther@suse.de>
2316 2006-01-31 Richard Guenther <rguenther@suse.de>
2318 * doc/invoke.texi (-msselibm): Document.
2319 * target.h (expand_library_builtin): New target hook.
2320 * builtins.c (expand_builtin): Use expand_library_builtin.
2321 (default_expand_library_builtin): New function.
2322 * gcc.c (LINK_GCC_MATH_SPEC): Define.
2323 (LINK_COMMAND_SPEC): Handle %(link_gcc_math).
2324 (link_gcc_math_spec): Declare.
2325 (static_specs): Add link_gcc_math_spec.
2326 * expr.h (default_expand_library_builtin): Declare.
2327 * target-def.h (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
2328 (TARGET_INITIALIZER): Add TARGET_EXPAND_LIBRARY_BUILTIN.
2329 * config/i386/i386.h: Provide LINK_GCC_MATH_SPEC.
2330 * config/i386/i386.opt (msselibm): New target option.
2331 * config/i386/i386.c (ix86_builtin_function_variants): New array.
2332 (ix86_init_sse_abi_builtins): New function.
2333 (ix86_expand_library_builtin): Likewise.
2334 (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
2335 (override_options): Handle error conditions wrt -msselibm.
2336 (ix86_builtins): Add function codes for SSE2 ABI builtins.
2337 (ix86_init_builtins): Call ix86_init_sse_abi_builtins.
2338 * doc/extend.texi (__builtin_sse2_*): Document new target specific
2341 2006-05-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2344 * c-common.c (self_promoting_args_p): Skip erroneous args.
2347 * c-decl.c (finish_struct): Skip erroneous fields.
2349 2006-05-22 Nick Clifton <nickc@redhat.com>
2351 * config/cris/cris.opt (march): Remove VarExists attribute.
2352 (max-stackframe=): Likewise.
2354 2006-05-22 Kazu Hirata <kazu@codesourcery.com>
2356 * doc/rtl.texi: Fix a typo.
2357 * see.c: Fix comment typos.
2359 * tree-ssa-structalias.h (alias_info): Remove num_references.
2361 2006-05-21 Mike Stump <mrs@apple.com>
2363 * config/darwin-c.c (BAD): Conditionalize on OPT_Wpragmas.
2365 (darwin_pragma_options): Use BAD instead.
2366 (darwin_pragma_unused): Likewise.
2367 (darwin_pragma_ms_struct): Likewise.
2369 2006-05-21 David Edelsohn <edelsohn@gnu.org>
2371 * config/rs6000/rs6000.md (floatsitf2): Remove constraints.
2373 2006-05-21 Kazu Hirata <kazu@codesourcery.com>
2375 PR rtl-optimization/27671
2376 * simplify-rtx.c (simplify_relational_operation_1): Fix
2377 simplifications of (eq/ne (xor x y) y) and
2378 (eq/ne (xor x y) x).
2380 PR tree-optimization/26622.
2381 * fold-const.c (fold_ternary) <COND_EXPR>: Call fold_convert
2384 2006-05-21 Bernhard Fischer <aldot@gcc.gnu.org>
2386 * tree-cfg.c: Prune whitespace.
2387 (debug_tree_cfg): Point to correct header containing the
2390 2006-05-21 Bernhard Fischer <aldot@gcc.gnu.org>
2393 * cgraphunit.c (verify_cgraph_node): Typo in error message.
2395 2006-05-20 Andrew Pinski <pinskia@physics.uc.edu>
2398 * cgraphunit.c (cgraph_optimize): Don't run ipa passes if error
2399 or sorry count is non zero.
2401 2006-05-20 Andreas Schwab <schwab@suse.de>
2403 * config/pa/pa-linux.h (STRING_ASM_OP): Prepend and append a tab.
2405 2006-05-19 Daniel Berlin <dberlin@dberlin.org>
2406 Kenneth Zadeck <zadeck@naturalbridge.com>
2408 PR rtl-optimization/26855
2410 * df-scan.c (mw_reg_pool, mw_link_pool): New allocation pools for
2412 (df_scan_alloc): Added code to properly handle multiword hard
2413 registers and add all_blocks parameter.
2414 (df_scan_free_internal, df_insn_refs_delete, df_ref_record): Added
2415 code to properly handle multiword hard registers.
2416 (df_rescan_blocks): Added code to remove deleted blocks from
2418 (df_ref_create_structure, df_ref_record): Added code to properly
2420 (df_ref_record_1): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER
2421 and set DF_REF_PARTIAL.
2422 (df_defs_record): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER.
2423 (df_uses_record): Added DF_REF_PARTIAL for subreg.
2424 (df_scan_add_problem): Added flags parameter.
2425 (df_ref_create_structure): Changed switching structure.
2426 (df_bb_refs_record): Fixed case where duplicate artificial refs
2427 were created. Changed location of flags.
2428 (df_record_entry_block_defs): Added code to make stack pointer
2429 live in entry block. Refined cases where frame pointer is needed.
2430 Changed location of flags.
2431 (df_record_exit_block_uses, df_insn_refs_record): Changed location of flags.
2432 (df_set_state): Removed function.
2433 (df_grow_reg_info, df_reg_chain_unlink, df_ref_remove,
2434 df_insn_create_insn_record, df_insn_refs_delete,
2435 df_ref_create_structure): Formatting changes.
2436 * df-core.c (df_mvs_dump, df_set_flags, df_clear_flags,
2437 df_delete_basic_block): New function.
2438 (df_init): Changed location of flags.
2439 (df_add_problem): Added flags parameter and the way flags are
2441 (df_insn_uid_debug, df_ref_debug, debug_df_defno, debug_df_ref,
2442 debug_df_chain): Improved debugging output.
2443 (df_insn_debug, df_insn_uid_debug): Added multiword reg support.
2444 (df_refs_chain_dump): Removed df parameter.
2445 (df_iterative_dataflow): Added consistency check.
2446 (df_prune_to_subcfg): Made public.
2447 (df_analyze_problem): Added blocks_to_init parameter and made
2449 (df_ref_record, df_bb_refs_record, df_mark_reg,
2450 df_record_exit_block_uses): Whitespace changes.
2451 (df_dump): Whitespace changes.
2452 * df.h: Some reordering to remove forward references.
2453 (df_ref_flags.DF_REF_MW_HARDREG, DF_REF_PARTIAL,
2454 DF_REF_MUST_CLOBBER, DF_REF_MAY_CLOBBER): New fields.
2455 (df_ref_flags.DF_REF_CLOBBER): Deleted field.
2456 (dataflow.flags): New field.
2457 (df.flag): Deleted field.
2458 (df_alloc_function): Added additional bitmap parameter.
2459 (df_dependent_problem_function): New type.
2460 (df_problem.changeable_flags): New field.
2461 (df_ref_flags.DF_REF_DIES_AFTER_THIS_USE, DF_SCAN_INITIAL,
2462 DF_SCAN_GLOBAL, DF_SCAN_POST_ALLOC, df_state): Removed.
2463 (df_mw_hardreg): New struct.
2464 (DF_INSN_UID_MWS): New macro.
2465 (df_refs_chain_dump, df_ref_debug, df_chain_dump): Removed df
2467 (df_add_problem, df_ru_add_problem, df_rd_add_problem,
2468 df_lr_add_problem, df_ur_add_problem, df_urec_add_problem,
2469 df_ri_add_problem, df_scan_add_problem): Added flags parameter.
2470 (df_set_state): Removed function.
2471 (df_set_flags, df_clear_flags, df_delete_basic_block) New functions.
2472 * df-problems.c (df_chain_dump): Removed df parameter.
2473 (df_ru_alloc, df_rd_alloc, df_lr_alloc, df_ur_alloc,
2474 df_urec_alloc, df_chain_alloc, df_ri_alloc): Added all blocks
2476 (df_ru_alloc, df_rd_alloc): Now resets all blocks.
2477 (df_rd_bb_local_compute_process_def, df_ur_bb_local_compute,
2478 df_chain_create_bb, df_create_unused_note, df_ri_bb_compute):
2479 Split DF_REF_CLOBBER into DF_REF_MAY_CLOBBER and
2480 DF_REF_MUST_CLOBBER cases.
2481 (df_ru_bb_local_compute_process_def,
2482 df_rd_bb_local_compute_process_def, df_lr_bb_local_compute,
2483 df_lr_bb_local_compute, df_ur_bb_local_compute,
2484 df_chain_create_bb): Made subreg aware.
2485 (df_ru_bb_local_compute, df_rd_bb_local_compute,
2486 df_lr_bb_local_compute, df_lr_bb_local_compute,
2487 df_chain_create_bb): Cleanup to use proper macros.
2488 (df_ur_local_finalize, df_urec_local_finalize): Removed unnecessary
2489 code to fixup bitvectors.
2490 (df_ri_alloc): Cleared lifetime.
2491 (df_ignore_stack_reg, df_kill_notes, df_set_notes_for_mw,
2492 df_create_unused_note): New function.
2493 (df_ri_bb_compute, df_ri_compute): Added code to create/update
2494 REG_DEAD and REG_UNUSED notes as well as register information.
2495 (df_ru_dump, df_rd_dump, df_lr_dump, df_ur_dump, df_urec_dump,
2496 df_chains_dump): Fixed crash if problem was never run.
2497 (df_ru_add_problem, df_rd_add_problem, df_lr_add_problem,
2498 df_ur_add_problem, df_urec_add_problem, df_chain_add_problem,
2499 df_ri_add_problem): Processes flags in uniform manner.
2500 (df_ru_alloc, df_ru_local_compute, df_ru_confluence_n, df_ru_free,
2501 df_ru_dump, df_rd_local_compute, df_rd_confluence_n, df_rd_free,
2502 df_rd_dump, df_urec_free_bb_info): Formatting changes.
2503 (df_ru_free_bb_info, df_ru_bb_local_compute, df_ru_dump,
2504 df_rd_free_bb_info, df_rd_bb_local_compute_process_def,
2505 df_rd_bb_local_compute, df_rd_dump, df_lr_free_bb_info,
2506 df_lr_bb_local_compute, df_lr_local_compute, df_ur_free_bb_info,
2507 df_ur_dump, df_urec_free_bb_info, df_urec_dump,
2508 df_chain_create_bb, df_ri_bb_compute): Whitespace changes.
2509 * modulo-sched.c (sms_schedule): Added flag parameter to calls.
2510 * see.c (see_initialize_data): Ditto.
2511 * final.c (rest_of_clean_state) Added regstack_completed.
2512 * rtl.h (regstack_completed): Ditto.
2513 * reg-stack.c (regstack_completed): Ditto.
2515 2006-05-19 Mike Stump <mrs@apple.com>
2517 * c-tree.h (default_conversion): Remove.
2518 * c-common.h (default_conversion): Add.
2520 2006-05-19 Zdenek Dvorak <dvorakz@suse.cz>
2522 * tree-vrp.c (valid_value_p): New function.
2523 (adjust_range_with_scev): Fail if the value of bound is not
2526 2006-05-19 Richard Sandiford <richard@codesourcery.com>
2528 * config/mips/linux-unwind.h: Include <asm/unistd.h>
2529 (mips_fallback_frame_state): Use syscall numbers to determine
2530 the appropriate li instruction for the current ABI. Only use
2531 __NR_sigreturn for o32.
2533 2006-05-19 Nicolas Setton <setton@adacore.com>
2535 * langhooks.h (struct lang_hooks): Add dwarf_name language hook.
2536 * langhooks.c (lhd_dwarf_name): New function.
2537 * langhooks-def.h (lhd_dwarf_name): Declare.
2538 (LANG_HOOKS_DWARF_NAME): New macro, defaults to lhd_dwarf_name.
2539 * dwarf2out.c (dwarf2_name): Use the dwarf_name language hook.
2540 * ada/misc.c (gnat_dwarf_name): New function.
2541 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
2543 2006-05-19 Richard Sandiford <richard@codesourcery.com>
2545 * libgcc2.c (MIN_UNITS_PER_WORD): Move default definition from
2547 (LIBGCC2_UNITS_PER_WORD): Provide default definition, using old
2548 MIN_UNITS_PER_WORD logic from libgcc2.h. Do nothing if
2549 LIBGCC2_UNITS_PER_WORD > MIN_UNITS_PER_WORD.
2550 * libgcc2.h (MIN_UNITS_PER_WORD): Remove definition from here.
2551 Use LIBGCC2_UNITS_PER_WORD rather than MIN_UNITS_PER_WORD to
2552 determine the size of Wtype, etc.
2553 * mklibgcc.in (LIB2_SIDITI_CONV_FUNCS): New argument.
2554 (swfloatfuncs): New variable.
2555 (dwfloatfuncs): Likewise.
2556 (lib2funcs): Remove floating-point conversion functions from
2557 initial assignment. Use LIB2_SIDITI_CONV_FUNCS to determine
2558 the set of conversion routines needed. Allow entries to specify
2559 an object name, filename and word size. Update users accordingly.
2560 * Makefile.in (libgcc.mk): Pass LIB2_SIDITI_CONV_FUNCS.
2561 * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Define.
2565 2006-02-08 Roger Sayle <roger@eyesopen.com>
2568 * config/fixtfdi.c: New libgcc source file.
2569 * config/fixunstfdi.c: New source file.
2570 * config/floatditf.c: New source file.
2571 * config/floatunditf.c: New souce file.
2572 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Include the new source
2573 files above instead of config/mips/_tilib.c.
2574 * config/mips/t-linux64 (LIB2FUNCS_EXTRA): Likewise.
2576 2006-05-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2578 * pa/t-hpux-shlib (SHLIB_LINK): Remove `-lc'.
2579 * pa/pa-hpux11.h (LIB_SPEC): Update comment.
2581 2006-05-18 Mike Stump <mrs@apple.com>
2583 Fix up vla, vm and [*] sematics.
2589 * c-tree.h (struct c_arg_info): Add had_vla_unspec.
2590 (c_vla_unspec_p): Add.
2591 (c_vla_type_p): Add.
2592 * c-decl.c (struct c_scope): Add had_vla_unspec.
2593 (build_array_declarator): Add support for [*].
2594 (grokdeclarator): Likewise.
2595 (grokparms): Likewise.
2596 (get_parm_info): Likewise.
2597 * c-objc-common.c (c_vla_unspec_p): Likewise.
2598 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Likewise.
2599 * c-parser.c (c_parser_typeof_specifier): Evaluate arguments to
2600 typeof when argument is a variably modified type not inside sizeof or alignof.
2601 (c_parser_direct_declarator_inner): Propagate errors.
2602 (c_parser_sizeof_expression): Add support for [*].
2603 (c_parser_parms_declarator): Initialize had_vla_unspec.
2604 (c_parser_parms_list_declarator): Likewise.
2605 * c-typeck.c (c_vla_type_p): Add.
2606 (composite_type): Add support for vla compositing.
2607 (comptypes_internal): Add support for vla compatibility.
2608 (c_expr_sizeof_expr): Evaluate vla arguments.
2609 * tree.c (variably_modified_type_p): Update comment for [*].
2611 2006-05-18 Michael Matz <matz@suse.de>
2614 * config.host: Make assignments to host_xmake_file cumulative.
2615 * config.host (*-darwin*): Test $host, not $target.
2617 2006-05-12 Stuart Hastings <stuart@apple.com>
2619 * config/i386/i386.opt (-mstackrealign): New flag.
2620 * config/i386/i386.c (force_align_arg_pointer): New attribute.
2621 (ix86_handle_cconv_attribute): Emit error when
2622 force_align_arg_pointer attribute collides with too many regparms.
2623 (ix86_function_regparm): Limit regparms when used with
2624 force_align_arg_pointer attribute. (ix86_internal_arg_pointer):
2625 Support stack-realigning prologue in non-main functions. Emit
2626 warning for nested functions under -mstackrealign, emit error for
2627 nested functions with force_align_arg_pointer attribute.
2628 * doc/extend.texi (force_align_arg_pointer): Document it.
2629 * doc/invoke.texi (-mstackrealign): Document it.
2631 2006-05-17 Kazu Hirata <kazu@codesourcery.com>
2633 PR rtl-optimization/27477
2634 * combine.c (try_combine): Don't split a parallel consisting
2635 of two sets into two individual sets if both sets reference
2638 2006-05-17 H.J. Lu <hongjiu.lu@intel.com>
2640 * config/arm/arm.opt (target_fpe_name): Remove VarExists.
2641 * config/rs6000/rs6000.opt (TARGET_NO_FP_IN_TOC): Likewise.
2643 * doc/options.texi (VarExists): Updated.
2645 2006-05-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2647 * unwind-dw2.c: Add declarations for uw_update_context and
2649 * pa/hpux-unwind.h (pa_fallback_frame_state): When an export stub is
2650 detected, advance frame state and context once to skip over stub.
2652 2006-05-17 Sebastian Pop <pop@cri.ensmp.fr>
2656 * tree-loop-linear.c (linear_transform_loops): Don't test perfect_nest_p.
2657 Call rewrite_into_loop_closed_ssa only when something changed.
2658 * lambda.h (gcc_loopnest_to_lambda_loopnest): Update declaration.
2659 * lambda-code.c (can_convert_to_perfect_nest): Declared.
2660 (gcc_loopnest_to_lambda_loopnest): Removed need_perfect_nest parameter.
2661 Test for perfect_nest_p here. Fix formating.
2662 (replace_uses_equiv_to_x_with_y): Fix formating.
2663 (stmt_uses_op): Removed.
2664 (can_convert_to_perfect_nest): Removed loopivs parameter.
2665 Complete the test by checking the scalar dependences.
2666 (perfect_nestify): Remove the test for can_convert_to_perfect_nest.
2669 2005-05-17 Bernd Schmidt <bernd.schmidt@analog.com>
2672 From Dan Kegel <dank@kegel.com>:
2673 * Makefile.in: Strip "dir/../" combinations from SYSTEM_INCLUDE_DIR.
2675 2006-05-17 Eric Botcazou <ebotcazou@adacore.com>
2677 * tree.c (variably_modified_type_p) <ARRAY_TYPE>: Return true
2678 if the element type is variably modified without recursing.
2680 2006-05-17 Sebastian Pop <pop@cri.ensmp.fr>
2683 * tree-loop-linear.c (try_interchange_loops): Test for
2684 no data dependences.
2686 2006-05-17 Zdenek Dvorak <dvorakz@suse.cz>
2688 PR tree-optimization/27548
2689 * tree-scalar-evolution.c (scev_const_prop): Do not prolong life
2690 range of ssa names that appear on abnormal edges.
2691 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Export.
2692 * tree-flow.h (contains_abnormal_ssa_name_p): Declare.
2694 2005-05-17 Bernd Schmidt <bernd.schmidt@analog.com>
2697 * expr.c (safe_from_p): Handle CONSTRUCTOR again.
2699 2006-05-17 Jakub Jelinek <jakub@redhat.com>
2702 * tree.h (OMP_PARALLEL_COMBINED): Define.
2703 * gimplify.c (struct gimplify_omp_ctx): Add is_combined_parallel field.
2704 (new_omp_context): Add is_combined_parallel argument.
2705 (gimplify_scan_omp_clauses): Add in_combined_parallel argument, adjust
2706 new_omp_context caller.
2707 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
2708 Adjust gimplify_scan_omp_clauses callers.
2709 (omp_is_private): Issue errors if iteration variable is firstprivate
2710 or reduction in the current context.
2711 * c-parser.c (c_parser_omp_parallel): Set OMP_PARALLEL_COMBINED
2712 on combined parallel workshare constructs.
2714 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
2716 * Makefile.in (GCC_OBJS): Replace options.o with gcc-options.o.
2717 (gcc-options.o): New rule.
2719 * optc-gen.awk: Protect variables for gcc-options.o with
2720 #ifdef GCC_DRIVER/#endif.
2722 2006-05-16 Daniel Berlin <dberlin@dberlin.org>
2724 Fix PR tree-optimization/27373
2725 * tree-ssa-forwprop.c: (forward_propagate_addr_expr_1): Add argument.
2726 (forward_propagate_addr_expr): Update call.
2728 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
2730 * doc/options.texi: Move the Negative option.
2732 2006-05-16 Richard Guenther <rguenther@suse.de>
2734 PR tree-optimization/22303
2735 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle reads
2737 (evaluate_stmt): Fall back to fold_const_aggregate_ref, if
2738 ccp_fold did not simplify the statement.
2740 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
2743 * Makefile.in (GCC_OBJS): New.
2744 (OBJS-common): Add opts-common.o.
2745 (xgcc$(exeext)): Replace gcc.o with $(GCC_OBJS).
2746 (cpp$(exeext)): Likewise.
2747 (gcc.o): Also depend on opts.h.
2748 (opts-common.o): New.
2750 * common.opt (gcoff): Add Negative(gdwarf-2).
2751 (gdwarf-2): Add Negative(gstabs).
2752 (gstabs): Add Negative(gstabs+).
2753 (gstabs+): Add Negative(gvms).
2754 (gvms): Add Negative(gxcoff).
2755 (gxcoff): Add Negative(gxcoff+).
2756 (gxcoff+): Add Negative(gcoff).
2757 * config/i386/i386.opt (m32): Add Negative(m64).
2758 (m64): Add Negative(m32).
2760 * doc/options.texi: Document the Negative option.
2762 * gcc.c: Include "opts.h".
2763 (main): Call prune_options after expandargv.
2765 * optc-gen.awk: Generate common declarations for all flag
2766 variables in options.c. Output the neg_index field.
2768 * opts.c (find_opt): Moved to ...
2769 * opts-common.c: Here. New file.
2771 * opts.h (cl_option): Add a neg_index field.
2773 (prune_options): Likewise.
2775 2006-05-16 Jakub Jelinek <jakub@redhat.com>
2778 * omp-low.c (expand_omp_parallel): Don't assert
2779 .OMP_DATA_I = &.OMP_DATA_O is the first statement in the block,
2780 instead search for it.
2783 * gimplify.c (gimplify_omp_for): Remove assertion that iteration var
2786 2006-05-16 Andreas Schwab <schwab@suse.de>
2788 * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Add missing @end
2791 2006-05-15 Roger Sayle <roger@eyesopen.com>
2794 * config/i386/i386.c (legitimate_constant_p) <CONST_DOUBLE>: TImode
2795 integer constants other than zero are only legitimate on TARGET_64BIT.
2796 <CONST_VECTOR> Only zero vectors are legitimate.
2797 (ix86_cannot_force_const_mem): Integral and vector constants can
2798 always be put in the constant pool.
2800 2006-05-16 DJ Delorie <dj@redhat.com>
2802 * crtstuff.c (__dso_handle): Set section from
2803 TARGET_LBIGCC_SDATA_SECTION if defined.
2804 * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Document.
2805 * config/mips/mips.h (TARGET_LIBGCC_SDATA_SECTION): Define.
2807 2006-05-16 Danny Smith <dannysmith@users.sourceforge.net>
2810 * config.host (i[34567]86-*-mingw*): Append i386/x-mingw32 to
2813 2006-05-16 Ben Elliston <bje@au.ibm.com>
2815 * tree-cfg.c (split_edge_bb_loc): Remove unused variable `src'.
2817 2006-05-15 Per Bothner <per@bothner.com>
2819 * tree.c: (last_annotated_node): Use source_locus typedef.
2820 This permits bootstrapping with --enable-mapped-location.
2822 2006-05-15 Zdenek Dvorak <dvorakz@suse.cz>
2824 PR tree-optimization/26830
2825 * tree-into-ssa.c (struct ssa_name_info): Add age field.
2826 (info_for_ssa_name, current_info_for_ssa_name_age,
2827 blocks_to_update): New variables.
2828 (get_ssa_name_ann): Use info_for_ssa_name instead of SSA_NAME_AUX.
2829 (clear_ssa_name_info, initialize_flags_in_bb,
2830 mark_block_for_update): New functions.
2831 (mark_def_sites, rewrite_stmt): Assert that blocks_to_update is NULL.
2832 (insert_phi_nodes_for, mark_use_interesting, prepare_block_for_update,
2833 prepare_def_site_for): Use mark_block_for_update.
2834 (mark_def_interesting): Assert that the processed block is marked in
2835 blocks_to_update. Do not take blocks argument.
2836 (prepare_use_sites_for, prepare_names_to_update): Do not take blocks
2838 (rewrite_update_init_block, rewrite_update_stmt): Only process
2839 blocks with statements to rewrite.
2840 (delete_update_ssa): Do not clear SSA_NAME_AUX.
2841 (update_ssa): Initialize and free blocks_to_update. Do not
2842 clear flags on statements. Do not use blocks bitmap.
2843 * tree.h (SSA_NAME_AUX): Removed.
2844 (struct tree_ssa_name): Removed aux field.
2845 * print-tree.c (print_node): Do not print SSA_NAME_AUX.
2847 2006-05-15 Richard Guenther <rguenther@suse.de>
2849 PR tree-optimization/27603
2850 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
2851 Do computations in original type.
2853 2006-05-15 Mircea Namolaru <namolaru@il.ibm.com>
2855 * see.c: Code style changes such as redundant paranthesis,
2856 redundant intialization of local variables etc.
2857 (see_main): Declared now as static.
2858 * doc/invoke.texi: Update that -fsee is not enabled by
2861 2006-05-15 Jakub Jelinek <jakub@redhat.com>
2863 * omp-low.c (check_omp_nesting_restrictions): New function.
2864 (scan_omp_1): Call it.
2867 * omp-low.c (build_outer_var_ref): If VAR is reference in orphaned
2868 construct, return *VAR.
2870 2006-05-14 Kaz Kojima <kkojima@gcc.gnu.org>
2872 PR rtl-optimization/27406
2873 * bt-load.c (migrate_btr_def): Skip the block having abnormal
2876 2006-05-14 Roger Sayle <roger@eyesopen.com>
2878 PR rtl-optimization/27538
2879 * combine.c (expand_compound_operation): Call gen_lowpart
2880 before calling simplify_shift_const.
2882 2006-05-14 Roger Sayle <roger@eyesopen.com>
2884 PR rtl-optimization/22563
2885 * expmed.c (store_fixed_bit_field): When using AND and IOR to store
2886 a fixed width bitfield, always force the intermediates into psuedos.
2888 2006-05-14 Bernhard Fischer <aldot@gcc.gnu.org>
2891 * mkconfig.sh: Use operator = instead of == for test.
2893 2006-05-13 Nick Clifton <nickc@redhat.com>
2895 * dwarf2out.c (dbx_reg_number): Check return value from
2896 LEAF_REG_REMAP and only use it if it is valid.
2897 (multiple_reg_loc_descriptor): Likewise.
2899 2006-05-13 Richard Guenther <rguenther@suse.de>
2901 * config.host <i[34567]86-*-cygwin*>: Append i386/x-cygwin to
2904 2006-05-13 Steven Bosscher <stevenb.gcc@gmail.com>
2906 * df-core.c (df_bb_regno_last_use_find): Do not look for dataflow
2907 information attached to non-INSNs such as NOTEs.
2908 (df_bb_regno_first_def_find, df_bb_regno_last_def_find): Likewise.
2910 2006-05-12 Andreas Krebbel <krebbel1@de.ibm.com>
2912 * config/s390/s390.c (s390_const_ok_for_constraint_p): Disallow -4G for
2914 * config/s390/s390.md: Adjust comment describing On constraint.
2916 2006-05-11 Jan Hubicka <jh@suse.cz>
2918 * cgraphunit.c (decide_is_function_needed): Don't force always_inline
2919 to be output at -O0.
2921 2006-05-11 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2924 * fold-const.c (size_binop): Move sanity check for arguments to
2925 the beginning of the function.
2928 * fold-const.c (tree_expr_nonnegative_p): Return early on invalid
2931 2006-05-11 Richard Guenther <rguenther@suse.de>
2934 * fold-const.c (fold_unary): Handle intermediate conversion
2935 to a pointer type like intermediate conversion to an integer
2936 type in folding of (T1)(T2)var to var.
2937 Match the code to the comment in the final conversion for
2938 (T1)(T2)var to (T1)var regarding to type precision. Rather
2939 than disallow T1 being of pointer type, assert that both T1
2940 and var are of pointer type or not. Make sure not to fall
2941 over the frontends lazyness wrt array to pointer decay though.
2943 2006-05-10 Richard Earnshaw <rearnsha@arm.com>
2945 * arm.c (arm_struct_value_rtx): Delete.
2946 (TARGET_STRUCT_VALUE_RTX): Use the default definition.
2947 (arm_init_cumulative_args): Always initialize nregs to zero.
2949 2006-05-10 Richard Guenther <rguenther@suse.de>
2951 PR tree-optimization/27532
2952 * tree-object-size.c (plus_expr_object_size): Fix typo.
2954 2006-05-10 Kazu Hirata <kazu@codesourcery.com>
2957 * config/m68k/m68k.md (ashrdi_const32, ashrdi_const32_mem,
2958 ashrdi_const, ashrdi3): Use a scratch register.
2960 2006-05-10 Richard Guenther <rguenther@suse.de>
2962 PR tree-optimization/27302
2963 * fold-const.c (operand_equal_p): For two comparisons,
2964 try comparison of one comparison code swapped if that yields
2967 2006-05-10 Ben Elliston <bje@au.ibm.com>
2969 * tree-pretty-print.c (pretty_print_string): No need to handle
2970 '\0' as a special character.
2972 * tree.h: Include "hashtab.h".
2973 (iterative_hash_expr): Use hashval_t in its prototype.
2974 * Makefile.in (TREE_H): Add $(HASHTAB_H).
2976 2006-05-09 Steve Ellcey <sje@cup.hp.com>
2979 * config.gcc (hppa[12]*-*-hpux10*): Set gas to yes.
2980 (hppa*64*-*-hpux11*): Ditto.
2981 (hppa[12]*-*-hpux11*): Ditto.
2983 2006-05-09 David Edelsohn <edelsohn@gnu.org>
2986 * config/rs6000/aix41.h (TARGET_64BIT): Define.
2988 2006-05-09 Michael Matz <matz@suse.de>
2990 * config.host (<i[34567]86-*-*, x86_64-*-*>): Set
2991 host_extra_gcc_objs and host_xmake_file.
2992 (<*-*-linux*>): Don't overwrite host_xmake_file.
2993 * gcc.c (static_spec_functions): Add EXTRA_SPEC_FUNCTIONS.
2994 * config/i386/i386.h (EXTRA_SPEC_FUNCTIONS): Define.
2995 (host_detect_local_cpu): Declare.
2996 (CC1_CPU_SPEC): Add -march=native and -mtune=native cases.
2997 * config/i386/i386.c (override_options): Handle -mtune=native
2999 * config/i386/x-i386: New file.
3000 * config/i386/driver-i386.c: New file.
3001 * doc/invoke.texi (<i386 and x86-64 Options>): Describe
3004 2006-05-09 Dirk Mueller <dmueller@suse.de>
3005 Richard Guenther <rguenther@suse.de>
3008 * fold-const.c (fold_read_from_constant_string): Relax check
3009 for matching types to matching modes.
3011 2006-05-09 Zdenek Dvorak <dvorakz@suse.cz>
3013 PR rtl-optimization/27335
3014 * loop-unroll.c (peel_loops_completely): Use loops->parray to walk the
3017 2006-05-08 Chao-ying Fu <fu@mips.com>
3018 Richard Sandiford <richard@codesourcery.com>
3020 * config/mips/mips-ps-3d.md (scc_ps, s<code>_ps): New patterns.
3021 (vcondv2sf, sminv2sf3, smaxv2sf3): Likewise.
3022 * config/mips/mips.md (UNSPEC_SCC): New constant.
3023 * config/mips/mips-protos.h (mips_expand_vcondv2sf): Declare.
3024 * config/mips/mips.c (mips_reverse_fp_cond_p): New function.
3025 (mips_emit_compare): Use it.
3026 (mips_expand_vcondv2sf): New function.
3028 2006-05-08 Daniel Berlin <dberlin@dberlin.org>
3030 Fix PR tree-optimization/27093
3031 * tree-ssa-alias.c (recalculate_used_alone): Mark variables for
3032 renaming when they become not-used_alone.
3034 2006-05-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3036 * hpux-unwind.h (pa_fallback_frame_state): Handle return parameter
3037 relocation and relocation stubs.
3039 2006-05-08 Eric Christopher <echristo@apple.com>
3041 * unwind-dw2-fde-darwin.c (examine_objects): Only check data
3044 2006-05-08 Jan Hubicka <jh@suse.cz>
3047 * cgraphunit.c (decide_is_function_needed): When not optimizing even
3048 unused static functions are needed.
3050 2006-05-08 Roger Sayle <roger@eyesopen.com>
3053 * reload.c (find_reloads_toplev): Only return the simplified SUBREG
3054 of a reg_equiv_constant if the result is a legitimate constant.
3056 2006-05-08 Uros Bizjak <uros@kss-loka.si>
3059 * config/i386/i386.c (ix86_rtx_costs) [FLOAT_EXTEND]: For
3060 standard 80387 constants, raise the cost to prevent
3061 compress_float_constant() to generate load from memory.
3063 2006-05-08 Kazu Hirata <kazu@codesourcery.com>
3065 * config/arm/constraints.md (c): Fix a typo.
3067 * see.c, tree-flow-inline.h, tree-phinodes.c: Fix comment
3070 2006-05-07 H.J. Lu <hongjiu.lu@intel.com>
3073 * config/i386/pmmintrin.h (_mm_monitor): Remove macro. Use
3075 (_mm_mwait): Likewise.
3077 * config/i386/sse.md (sse3_mwait): Replace "mwait\t%0, %1" with
3079 (sse3_monitor): Make it 32bit only.
3080 (sse3_monitor64): New. 64bit monitor.
3082 2006-05-07 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3085 * config/i386/i386.c (classify_argument): Skip fields with invalid
3088 2006-05-07 Richard Guenther <rguenther@suse.de>
3090 PR tree-optimization/27409
3091 * tree-ssa-structalias.c (get_constraint_for_component_ref):
3092 Do not try to find zero-sized subvars.
3094 2006-05-07 Richard Guenther <rguenther@suse.de>
3096 PR tree-optimization/27136
3097 * tree-ssa-loop-niter.c (get_val_for): Correct function
3098 comment, assert requirements.
3099 (loop_niter_by_eval): Stop processing if the iterated
3100 value did not simplify.
3102 2006-05-07 Mircea Namolaru <namolaru@il.ibm.com>
3104 * opts.c (flag_see): remove its setting at -O3.
3106 2006-05-07 Richard Earnshaw <rearnsha@arm.com>
3108 * genpeep.c (main): Make insn-peep.c depend on flags.h.
3109 * arm/constraints.md: New file.
3110 * arm.h (REG_CLASS_FROM_LETTER_P): Delete.
3111 (CONST_OK_FOR_ARM_LETTER, CONST_OK_FOR_THUMB_LETTER)
3112 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_ARM_LETTER)
3113 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT_STR_ARM)
3114 (CONSTRAINT_LEN, EXTRA_CONSTRAINT_THUMB, EXTRA_CONSTRAINT_STR)
3115 (EXTRA_MEMORY_CONSTRAINT): Likewise.
3116 * arm.md: Include constraints.md.
3117 (thumb_movsi_insn): Use satisfies_constraint_J.
3118 (movhi, movqi): Use satisfies_constraint_I.
3120 2006-04-29 Anatoly Sokolov <aesok@post.ru>
3122 * config/avr/avr.h (CRT_BINUTILS_SPECS): Fixed crt* file name
3123 for atmeg a645 device.
3125 2006-05-06 Richard Guenther <rguenther@suse.de>
3127 PR tree-optimization/27151
3128 * tree-vect-transform.c (vectorizable_condition): Punt on
3129 values that have a different type than the condition.
3131 2006-05-03 Aldy Hernandez <aldyh@redhat.com>
3134 * c-parser.c (c_parser_cast_expression): Only insert casts into
3135 hash table if pointer.
3136 * function.c (used_types_insert_helper): Rename from
3138 (used_types_insert): Call used_types_insert_helper.
3139 * function.h (used_types_insert): Accept only one argument.
3141 2006-05-05 David Edelsohn <edesohn@gnu.org>
3143 * config/rs6000/rs6000.md: Mark all "X" constraints for clobbered
3144 scratch with output modifier.
3146 2006-05-04 David Edelsohn <edelsohn@gnu.org>
3149 * config/rs6000/rs6000.md (stmsi_power): Mark clobber constraint
3150 with output modifier.
3152 2006-05-04 Richard Sandiford <richard@codesourcery.com>
3155 * config/mips/mips.c (mips_symbolic_address_p): Return true
3156 for SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL, SYMBOL_TPREL,
3157 SYMBOL_GOTTPREL, and SYMBOL_TLS.
3159 2006-05-04 Richard Guenther <rguenther@suse.de>
3161 PR tree-optimization/14287
3162 PR tree-optimization/14844
3163 PR tree-optimization/19792
3164 PR tree-optimization/21608
3165 PR tree-optimization/27090
3166 * tree-ssa-pre.c (try_combine_conversion): New function.
3167 (compute_avail): After constructing the value-handle
3168 expression, use try_combine_conversion to combine NOP_EXPRs
3169 with previous value-handle expressions and use the result if it
3172 2006-05-04 Joseph S. Myers <joseph@codesourcery.com>
3174 * config/mips/linux64.h (DWARF_OFFSET_SIZE): Remove.
3176 2006-05-04 Jan Hubicka <jh@suse.cz>
3179 * cgraphunit.c (verify_cgraph_node): Fix cgraph_hash testing.
3181 2006-05-04 Bernd Schmidt <bernd.schmidt@analog.com>
3183 * config/bfin/predicates.md (const01_rtx): Tell generator programs
3184 that this only matches CONST_INTs. All users changed to VOIDmode
3187 * config/bfin/bfin.c: Include "optabs.h".
3188 (bfin_rtx_costs): Some costs for vector operations, to allow combine
3190 (enum bfin_builtins): Add a number of fractional and vector builtins.
3191 (bfin_init_builtins): Likewise.
3192 (struct builtin_description, bdesc_2arg, bdesc_1arg): New.
3193 (safe_vector_operand, bfin_expand_binop_builtin,
3194 bfin_expand_unop_builtin): New functions.
3195 (bfin_expand_builtin): Handle the new builtins.
3196 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
3199 2006-05-04 Leehod Baruch <leehod@il.ibm.com>
3202 * Makefile.in (OBJS-common): Add see.o.
3203 (see.o): Add dependencies.
3204 * common.opt (fsee): New flag for the see optimization was added.
3205 * opts.c (flag_see): Initialized.
3206 * passes.c (init_optimization_passes, pass_see): New pass.
3207 * rtl.h (see_main): Declaration as extern.
3208 * timevar.def (TV_SEE): New.
3209 * tree-pass.h (pass_see): Declaration as extern.
3210 * invoke.texi (-fsee): Document.
3211 * recog.c (validate_simplify_insn): New function.
3212 * recog.h (validate_simplify_insn): Declaration as extern.
3213 * df-problems.c (df_chain_dump): Check for NULL.
3215 2006-05-04 Kenneth Zadeck <zadeck@naturalbridge.com>
3216 Daniel Berlin <dberlin@dberlin.org>
3218 * cfgrtl.c (insert_insn_bb_end_new): New function.
3219 * basic-block.h (insert_insn_bb_end_new): Declaration as extern.
3221 2006-05-04 Leehod Baruch <leehod.baruch@weizmann.ac.il>
3223 * df.h (struct web_entry): Moved from web.c.
3224 (union_defs): Declaration as extern.
3225 (unionfind_root): Likewise.
3226 (unionfind_union): Likewise.
3227 * web.c (struct web_entry): Moved to df.h.
3228 (unionfind_root): Remove static declaration.
3229 (unionfind_union): Likewise.
3230 (union_defs): Likewise and generalize to use callback function.
3231 (web_main): Update arguments for union_defs function call.
3233 2006-05-04 Richard Guenther <rguenther@suse.de>
3235 PR tree-optimization/26447
3236 * tree-ssa-pre.c (realify_fake_stores): For necessary loads
3237 produce SSA_NAME copies before the store stmt to avoid
3238 breaking exception handling.
3240 2006-05-04 Jakub Jelinek <jakub@redhat.com>
3243 * gimplify.c (omp_is_private): If var is shared in some outer context,
3244 return false instead of true. Stop searching on parallel context
3247 2006-05-03 Alexandre Oliva <aoliva@redhat.com>
3250 * coverage.c: Use get_gcov_unsigned_t() instead of
3251 unsigned_type_node all over.
3253 2006-05-02 Andrew MacLeod <amacleod@redhat.com>
3255 PR tree-optimization/27381
3256 * tree-phinodes.c (remove_phi_arg_num): When moving a phi argument,
3257 maintain the same immediate_use links.
3258 * tree-ssa-operands.c (dump_immediate_uses_for): Show iteration marker
3259 node rather than segfaulting.
3261 2006-05-03 Jakub Jelinek <jakub@redhat.com>
3264 * gimplify.c (gimplify_scan_omp_clauses): Compare OMP_CLAUSE_CODE
3265 rather than TREE_CODE to OMP_CLAUSE_REDUCTION. Set also GOVD_SEEN
3266 bit for OMP_CLAUSE_REDUCTION_PLACEHOLDER.
3268 2006-05-02 Daniel Berlin <dberlin@dberlin.org>
3270 Fix PR tree-optimization/26626
3271 * tree-ssa-structalias.c (compute_points_to_sets): For now, solve
3273 * tree-ssa-operands.c (access_can_touch_variable): Allow
3274 typecasting through union pointers.
3276 2006-05-02 Jakub Jelinek <jakub@redhat.com>
3279 * omp-low.c (maybe_lookup_decl_in_outer_ctx): New function.
3280 (build_outer_var_ref): Use maybe_lookup_decl_in_outer_ctx
3281 to find if var will be a global variable even in the nested context.
3282 (omp_copy_decl): Only check for global variable at the end, it might
3283 be overridden in outer contexts.
3284 (scan_sharing_clauses): For global variables don't create a field.
3285 (lower_rec_input_clauses): Do nothing for global shared variables.
3286 Emit a barrier at the end of ILIST if there were any decls in both
3287 firstprivate and lastprivate clauses.
3288 (lower_send_clauses): Do nothing for global variables except for
3291 2006-05-02 Zdenek Dvorak <dvorakz@suse.cz>
3293 * tree.c (unsigned_type_for, signed_type_for): Make sure a type
3294 of the correct signedness is returned.
3296 2006-05-02 Jeff Law <law@redhat.com>
3298 PR tree-optimization/27364
3299 * tree-vrp.c (vrp_int_const_binop): Fix detection of overflow from
3300 multiply expressions.
3302 2006-05-02 Tom Tromey <tromey@redhat.com>
3304 * tree-flow-inline.h (op_iter_init_phiuse): Fixed typo.
3306 2006-05-02 Kazu Hirata <kazu@codesourcery.com>
3309 * arm.c (arm_output_mi_thunk): Use pc-relative addressing when
3310 -mthumb -fPIC are used.
3312 2006-05-02 Stanislaw Skowronek <skylark@linux-mips.org>
3313 Joshua Kinard <kumba@gentoo.org>
3316 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Avoid 32-bit moves
3317 with 64-bit pointers.
3319 2006-05-02 Paul Brook <paul@codesourcery.com>
3321 * config/arm/arm.c (add_minipool_forward_ref): Check if insn
3323 (create_fix_barrier): Check that a suitable barrier location is
3325 (arm_reorg): Include ftmp->address in allowable range of addresses.
3327 2006-05-02 David Billinghurst <David.Billinghurst@riotinto.com>
3330 * ada/env.c (__gnat_clearenv): Use unsetenv() to clear environment
3333 2006-05-02 Jakub Jelinek <jakub@redhat.com>
3336 * gimplify.c (gimplify_scan_omp_clauses): Handle INDIRECT_REF
3337 around RESULT_DECL for result passed by reference.
3338 (gimplify_expr): Call omp_notice_variable when RESULT_DECL is seen.
3339 * omp-low.c (use_pointer_for_field): Don't look at
3340 DECL_HAS_VALUE_EXPR_P for RESULT_DECLs.
3341 (scan_omp_1): Call remap_decl on RESULT_DECLs.
3342 (lower_rec_input_clauses): Don't allocate VLA memory for the second
3343 time or var for passing by reference for
3344 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses. Allow creation of
3345 TREE_ADDRESSABLE variables when passing by reference.
3347 * omp-low.c (dump_omp_region): Fix output formatting.
3350 * omp-low.c (remove_exit_barrier): Handle NULL exit_bb.
3351 (expand_omp_parallel): Likewise.
3352 * tree-cfg.c (move_sese_region_to_fn): Likewise.
3355 * omp-low.c (lower_omp_sections): Call maybe_catch_exception
3356 on statement list containing also constructors and destructors.
3357 (lower_omp_single, lower_omp_for, lower_omp_parallel): Likewise.
3360 * except.c (duplicate_eh_regions): Fix clearing of
3361 cfun->eh->region_array entries.
3363 2006-05-01 DJ Delorie <dj@redhat.com>
3365 * configure.ac (gcc_cv_nm): Don't use an in-tree nm if
3367 (gcc_cv_objdump): Likewise.
3368 * configure: Regenerated.
3370 2006-05-01 Kazu Hirata <kazu@codesourcery.com>
3373 * config/arm/vfp.md (*arm_movdi_vfp): Correct the output
3374 templates for case 3 and 4.
3376 2006-05-01 DJ Delorie <dj@redhat.com>
3378 * vec.c: Include bconfig.h when appropriate.
3379 * Makefile.in (build/vec.o): Adjust dependencies.
3380 * mkconfig.sh: Make sure config.h isn't used for build machine
3383 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
3385 * tree-into-ssa.c (phis_to_rewrite, blocks_with_phis_to_rewrite): New
3387 (mark_phi_for_rewrite): New function.
3388 (insert_phi_nodes_for, mark_use_interesting): Call
3389 mark_phi_for_rewrite.
3390 (rewrite_update_phi_arguments): Traverse only phis in phis_to_rewrite.
3391 (update_ssa): Initialize and free phis_to_rewrite.
3393 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
3395 PR rtl-optimization/27291
3396 * loop-doloop.c (add_test, doloop_modify): Handle the case condition is
3397 folded to a constant.
3399 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
3401 PR tree-optimization/27283
3402 * tree-ssa-loop-ivopts.c (struct nfe_cache_elt): Store just trees,
3403 not whole # of iteration descriptions.
3404 (niter_for_exit): Return just # of iterations. Fail if # of iterations
3405 uses abnormal ssa name.
3406 (niter_for_single_dom_exit): Ditto.
3407 (find_induction_variables, may_eliminate_iv): Expect niter_for_exit to
3408 return just the number of iterations.
3410 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
3412 PR tree-optimization/27144
3413 * tree-ssa-loop-niter.c (derive_constant_upper_bound): New function.
3414 (record_estimate): Only record constant upper bound.
3415 (infer_loop_bounds_from_undefined): Call
3416 compute_estimated_nb_iterations just once.
3417 (proved_non_wrapping_p): Renamed to ...
3418 (n_of_executions_at_most): ... this. Expect bound to be a constant.
3419 (convert_step_widening, scev_probably_wraps_p): Call
3420 n_of_executions_at_most instead of proved_non_wrapping_p.
3421 (substitute_in_loop_info): Do not replace values in bounds.
3422 * cfgloop.h (struct nb_iter_bound): Remove "additional" field. Update
3425 2006-05-01 Richard Henderson <rth@redhat.com>
3428 * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Move after
3429 c_parser_skip_to_pragma_eol. Convert to switch statement. Handle
3432 2006-05-01 Roger Sayle <roger@eyesopen.com>
3434 * c-typeck.c (parser_build_binary_op): Don't call the function
3435 unsigned_conversion_warning to spot operand/result type overflow.
3436 (build_binary_op): Instead, call convert_and_check instead of
3437 convert to report the problem when the operands are promoted.
3438 * c-common.c (unsigned_conversion_warning): Make static.
3439 * c-common.h (unsigned_conversion_warning): Delete prototype.
3441 2006-05-01 Richard Guenther <rguenther@suse.de>
3443 PR tree-optimization/26726
3444 * tree-ssa-loop-ivopts.c (idx_find_step): Mark source of the
3446 (find_interesting_uses_address): ... we work around here
3447 by folding INDIRECT_REFs in the substituted base.
3449 2006-05-01 Diego Novillo <dnovillo@redhat.com>
3451 * omp-low.c (dump_omp_region): Add newlines.
3453 2006-04-30 Roger Sayle <roger@eyesopen.com>
3455 * common.opt (Woverflow): New command line option.
3456 * c-common.c (constant_expression_warning): Check warn_overflow.
3457 (overflow_waring): Pass OPT_Woverflow to warning.
3458 (unsigned_conversion_warning): Likewise.
3459 (convert_and_check): Likewise.
3460 * doc/invoke.texi: Document new command line option.
3462 2006-04-30 David Edelsohn <edelsohn@gnu.org>
3464 * config/rs6000/rs6000.c (rs6000_override_options): Enable
3465 TARGET_NO_FP_IN_TOC for section anchors.
3466 (optimization_options): Enable section anchors for all
3467 non-"Objective" languages.
3469 2006-04-28 Eric Christopher <echristo@apple.com>
3471 * config/darwin-c.c (darwin_ms_struct): Move this
3472 (darwin_set_default_type_attributes): and this...
3473 * config/darwin.c: ... here.
3474 * config/darwin.h (darwin_ms_struct): Declare.
3476 2006-04-28 Andrew MacLeod <amacleod@redhat.com>
3478 * tree-ssa-dom.c (propagate_rhs_into_lhs): Fix assert clause.
3480 2006-04-28 Roger Sayle <roger@eyesopen.com>
3483 * c-typeck.c (struct spelling): Make I an unsigned HOST_WIDE_INT.
3484 (push_array_bounds): Delete prototype. Change BOUNDS argument to
3485 an unsigned HOST_WIDE_INT.
3486 (print_spelling): Use HOST_WIDE_INT_PRINT_UNSIGNED to output the
3488 (really_start_incremental_init): No need to call convert because
3489 bitsize_zero_node is already of type bitsizetype.
3490 (push_init_level): Extract the value of constructor_index as an
3491 unsigned HOST_WIDE_INT quantity, using tree_low_cst.
3492 (process_init_element): Likewise.
3494 2006-04-28 Joseph S. Myers <joseph@codesourcery.com>
3496 * gcc.c (process_command): Add program name to GCC_EXEC_PREFIX
3497 value before passing to make_relative_prefix.
3499 2006-04-28 Alan Modra <amodra@bigpond.net.au>
3502 * builtins.c (expand_builtin_memset): Expand val in original mode.
3504 2006-04-27 Eric Christopher <echristo@apple.com>
3506 * target-def.h (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Bracket
3507 with #ifndef/#endif.
3508 * config/darwin-c.c (darwin_ms_struct): New.
3509 (darwin_pragma_ms_struct): Ditto.
3510 (darwin_set_default_type_attributes): Ditto.
3511 * config/darwin-protos.h (darwin_pragma_ms_struct): Declare.
3512 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS):
3513 Register ms_struct pragma.
3514 * config/i386/darwin.h (REGISTER_TARGET_PRAGMAS): Declare.
3515 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Ditto.
3516 * config/rs6000/rs6000.c (rs6000_set_default_type_attributes): Call
3517 darwin_set_default_type_attributes if TARGET_MACHO.
3519 2006-04-27 Andrew MacLeod <amacleod@redhat.com>
3521 PR tree-optimization/26854
3522 * tree-vrp.c (remove_range_assertions): Use new Immuse iterator.
3523 * doc/tree-ssa.texi: Update immuse iterator documentation.
3524 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Use new iterator.
3525 * tree-ssa-dom.c (propagate_rhs_into_lhs): Use new iterator.
3526 * tree-flow-inline.h (end_safe_imm_use_traverse, end_safe_imm_use_p,
3527 first_safe_imm_use, next_safe_imm_use): Remove.
3528 (end_imm_use_stmt_p): New. Check for end of immuse stmt traversal.
3529 (end_imm_use_stmt_traverse): New. Terminate immuse stmt traversal.
3530 (move_use_after_head): New. Helper function to sort immuses in a stmt.
3531 (link_use_stmts_after): New. Link all immuses in a stmt consescutively.
3532 (first_imm_use_stmt): New. Get first stmt in an immuse list.
3533 (next_imm_use_stmt): New. Get next stmt in an immuse list.
3534 (first_imm_use_on_stmt): New. Get first immuse on a stmt.
3535 (end_imm_use_on_stmt_p): New. Check for end of immuses on a stmt.
3536 (next_imm_use_on_stmt): New. Move to next immuse on a stmt.
3537 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Use new iterator.
3538 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use new iterator.
3539 (perfect_nestify): Use new iterator.
3540 * tree-vect-transform.c (vect_create_epilog_for_reduction): Use new
3542 * tree-flow.h (struct immediate_use_iterator_d): Add comments.
3543 (next_imm_name): New field in struct immediate_use_iterator_d.
3544 (FOR_EACH_IMM_USE_SAFE, BREAK_FROM_SAFE_IMM_USE): Remove.
3545 (FOR_EACH_IMM_USE_STMT, BREAK_FROM_IMM_USE_STMT,
3546 FOR_EACH_IMM_USE_ON_STMT): New immediate use iterator macros.
3547 * tree-cfg.c (replace_uses_by): Use new iterator.
3548 * tree-ssa-threadedge.c (lhs_of_dominating_assert): Use new iterator.
3549 * tree-ssa-operands.c (correct_use_link): Remove.
3550 (finalize_ssa_use_ops): No longer call correct_use_link.
3552 2006-04-27 Stuart Hastings <stuart@apple.com>
3554 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): New.
3555 * config/t-darwin (crt3.o): Use it.
3556 * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Remove
3557 'pmode', use Pmode instead of SImode for SYMBOL_REF.
3558 * config/rs6000/rs6000.md (call_indirect_nonlocal_sysv,
3559 call_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
3560 call_value_nonlocal_sysv): Suffix with the "P" macro for 32/64
3563 2006-04-27 Roger Sayle <roger@eyesopen.com>
3565 * expmed.c (store_fixed_bit_field): If we're not optimizing for
3566 size, force the intermediate into a new pseudo rather instead of
3567 performing both a bitwise AND and a bitwise IOR in memory.
3569 2006-04-27 Richard Guenther <rguenther@suse.de>
3571 PR rtl-optimization/26685
3572 * params.def (PARAM_MAX_CSE_INSNS): Correct typo that named
3573 this one "max-flow-memory-locations".
3575 2006-04-27 Richard Guenther <rguenther@suse.de>
3577 PR tree-optimization/25148
3578 * tree-vrp.c (compare_values): Remove code dealing with
3579 comparisons against type min/max value. Honour overflow
3580 and negative constants in code dealing with comparisons
3581 of plus and minus expressions.
3582 (value_inside_range): Use fold_binary with LE_EXPR and
3583 GE_EXPR rather than compare_values.
3585 2006-04-27 Dirk Mueller <dmueller@suse.de>
3587 * config/i386/xmmintrin.h (_mm_shuffle_pi16): Declare
3590 2006-04-26 Kenneth Zadeck <zadeck@naturalbridge.com>
3592 * basic-block.h (safe_insert_insn_on_edge): Removed.
3593 * cfgrtl.c (mark_killed_regs, safe_insert_insn_on_edge): Removed.
3595 2006-04-26 David Edelsohn <edelsohn@gnu.org>
3596 Paolo Bonzini <bonzini@gnu.org>
3599 * combine.c (simplify_and_const_int_1): Use gen_int_mode.
3600 (simplify_and_const_int): Same.
3602 2006-04-26 Aldy Hernandez <aldyh@redhat.com>
3604 * tree-ssa-dse.c (dse_optimize_stmt): Remove unused variable USE.
3606 2006-04-26 Jakub Jelinek <jakub@redhat.com>
3609 * cgraph.c (cgraph_varpool_finalize_decl): Don't call
3610 cgraph_varpool_assemble_pending_decls if -fopenmp, unless
3611 cgraph_global_info_ready.
3614 * tree-cfg.c (find_outermost_region_in_block): Handle RESX_EXPR.
3617 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for if
3618 either decl or init is error_mark_node.
3621 * tree-flow.h (struct omp_region): Add sched_kind.
3622 * omp-low.c (expand_parallel_call): Use region->inner->sched_kind
3623 instead of extracting omp for data.
3624 (expand_omp_for): Save extracted sched_kind.
3626 2006-04-25 Roger Sayle <roger@eyesopen.com>
3628 * expmed.c (store_bit_field): Also check whether the bitsize is
3629 valid for the machine's "insv" instruction before moving the
3630 target into a pseudo for use with the insv.
3631 * config/i386/predicates.md (const8_operand): New predicate.
3632 * config/i386/i386.md (extv, extzv, insv): Use the new
3633 const8_operand predicate where appropriate.
3635 2006-04-25 DJ Delorie <dj@redhat.com>
3637 * doc/install.texi (Specific): Clarify that this is not a list of
3638 supported hosts or targets.
3640 2006-04-25 Richard Sandiford <richard@codesourcery.com>
3642 PR rtl-optimization/26725
3643 * cfgrtl.c (rtl_redirect_edge_and_branch_force): Set the source
3644 block's BB_DIRTY flag.
3646 2006-04-25 Geoffrey Keating <geoffk@apple.com>
3648 * dwarf2out.c (size_of_locs): Don't fill dw_loc_addr if there
3651 * dwarf2asm.c (dw2_asm_output_data): Don't generate RTL just
3652 to print an integer.
3654 2006-04-25 David Edelsohn <edelsohn@gnu.org>
3656 * varasm.c (align_variable): New function.
3657 (get_block_for_decl): Apply align_variable to DECL before
3658 calculating section information.
3659 (assemble_variable): Split out alignment computation.
3661 2006-04-25 Andreas Krebbel <krebbel1@de.ibm.com>
3663 * expmed.c (store_bit_field): Handle paradoxical subregs on big endian
3666 2006-04-25 Bernd Schmidt <bernd.schmidt@analog.com>
3668 * genmodes.c (make_vector_mode): Allow making VECTOR_MODE_INT of a
3669 MODE_PARTIAL_INT mode.
3670 * config/bfin/bfin-modes.def: Add V2PDI and V2SI.
3671 * config/bfin/bfin.c (print_operand): Add macflag and mac/msu modifiers
3673 (hard_regno_mode_ok): V2PDImode is ok for accumulators.
3674 * config/bfin/bfin.h (CLASS_MAX_NREGS, HARD_REGNO_NREGS): Handle
3676 * config/bfin/predicates.md (const01_operand, vec_shift_operand):
3678 * config/bfin/bfin.md (UNSPEC_MUL_WITH_FLAG, UNSPEC_MAC_WITH_FLAG):
3680 (MACFLAG_NONE, MACFLAG_T, MACFLAG_FU, MACFLAG_TFU, MACFLAG_IS,
3681 MACFLAG_IU, MACFLAG_W32, MACFLAG_M, MACFLAG_S2RND, MACFLAG_ISS2,
3682 MACFLAG_IH): Likewise.
3683 (movstricthi_1): Renamed from "*movstricthi".
3684 (load_accumulator, load_accumulator_pair, movsi_insv, insv,
3685 ssaddsi3, sssubsi3, ssnegsi2, signbitssi2, smaxhi3, sminhi3,
3686 abshi2, neghi2, ssneghi2, signbitshi2, movhi_low2high,
3687 movhi_high2high, movhi_low2low, movhi_high2low, movhiv2hi_low,
3688 movhiv2hi_high, composev2hi, movv2hi_hi, movv2hi_hi_low,
3689 movv2hi_hi_high, ssaddhi3, sssubhi3, ssaddv2hi3, sssubv2hi3,
3690 addsubv2hi3, subaddv2hi3, ssaddsubv2hi3, sssubaddv2hi3,
3691 sublohiv2hi3, subhilov2hi3, sssublohiv2hi3, sssubhilov2hi3,
3692 addlohiv2hi3, addhilov2hi3, ssaddlohiv2hi3, ssaddhilov2hi3,
3693 mulhisi_ll, mulhisi_lh, mulhisi_hl, mulhisi_hh, ssnegv2hi2,
3694 ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3, packv2hi,
3695 flag_mulhi, flag_mulhisi_parts, flag_machi, flag_machi_acconly,
3696 flag_macinithi, flag_macinit1hi, flag_mulv2hi, flag_mulv2hi_parts,
3697 flag_macv2hi_parts, flag_macv2hi_parts_acconly,
3698 flag_macinitv2hi_parts, flag_macinit1v2hi_parts): New patterns.
3700 * doc/rtl.texi (ss_ashift): Improve wording.
3702 2006-04-24 Geoffrey Keating <geoffk@apple.com>
3704 * dwarf2out.c (verify_marks_clear): New.
3705 (prune_unused_types): Call verify_marks_clear initially, not
3708 2006-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
3710 * rtl.def (SS_ASHIFT, SS_NEG): New codes.
3711 * doc/rtl.texi: Document them.
3712 * simplify-rtx.c (simplify_unary_operation,
3713 simplify_binary_operation_1): Don't abort when we see them.
3715 2006-04-24 Mark Mitchell <mark@codesourcery.com>
3718 2006-04-23 Mark Mitchell <mark@codesourcery.com>
3719 * configure.ac: Completely disregard languages that are not
3721 * configure: Regenerated.
3723 2006-04-24 Andrew Pinski <pinskia@gcc.gnu.org>
3724 Richard Guenther <rguenther@suse.de>
3726 PR tree-optimization/27236
3727 * tree-inline.c (copy_body_r): Make sure to copy
3728 TREE_THIS_VOLATILE flag.
3730 2006-04-24 Richard Guenther <rguenther@suse.de>
3733 * tree-complex.c (update_parameter_components): Don't handle
3734 unused parameters which have no default def.
3736 2006-04-24 Andrew Pinski <pinskia@gcc.gnu.org>
3737 Richard Guenther <rguenther@suse.de>
3739 PR tree-optimization/27218
3740 * tree-inline.c (expand_call_inline): Strip useless type
3741 conversions for the return slot address.
3743 2006-04-24 Richard Guenther <rguenther@suse.de>
3745 * cfgloop.h (struct loops): Remove unused field array. Reorder
3747 (LOOP_PREFETCH): Remove.
3749 2006-04-24 Richard Guenther <rguenther@suse.de>
3751 PR tree-optimization/22525
3752 * value-prof.c (tree_mod_pow2): Remove unnecessary temporary
3753 variable, adjust types of generated expressions.
3755 2006-04-23 H.J. Lu <hongjiu.lu@intel.com>
3757 * Makefile.in (c-convert.o): Add dependency on $(TARGET_H)
3758 (tree-vect-patterns.o): Likewise.
3760 (cselib.o): Likewise.
3761 (loop-doloop.o): Likewise.
3762 (regclass.o): Likewise.
3763 (reload1.o): Likewise.
3764 (explow.o): Replace target.h with $(TARGET_H).
3765 (ipa-prop.o): Likewise.
3766 (ipa-cp.o): Likewise.
3767 (ipa-inline.o): Likewise.
3768 (reorg.o): Likewise.
3769 (reg-stack.o): Likewise.
3771 2006-04-23 Eric Botcazou <ebotcazou@adacore.com>
3773 * tree-tailcall.c (pass_tail_recursion): Use gate_tail_calls too.
3775 2006-04-23 Mark Mitchell <mark@codesourcery.com>
3777 * print-tree.c (print_node): Print DECL_BIT_FIELD_TYPE.
3779 * configure.ac: Completely disregard languages that are not
3781 * configure: Regenerated.
3784 * c-common.h (c_build_bitfield_integer_type): Declare.
3785 * c-decl.c (c_build_bitfield_integer_type): Move to ...
3786 * c-common.c (c_build_bitfield_integer_type): ... here.
3788 2006-04-23 Roger Sayle <roger@eyesopen.com>
3791 * config/fr30/fr30.md (define_split): Avoid calling gen_lowpart on
3792 a SImode SUBREG of a floating point register after no_new_pseudos.
3794 2006-04-23 Roger Sayle <roger@eyesopen.com>
3796 * config/fr30/fr30.md (addsi_small_int): Use REGNO_PTR_FRAME_P to
3797 identify potentially eliminable registers to additionally catch
3798 VIRTUAL_INCOMING_ARGS_REGNUM.
3799 (addsi3): Update the conditions on when to use addsi_small_int.
3801 2006-04-23 Roger Sayle <roger@eyesopen.com>
3804 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Check REGNO for
3805 STACK_POINTER_RTX and FRAME_POINTER_RTX instead of comparing the
3806 rtx to stack_pointer_rtx or frame_pointer_rtx directly.
3808 2006-04-23 Eric Botcazou <ebotcazou@adacore.com>
3810 * fold-const.c (range_predecessor): Use operand_equal_p
3811 as the predicate for equality.
3812 (range_successor): Likewise.
3814 2006-04-22 Kazu Hirata <kazu@codesourcery.com>
3817 * config/soft-fp/op-common.h: Fix a typo.
3819 2006-04-22 Frank Ch. Eigler <fche@redhat.com>
3822 * common.opt (flag_mudflap_threads): Overload flag_mudflap.
3823 * tree-mudflap.c (flag_mudflap_threads): Derive from flag_mudflap.
3825 2006-04-22 Kazu Hirata <kazu@codesourcery.com>
3827 * config/soft-fp/op-common.h, double-int.h, tree-ssa-dom.c:
3829 * doc/tm.texi: Fix a typo.
3831 2006-04-21 Geoffrey Keating <geoffk@apple.com>
3833 * dwarf2out.c (struct die_struct): Document that die_sib makes
3834 a circular linked list.
3835 (FOR_EACH_CHILD): New.
3836 (reverse_die_lists): Delete.
3837 (reverse_all_dies): Delete.
3838 (add_dwarf_attr): Correct documentation.
3839 (remove_child_with_prev): New.
3840 (remove_child_TAG): Update for change to die_struct, use
3841 remove_child_with_prev.
3842 (add_child_die): Update for change to die_struct.
3843 (splice_child_die): Use remove_child_with_prev and add_child_die.
3844 (print_die): Use FOR_EACH_CHILD.
3845 (die_checksum): Likewise.
3846 (assign_symbol_names): Likewise.
3847 (output_location_lists): Likewise.
3848 (build_abbrev_table): Likewise.
3849 (calc_die_sizes): Likewise.
3850 (mark_dies): Likewise.
3851 (unmark_dies): Likewise.
3852 (unmark_all_dies): Likewise.
3853 (output_die): Likewise.
3854 (prune_unused_types_mark): Likewise.
3855 (prune_unused_types_walk): Likewise.
3856 (same_die_p): Update for change to die_struct.
3857 (break_out_includes): Likewise.
3858 (prune_unused_types_prune): Likewise.
3859 (add_sibling_attributes): Use FOR_EACH_CHILD, simplify logic.
3860 (prune_unmark_dies): Use FOR_EACH_CHILD, don't clear die_mark if
3862 (dwarf2out_finish): Don't call reverse_all_dies.
3864 2006-04-21 Eric Christopher <echristo@apple.com>
3866 * df-core.c, tree-outof-ssa.c, config/i386/i386.c: Fix typos
3867 in comments and function names.
3869 2006-04-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3872 * c-typeck.c (digest_init): Robustify.
3874 * c-typeck.c (pop_init_level): Simplify.
3876 2006-04-21 Steve Ellcey <sje@cup.hp.com>
3878 * config/pa/t-pa64: Add dependencies on $(GCC_PASSES).
3880 2006-04-21 Paul Brook <paul@codesourcery.com>
3882 * config/arm/arm.c (arm_override_options): Error on iWMMXt and
3883 hardware floating point.
3885 2006-04-21 David Edelsohn <edelsohn@gnu.org>
3887 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Add sfp to
3890 2006-04-21 Nick Clifton <nickc@redhat.com>
3892 * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Include
3895 2006-04-21 Alan Modra <amodra@bigpond.net.au>
3898 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
3899 C++ lang type in traceback table for Objective-C++.
3901 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Update comment.
3903 2006-04-20 H.J. Lu <hongjiu.lu@intel.com>
3905 * config/i386/i386.c (asm_preferred_eh_data_format): Reformat.
3907 2006-04-20 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3910 * tree-mudflap.c (mudflap_finish_file): Skip function when there
3911 were errors. Remove check for erroneous objects.
3913 2006-04-20 Jeff Law <law@redhat.com>
3915 PR tree-optimization/26854
3916 * tree-ssa-dse.c (dse_optimize_stmt): Avoid num_imm_uses when
3917 checking for zero or one use.
3918 * tree-ssa-dom.c (propagate_rhs_into_lhs): Similarly.
3919 * tree-cfgcleanup.c (merge_phi_nodes): Similarly.
3920 * tree-ssa-reassoc.c (negate_value): Similarly.
3921 (reassociate_bb): Similarly.
3923 2006-04-20 Jakub Jelinek <jakub@redhat.com>
3925 * c-pretty-print.c (pp_c_direct_abstract_declarator): Print
3926 TYPE_MAX_VALUE (TYPE_DOMAIN (t)) + 1 for ARRAY_TYPE rather
3927 than plain TYPE_MAX_VALUE (TYPE_DOMAIN (t)).
3929 2006-04-20 Alan Modra <amodra@bigpond.net.au>
3931 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Consume all
3932 fp regs if the last fp arg doesn't fit in regs.
3934 2006-04-20 Kaz Kojima <kkojima@gcc.gnu.org>
3937 * config/sh/sh.md (movsicc_true+3): Tweak condition for the case
3938 that the last insn has the REG_INC note.
3940 2006-04-19 Carlos O'Donell <carlos@codesourcery.com>
3941 Nathan Sidwell <nathan@codesourcery.com>
3944 * stor-layout.c (update_alignment_for_field): Do not align
3946 (place_union_field): Place union field at the start of the union.
3947 (place_field): Move ERROR_MARK check later, and use the current
3948 allocation position to maintain monotonicity.
3950 2006-04-19 Zdenek Dvorak <dvorakz@suse.cz>
3952 * dominance.c: Include timevar.h.
3953 (calculate_dominance_info): Use TV_DOMINANCE.
3954 * timevar.def (TV_DOMINANCE): New timevar.
3955 * Makefile.in (dominance.o): Add TIMEVAR_H dependency.
3957 2006-04-19 Andreas Krebbel <krebbel1@de.ibm.com>
3959 PR rtl-optimization/14261
3960 * ifcvt.c (noce_emit_move_insn): Call store_bit_field if the resulting
3961 move would be an INSV insn.
3962 (noce_process_if_block): Don't optimize if the destination is a
3963 ZERO_EXTRACT which can't be handled by noce_emit_move_insn.
3965 2006-04-19 Andreas Krebbel <krebbel1@de.ibm.com>
3967 * config/s390/s390.md: Add comments with the instructions emitted
3968 by an insn pattern if macros are used.
3970 2006-04-19 Alan Modra <amodra@bigpond.net.au>
3972 PR rtl-optimization/26026
3973 * fold-const.c (fold_binary): Optimize div and mod where the divisor
3974 is a known power of two shifted left a variable amount.
3976 2006-04-18 Geoffrey Keating <geoffk@apple.com>
3978 * dwarf2out.c (prune_unused_types_update_strings): Don't add strings
3979 to hash table twice when the debug_str section has SECTION_MERGE.
3981 2006-04-18 Joseph S. Myers <joseph@codesourcery.com>
3983 * config/soft-fp: New directory. From glibc.
3984 * config/soft-fp/t-softfp: New.
3985 * config/soft-fp/README: New.
3986 * mklibgcc.in: Handle LIB2FUNCS_EXCLUDE.
3987 * Makefile.in (LIB2FUNCS_EXCLUDE, SFP_MACHINE): New.
3988 (libgcc.mk): Pass LIB2FUNCS_EXCLUDE.
3989 (LIBGCC_DEPS): Add $(SFP_MACHINE).
3990 * config.gcc: Use rs6000/t-fprules-fpbit or
3991 rs6000/t-fprules-softfp and soft-fp/t-softfp together with
3993 * config/rs6000/sfp-machine.h: New. Based on glibc.
3994 * config/rs6000/t-fprules-fpbit, config/rs6000/t-fprules-softfp:
3996 * config/rs6000/t-fprules: Remove fp-bit rules.
3997 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Use +=.
3998 * config/rs6000/t-linux64: Likewise. Remove duplicates from
3999 LIB2FUNCS_EXTRA. Remove fp-bit rules.
4000 (softfp_wrap_start, softfp_wrap_end): New.
4002 2006-04-18 DJ Delorie <dj@redhat.com>
4004 * config/m32c/m32c.h (PTRDIFF_TYPE): Define.
4006 2006-04-18 Devang Patel <dpatel@apple.com>
4008 * doc/invoke.texi (-Wuninitialized): Clarify -O connection.
4010 2006-04-18 Nick Clifton <nickc@redhat.com>
4012 * config/sh/t-symbian: Add rule to build sh-c.o
4013 * config/sh/symbian.c (sh_symbian_mark_dllexport): Replace use
4014 of DECL_NON_ADDR_CONST_P with DECL_DLLIMPORT_P.
4015 (sh_symbian_encode_section_info): Likewise.
4017 2006-04-18 Andreas Krebbel <krebbel1@de.ibm.com>
4019 * builtins.c (expand_builtin_strcmp): Cover label definition of
4020 do_libcall with HAVE_cmpstrnsi.
4022 2006-04-18 Kazu Hirata <kazu@codesourcery.com>
4024 * function.c (temp_slots_at_level, max_slot_level): Use VEC
4026 * function.h (temp_slot_p): New.
4027 (function): Change the type of x_used_temp_slots to
4028 VEC(temp_slot_p,gc) *.
4030 2006-04-18 Nick Clifton <nickc@redhat.com>
4032 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove reference to
4033 flag_strength_reduce.
4035 * doc/tm.texi (TARGET_SECTION_TYPE_FLAGS): Fix typo.
4037 2006-04-18 Paolo Bonzini <bonzini@gnu.org>
4041 Partial revert of revision 112637
4042 2006-04-03 Paolo Bonzini <bonzini@gnu.org>
4043 Dale Johannesen <dalej@apple.com>
4046 * regclass.c (struct reg_pref): Update documentation.
4047 (regclass): Set prefclass to NO_REGS if memory is the best option.
4048 (record_reg_classes): Cope with a prefclass set to NO_REGS.
4050 2006-04-18 Paolo Bonzini <bonzini@gnu.org>
4052 PR tree-optimization/26821
4053 * tree-ssa-math-opts.c (get_constant_one): New.
4054 (insert_reciprocals): Use it.
4056 2006-04-17 Geoffrey Keating <geoffk@apple.com>
4058 * dwarf2out.c (free_AT): Delete.
4059 (remove_AT): Update string ref counts.
4060 (remove_child_TAG): Don't call free_die.
4062 (break_out_includes): Don't call free_die on DW_TAG_GNU_BINCL
4063 or DW_TAG_GNU_EINCL.
4064 (prune_unused_types_walk_attribs): Reset string refcounts.
4065 (prune_unused_types_update_strings): New.
4066 (prune_unused_types_prune): Don't make unnecessary stores. Don't
4067 call free_die. Do call prune_unused_types_update_strings.
4068 (prune_unused_types): Empty debug_str_hash.
4070 2006-04-17 Roger Sayle <roger@eyesopen.com>
4072 * expr.c (expand_assignment): Optimize away no-op moves where the
4073 source and destination are equal and have no side-effects.
4075 2006-04-17 Richard Guenther <rguenther@suse.de>
4078 * reload.c (push_reload): Guard calls to get_secondary_mem
4081 2006-04-16 Kazu Hirata <kazu@codesourcery.com>
4083 * alias.c (reg_base_value, old_reg_base_value): Change the
4084 type to VEC(rtx,gc) *.
4085 (REG_BASE_VALUE, find_base_value, record_set,
4086 init_alias_analysis): Use VEC instead of VARRAY.
4088 * alias.c (alias_sets): Change the type to
4089 VEC(alias_set_entry,gc) *.
4090 (get_alias_set_entry, new_alias_set, record_alias_subset): Use
4091 VEC instead of VARRAY.
4092 (last_alias_set): Remove.
4094 * cgraph.h (cgraph_edge_p): New.
4095 Update the prototype of cgraph_function_versioning.
4096 * cgraphunit.c (cgraph_copy_node_for_versioning,
4097 cgraph_function_versioning): Use VEC instead of VARRAY.
4098 * ipa-cp.c (ipcp_insert_stage): Likewise.
4100 2006-04-16 Roger Sayle <roger@eyesopen.com>
4103 * fold-const.c (fold_ternary): When converting "A ? B : C" into either
4104 "A op B" or "A op C", we may need to convert A to the type of B and C.
4106 2006-04-16 Adam Nemet <anemet@caviumnetworks.com>
4108 * target.h (struct gcc_target): Add mode_rep_extended.
4109 * rtlanal.c (num_sign_bit_copies_in_rep): New global.
4110 (init_num_sign_bit_copies_in_rep): Initialize it using
4112 (truncate_to_mode): Use it.
4113 (init_rtlanal): Call init_num_sign_bit_copies_in_rep.
4114 * targhooks.h (default_mode_rep_extended): Declare it.
4115 * targhooks.c (default_mode_rep_extended): Define it.
4116 * target-def.h (TARGET_MODE_REP_EXTENDED): New macro. Default to
4117 default_mode_rep_extended.
4118 (TARGET_INITIALIZER): Include it.