1 2006-08-06 Andreas Schwab <schwab@suse.de>
3 * config/m68k/m68k.c (m68k_output_function_epilogue): Fix format
4 string. Whitespace and comment fixup.
6 2006-08-05 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
9 * c-decl.c (validate_proto_after_old_defn): Return false on invalid
13 * c-typeck.c (build_modify_expr): Test earlier for non-lvalues.
16 * c-parser.c (c_parser_postfix_expression_after_paren_type): Robustify.
18 2006-08-04 Jan Hubicka <jh@suse.cz>
22 * reload.c (push_reload): Patch out the mismatching instruction;
24 (find_reload): Bail out if the instruction was patched out.
26 2006-08-04 Jan Hubicka <jh@suse.cz>
28 PR tree-optimization/24888
29 * tree-inline.c (expand_call_inline): Do not re-record variables.
30 (declare_inline_vars): Add variable to unexpanded_var_list.
32 2006-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33 Roger Sayle <roger@eyesopen.com>
35 PR rtl-optimization/26244
36 * cse.c (fold_rtx): Correctly associate shifts when const_arg1 and/or
37 inner_const are negative or greater than or equal to the bitsize of
38 MODE. If SHIFT_COUNT_TRUNCATED is false, the values aren't associated.
39 Otherwise, the values are masked using GET_MODE_BITSIZE (mode) - 1.
40 Simplify complicated if statement. For ASHIFT and LSHIFTRT, return
41 CONST0_RTX (mode) when the new shift count is greater than or equal to
42 to the bitsize of the object being shifted and XEXP (y, 0) has no side
45 2006-08-04 Kazu Hirata <kazu@codesourcery.com>
47 * tree-cfg.c: Fix a comment typo.
49 2006-08-03 Mark Mitchell <mark@codesourcery.com>
52 * varasm.c (output_constant): Give the front end another chance to
53 expand constants, after stripping NOPs.
55 2006-08-03 Jan Hubicka <jh@suse.cz>
57 * domwalk.c (walk_dominator_tree): Reorganize to non-recursive
60 2006-08-03 Dorit Nuzman <dorit@il.ibm.com>
62 PR tree-optimization/27770
63 * tree-vectorizer.h (get_vectype_for_scalar_type): Function
64 declaration removed (moved to tree-flow.h).
65 (vect_can_force_dr_alignment_p): Likewise.
66 * tree-flow.h (get_vectype_for_scalar_type): New function declaration
67 (moved from tree-vectorizer.h).
68 (vect_can_force_dr_alignment_p): Likewise.
69 * tree-vectorizer.c (vect_print_dump_info): Allow calling this function
70 from outside the vectorizer - in particular from cgraph stage.
71 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Don't increase
72 the alignment of global arrays when -fsection-anchors is enabled.
73 * cgraphunit.c (cgraph_increase_alignment): New function.
74 (cgraph_optimize): Call cgraph_increase_alignment.
76 2006-08-03 David Edelsohn <edelsohn@gnu.org>
79 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
80 not reload a SPE symbol_ref into a lo_sum address.
82 2006-08-02 Daniel Jacobowitz <dan@codesourcery.com>
85 * dwarf2out.c (prune_unused_types_prune): Move call to
86 prune_unused_types_update_strings to cover the parent DIE also.
88 2006-08-02 Jan Hubicka <jh@suse.cz>
91 * tree-cfg.c (change_bb_for_stmt): New function.
92 (tree_merge_blocks, tree_split_blocks): Use it.
94 2006-08-01 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
100 * toplev.c (compile_file): Return early on errorcount or sorrycount.
101 * cgraphunit.c (cgraph_finalize_compilation_unit): Likewise.
102 (cgraph_optimize): Likewise.
104 2006-08-01 Stuart Hastings <stuart@apple.com>
106 * rtl.h (UINTVAL) New.
107 * config/rs6000/rs6000.c (SMALL_INT) Use it.
108 * testsuite/gcc.dg/20060801-1.c: New.
110 2006-08-01 Daniel Jacobowitz <dan@codesourcery.com>
113 * c-typeck.c (build_external_type): Mark used enum types.
114 * dwarf2out.c (dwarf2out_abstract_function): Save and restore
116 (gen_subprogram_die): Whitespace fix.
118 2006-08-01 Jan Hubicka <jh@suse.cz>
120 * tree-outof-ssa.c (check_replaceable): Do not allocate def_vars
121 bitmap when not needed.
122 * tree-ssa-pre.c (bitmap_set_and, bitmap_set_and_compl): Free temporary
125 2006-08-01 Dirk Mueller <dmueller@suse.de>
127 * tree-vrp.c (fix_equivalence_set): Avoid bitmap memory leak.
129 2006-07-31 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
131 * Makefile.in: Revert part of previous patch:
132 Replace $(VARRAY_H) by varray.h in definition of BASIC_BLOCK_H
135 2006-07-30 Eric Christopher <echristo@apple.com>
138 * doc/extend.texi (i386 Variable Attributes): Add anchor.
139 (PowerPC Variable Attributes): New section.
141 2006-07-30 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
143 PR target/28126 (partial fix)
144 * config/mips/mips.md (tls_get_tp_<mode>): Set can_delay to no.
146 2006-07-28 Jan Hubicka <jh@suse.cz>
148 PR rtl-optimization/28071
149 * cfgrtl.c (rtl_delete_block): Free regsets.
150 * flow.c (allocate_bb_life_data): Re-use regsets if available.
152 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
154 * Makefile.in: Use $(HEADER_H) instead of header.h in dependencies
155 and variables used in dependencies.
157 2006-07-27 Arjan van de Ven <arjan@linux.intel.com>
159 * config/i386/i386.md (stack_tls_protect_set_di) Use %gs rather than
160 %fs for -mcmodel=kernel.
161 (stack_tls_protect_test_di): Likewise.
163 2006-07-27 Carlos O'Donell <carlos@codesourcery.com>
165 * Makefile.in: Use mkinstalldirs.
167 2006-07-27 H.J. Lu <hongjiu.lu@intel.com>
170 * opts-common.c (prune_options): Skip joined switches.
172 2006-07-27 Jan Hubicka <jh@suse.cz>
174 PR rtl-optimization/28071
175 * cselib.c (cselib_process_insn): Don't remove useless values too
176 often for very large hashtables.
178 2006-07-27 Jan Hubicka <jh@suse.cz>
180 PR rtl-optimization/28071
181 * global.c (greg_obstack): New obstack.
182 (allocate_bb_info): Use it.
183 (free_bb_info): Likewise.
184 (modify_reg_pav): Likewise.
186 2006-07-27 Roger Sayle <roger@eyesopen.com>
188 * builtins.c (fold_fixed_mathfn): When long and long long are the
189 same size, canonicalize llceil*, llfloor*, llround* and llrint*
190 functions to their lceil*, lfloor*, lround* and lrint* forms.
192 2006-07-27 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
195 * config/m32r/m32r.md (branch_insn): Reduce pc range for short
197 (rev_branch_insn): Likewise.
199 2006-07-27 Jan Hubicka <jh@suse.cz>
201 PR rtl-optimization/28071
202 * regmove.c (reg_is_remote_constant_p): Avoid quadratic behaviour.
203 (reg_set_in_bb, max_reg_computed): New static variables.
204 (regmove_optimize): Free the new array.
205 (fixup_match_1): Update call of reg_is_remote_constant_p.
207 2006-07-26 Jan Hubicka <jh@suse.cz>
209 PR tree-optimization/27882
210 * cgraph.c (cgraph_remove_node): Clear needed, reachable, next, previous
212 * cgraphunit.c (cgraph_reset_node): Expect cgraph_remove_node to kill
214 (cgraph_analyze_compilation_unit): Likewise.
215 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
216 * ipa-inline.c (cgraph_decide_recursive_inlining): Likewise.
217 (cgraph_early_inlinine): Make order garbage collected.
218 * Makefile.in (gt-ipa-inline): New garbagecollected file.
220 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
222 * dbxout.c (output_types_sort): Add a comment.
223 (output_used_types): Free the VEC.
225 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
227 * function.c (reorder_fix_fragments): Delete.
228 (reorder_blocks): Don't call it.
229 (reorder_blocks_1): Put all subblocks under the origin block.
231 2006-07-26 Zdenek Dvorak <dvorakz@suse.cz>
233 PR rtl-optimization/27907
234 * expr.c (force_operand): Use convert_move to handle FLOAT_EXTEND and
237 2006-07-25 Roger Sayle <roger@eyesopen.com>
240 * convert.c (convert_to_integer): When transforming (T)foo(x) into
241 bar(x) check that bar's result type can represent all the values of T.
243 2006-07-25 Zdenek Dvorak <dvorakz@suse.cz>
245 * tree-chrec.c (chrec_convert_aggressive): Return NULL on failure.
247 2006-07-25 Nick Clifton <nickc@redhat.com>
249 * ggc-page.c (NUM_SIZE_LOOKUP): New constant - the length of the
251 (ggc_alloc_stat): Use NUM_SIZE_LOOKUP.
252 (ggc_pch_count_object): Likewise.
253 (ggc_pch_alloc_object): Likewise.
254 (ggc_pch_write_object): Likewise.
255 (init_ggc): Do not attempt to initialize entries in the
256 size_lookup[] array for objects whose size is greater than than
257 the length of the array.
259 2006-07-25 Daniel Jacobowitz <dan@codesourcery.com>
261 * dbxout.c (output_used_types_helper): Push queued types
263 (output_types_sort): New.
264 (output_used_types): Collect used types on a VEC and sort them
267 2006-07-24 Richard Guenther <rguenther@suse.de>
270 * cgraph.c (cgraph_remove_node): Do not check if dumps
272 * cgraphunit.c (cgraph_optimize): Likewise.
274 2006-07-24 Jan Hubicka <jh@suse.cz>
276 PR rtl-optimization/28071
277 * tree-cfg.c (tree_split_block): Do not allocate new stmt_list nodes.
278 * tree-iterator.c (tsi_split_statement_list_before): Do not crash when
279 splitting before first stmt.
281 2006-07-24 Jan Hubicka <jh@suse.cz>
283 PR rtl-optimization/28071
284 * ipa-inline.c (update_caller_keys): Remove edges that
285 are no longer inline candidates.
287 2006-07-23 Daniel Jacobowitz <dan@codesourcery.com>
290 * dbxout.c (output_used_types_helper, output_used_types): New.
291 (dbxout_symbol): Call output_used_types.
293 2006-07-23 Jan Hubicka <jh@suse.cz>
297 * cgraph.c (cgraph_varpool_nodes): Export.
298 (decide_is_variable_needed): Ignored "used" attribute in
300 * cgraph.h (cgraph_varpool_nodes): Declare.
301 * cgraphunit.c (decide_is_function_needed): Ignored "used" attribute in
304 2006-07-23 Roger Sayle <roger@eyesopen.com>
307 * gthr-solaris.h: Prototype __gthrw forms of thr_self, mutex_init and
308 mutex_destroy even when !_LIBOOBJC. Remove duplicate prototype of
309 the __gthrw form of thr_keycreate.
310 (__gthread_key_delete): Silence the unused argument warning.
312 2006-07-23 Steven Bosscher <steven@gcc.gnu.org>
315 * config/elfos.h (ASM_OUTPUT_ASCII): Remove 'register' marks.
316 Cache the last found '\0' marker to avoid quadratic behavior.
318 2006-07-23 Jan Hubicka <jh@suse.cz>
320 * i386.md (subsi_3_zext): Fix output template.
322 2006-07-21 Mike Stump <mrs@apple.com>
324 * doc/invoke.texi (C++ Dialect Options): Note that
325 -fvisibility-inlines-hidden doesn't affect explicitly
326 instantiationed inline methods.
328 2006-07-20 Roger Sayle <roger@eyesopen.com>
330 * config.gcc (i[34567]86-*-solaris2*): Add usegas.h to $tm_file
331 if the target assembler is GNU binutils' gas.
332 * config/i386/sol2-10.h (ASM_SPEC): Check USE_GAS to determine
333 whether to pass GNU gas or native as command line options.
335 2006-07-20 Jason Merrill <jason@redhat.com>
337 * tree.c (remove_attribute): New fn.
338 * tree.h: Declare it.
340 2006-07-20 Paul Brook <paul@codesourcery.com>
343 * cse.c (cse_insn): Add destination addresses to hash table. Check if
344 they are invalidated by this instruction.
346 2006-07-21 Danny Smith <dannysmith@users.sourceforge.net>
349 * config/i386/cygming.h (MAX_OFILE_ALIGNMENT): Define.
351 2006-07-20 Eric Christopher <echristo@apple.com>
354 * config/i386/i386.h (OPTION_DEFAULT_SPECS): Reorder.
356 2006-07-19 Eric Christopher <echristo@apple.com>
358 * config/t-slibgcc-darwin (stmp-lipo): Remove.
359 Rewrite dependencies for libgcc_s.1.dylib.
361 2006-07-19 Jakub Jelinek <jakub@redhat.com>
363 * except.c (duplicate_eh_regions_1): Clear next_peer.
365 2006-07-17 Nathan Sidwell <nathan@codesourcery.com>
367 * doc/invoke.texi (RS/6000 and PowerPC Options): Document that
368 -mlongcall does not guarantee all calls will be long.
369 * doc/extend.texi (long_call/short_call): Document that longcall
370 does not guarantee a long call will be used.
371 (longcall/shortcall): Likewise.
373 2006-07-18 Roger Sayle <roger@eyesopen.com>
376 * expmed.c (expand_shift): Additionally check that the shift_cost
377 is not MAX_COST and that INTVAL(op1) is less than MAX_BITS_PER_WORD
378 before implementing a LSHIFT_EXPR as a sequence of additions.
379 * config/sh/sh.c (shift_costs): Return MAX_COST to inform the
380 middle-end that DImode shifts need to be synthesized by expand.
382 2006-07-18 Diego Novillo <dnovillo@redhat.com>
385 * tree-ssa-operands.c (access_can_touch_variable): Update
387 Return true if ALIAS is .GLOBAL_VAR.
389 2006-07-18 David Daney <ddaney@avtrex.com>
391 * gcc.c (display_help): Fix typo in help text.
393 2006-07-18 Olivier Hainque <hainque@adacore.com>
395 * tree.h (categorize_ctor_elements): Adjust prototype and add
396 descriptive comment, both in accordance with the interface change
398 * varasm.c (constructor_static_from_elts_p): New function.
399 Whether a constructor node is a valid static constant initializer
400 if all its elements are.
401 (initializer_constant_valid_p) <CONSTRUCTOR value>: Use it.
402 * output.h: Declare it.
403 * expr.c (categorize_ctor_elements_1): Return whether the constructor
404 is a valid constant initializer instead of computing the number of
405 non-constant elements. Use constructor_static_from_elts_p for this
406 purpose. Replace the head comment with an indication that this is a
407 helper for categorize_ctor_elements.
408 (categorize_ctor_elements): Same interface change as for the _1
409 helper. Former head comment from this helper moved here, adjusted to
410 account for the interface changes.
411 (mostly_zeros_p): Adjust call to categorize_ctor_elements.
412 (all_zeros_p): Likewise.
413 * gimplify.c (gimplify_init_constructor): Decide whether we can make
414 static versions of the constructor from the categorize_ctor_elements
415 return value instead of the formerly computed number of non-constant
418 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
420 * configure: Regenerate.
421 * Makefile.in (build_libsubdir): New configure substitution
422 (build_libobjdir): New variable.
423 (BUILD_LIBIBERTY): Use it.
425 2006-07-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
428 * c-pragma.c (handle_pragma_pack): Handle invalid constants.
430 2006-07-18 Alexandre Oliva <aoliva@redhat.com>
433 * c-common.c (handle_weakref_attribute): Ignore attribute in
434 the same conditions the alias attribute is ignored.
436 2006-07-17 Carlos O'Donell <carlos@codesourcery.com>
438 * dbxout.c (dbxout_function_end): Do not increment scope_labelno.
439 (dbxout_begin_prologue): Increment scope_labelno.
441 2006-07-17 Richard Henderson <rth@redhat.com>
444 * tree-nested.c (create_tmp_var_for): Set DECL_COMPLEX_GIMPLE_REG_P
447 2006-07-17 Roger Sayle <roger@eyesopen.com>
448 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
450 * config/i386/gmon-sol2.c: Silence compilation warnings by partially
451 synchronizing code with config/sparc/gmon-sol2.c. Remove #if 0
452 blocks. #include "tconfig.h" and "tsystem.h" to prototype system
453 functions such as sbrk, write, etc.. Add function prototypes.
454 Convert function declarations from K&R to ISO C. Cast pointers
455 to "long" and "unsigned long" instead of "int" and "unsigned int".
456 Convert tokens following #endif into comments.
458 2006-07-17 Toon Moene <toon@moene.indiv.nluug.nl>
460 * invoke.texi: Remove mention of f77; Reformat table for
461 inline parameter options correctly; mention that -malign-double
462 is default on x86-64 targets.
464 2006-07-17 Zdenek Dvorak <dvorakz@suse.cz>
466 * tree-chrec.c (avoid_arithmetics_in_type_p): New.
467 (convert_affine_scev, chrec_convert_aggressive): Use
468 avoid_arithmetics_in_type_p. Do not check for the subtypes
471 2006-07-17 Richard Sandiford <richard@codesourcery.com>
474 * optabs.c (expand_doubleword_shift): Wrap the call to
475 do_compare_rtx_and_jump with NO_DEFER_POP and OK_DEFER_POP.
477 2006-07-17 Richard Sandiford <richard@codesourcery.com>
480 * optabs.c (expand_binop): Pass next_methods rather than methods
481 to expand_doubleword_shift.
483 2006-07-17 J"orn Rennecke <joern.rennecke@st.com>
486 * tree.h (dump_addr): Declare.
487 * print-tree.c (dump_addr): New function.
488 (print_node_brief, print_node): Use it.
489 * print-rtl.c (print_rtx): Likewise.
490 * common.opt (-fdump-noaddr): New option.
491 * doc/invoke.texi (-fdump-noaddr): Document.
492 * loop-unroll.c (si_info_hash): Make hash independent of addresses.
493 (ve_info_hash): Likewise.
495 2006-07-13 Andrew Haley <aph@redhat.com>
497 PR tree-optimization/19505
498 * tree-cfgcleanup.c (tree_forwarder_block_p): If we have an EH
499 edge leaving this block, make sure that the destination of this
500 block has only one predecessor.
502 2006-07-17 Richard Guenther <rguenther@suse.de>
504 PR tree-optimization/28238
505 * tree-inline.c (copy_bb): Check if we produced valid
506 gimple copying and substituting a stmt. If not, gimplify
509 2006-07-16 Eric Botcazou <ebotcazou@adacore.com>
511 * optabs.c (maybe_encapsulate_block): New function extracted from...
512 (emit_libcall_block): ...here. Invoke it on the block of insns to
513 maybe emit REG_LIBCALL/REG_RETVAL notes around the block.
514 (emit_no_conflict_block): Likewise.
516 2006-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
518 * doc/install.texi (sparc-sun-solaris2*): Add GMP version number.
520 2006-07-15 Roger Sayle <roger@eyesopen.com>
522 * tree-gimple.c (is_gimple_stmt): Sink test of IS_EMPTY_STMT into
523 a new NOP_EXPR case of the switch statement.
525 2006-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
528 * stor-layout.c (place_field): Take the bit field with
529 an excessive size into account in the ms-bitfiled case.
532 * stor-layout.c (place_field): Use DECL_BIT_FIELD_TYPE of
533 the previous bit field.
535 2006-07-14 Eliot Dresselhaus <eliot@sonic.net>
538 * config/rs6000/spe.md (frob_di_df_2): Add m->r alternative.
540 2006-07-14 Ulrich Weigand <uweigand@de.ibm.com>
542 * config/s390/linux-unwind.h (s390_fallback_frame_state): Detect
543 signal frames correctly even when the signal was installed with
546 2006-07-14 Carlos O'Donell <carlos@codesourcery.com>
548 * dbxout.c (dbxout_begin_prologue): Emit LFBB label at function start.
549 (dbxout_function_end): Use local label LFBB. Remove hook
551 (dbxout_source_line): Use local label LFBB.
552 (dbxout_block): Likewise.
553 (dbx_output_lbrac): Remove hook DBX_OUTPUT_LBRAC.
554 (dbx_output_rbrac): Remove hook DBX_OUTPUT_RBRAC.
555 * config/rs6000/linux64.h: Remove DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC,
558 2006-07-13 Janis Johnson <janis187@us.ibm.com>
560 * doc/sourcebuild.texi (Test Directives): Document dg-shouldfail.
562 2006-07-13 Jan Hubicka <jh@suse.cz>
564 * cgraphunit.c (cgraph_varpool_analyze_pending_decls): Call
566 * output.h (align_variable): Declare.
567 * varasm.c (align_variable): Export.
568 * value-prof.c (tree_value_profile_transformations): Recompute iterator
569 when basic block changed.
571 2006-07-13 Nick Clifton <nickc@redhat.com>
573 * config/sh/sh.c (sh_reorg): Ignore deleted insns whilst
574 walking the LOG_LINKS chain.
576 2006-07-12 Geoffrey Keating <geoffk@apple.com>
578 * doc/invoke.texi (C++ Dialect Options): Explain difference
579 between -fvisibility-inlines-hidden and setting hidden
580 visibility explicitly.
582 2006-07-12 Eric Christopher <echristo@apple.com>
584 * config/t-slibgcc-darwin (SHLIB_LINK): Don't munge stmp-lipo.
585 (stmp-lipo): Depend on libgcc.a.
587 2006-07-12 Kazu Hirata <kazu@codesourcery.com>
589 * tree.c: Fix a comment typo.
591 2006-07-12 Naveen.H.S <naveenh@kpitcummins.com>
593 * config/m32c/muldiv.md (umulhisi3_c): Use only registers for
595 (umulhisi3_r): Likewise.
597 2006-07-12 Paolo Carlini <pcarlini@suse.de>
600 * doc/install.texi (mips-sgi-irix6): Add note about IRIX 6.5.x,
601 x < 19, vs wchar_t support.
603 2006-07-12 Nick Clifton <nickc@redhat.com>
605 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Use -isa=sh4-up
608 2006-07-12 Mike Stump <mrs@apple.com>
610 * protoize.c (edit_fn_definition): Add volatile to clean_text_p.
612 2006-07-10 Eric Christopher <echristo@apple.com>
614 * config/t-slibgcc-darwin: Rewrite.
616 2006-07-10 Laurynas Biveinis <laurynas.biveinis@gmail.com>
619 * Makefile.in (configure): add missing aclocal.m4 and acinclude.m4
622 2006-07-08 Matthias Klose <doko@debian.org>
624 * doc/sourcebuild.texi: Fix typo.
626 2006-07-07 Mike Stump <mrs@apple.com>
628 * toplev.c (process_options): Don't give -ffunction-sections may
629 affect debugging warning for Mach-O.
631 2006-07-07 James E Wilson <wilson@specifix.com>
633 * config/mips/mips.md (cpu): Add sb1a.
634 * config/mips/sb1.md: Modify almost all patterns to accept sb1a in
635 addition to sb1. Adjust comments to clarify SB-1A differences from
637 (ir_sb1a_load): New. Modify bypasses to use it.
638 (ir_sb1a_simple_alu): Likewise.
639 * config/mips/mips.c (mips_cpu_info_table): Add sb1a.
640 (mips_rtx_cost_data): Add PROCESSOR_SB1A support.
641 (mips_issue_rate): Add PROCESSOR_SB1A.
642 (mips_multipass_dfa_lookahead): Use TUNE_SB1 instead of PROCESSOR_SB1.
643 * config/mips/mips.h (processor_type): Add PROCESSOR_SB1A.
644 (TARGET_SB1): Add PROCESSOR_SB1A check.
645 (TUNE_SB1): Likewise.
647 * config/mips/mips-protos.h (mips_store_data_bypass_p): New.
648 * config/mips/mips.c (mips_store_data_bypass_p): New.
649 * config/mips/sb1.md: Use mips_store_data_bypass_p instead of
652 2006-07-08 Paul Brook <paul@codesourcery.com>
655 * config/m68k/m68k.md: Add r-m patterns for 68881 movxf.
657 2006-07-07 Richard Guenther <rguenther@suse.de>
660 * tree.h (build_one_cst): Declare.
661 * tree.c (build_one_cst): New function.
662 * tree-ssa-math-opts.c (get_constant_one): Remove.
663 (insert_reciprocals): Use build_one_cst.
664 * fold-const.c (fold_plusminus_mult): Likewise.
666 2006-07-07 Roger Sayle <roger@eyesopen.com>
668 * pointer-set.c (pointer_set_destroy): Correct whitespace.
669 * cfgloopanal.c (dump_graph): Likewise.
670 * dojump.c (discard_pending_stack_adjust): Likewise.
671 * fix-header.c (TARGET_EXTRA_INCLUDE, TARGET_EXTRA_PRE_INCLUDES):
673 * alloc-pool.c (dump_alloc_pool_statistics): Likewise.
674 * function.c (finalize_block_changes): Likewise.
675 * gcc-common.c (ggc_free_overhead, dump_gcc_loc_statistics): Likewise.
676 * tree-ssa-dce.c (clear_control_dependence_bitmap): Likewise.
677 * rtl.c (dump_rtx_statistics): Likewise.
678 * tree-ssa-structalias.c (sort_fieldstack, init_alias_heapvars):
680 * varray.c (dump_varray_statistics): Likewise.
681 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
682 decode_decimal64, encode_decimal128, decode_decimal128,
683 decimal_real_to_decimal): Likewise.
685 2006-07-07 Richard Guenther <rguenther@suse.de>
687 PR tree-optimization/28187
688 * tree-vrp.c (vrp_operand_equal_p): New function.
689 (vrp_bitmap_equal_p): Likewise.
690 (update_value_range): Use them to compare old and new
693 2006-07-06 Roger Sayle <roger@eyesopen.com>
695 * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Add
696 a default case to switch statement to silence compiler warnings.
698 2006-07-06 Roger Sayle <roger@eyesopen.com>
701 * configure.ac (HAVE_AS_IX86_FFREEP): On x86 targets check whether
702 the configured assembler supports the x87's ffreep mnemonic.
703 * configure: Regenerate.
704 * config.in: Regenerate.
706 * config/i386/i386.c (output_387_ffreep): New function.
707 (output_fp_compare): Use output_387_ffreep to emit ffreep insns.
708 (output_387_reg_move): Likewise.
710 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
712 Port to hosts whose 'sort' and 'tail' implementations
713 treat operands with leading '+' as file names, as POSIX
714 has required since 2001. However, make sure the code still
715 works on pre-POSIX hosts.
716 * Makefile.in (slowcompare): Port to POSIX 1003.1-2001,
717 which says you should use "tail -c +N" rather than "tail +Nc".
718 Fix a bug: the old code incorrectly skipped 15 bytes, not 16.
720 2006-07-06 Zdenek Dvorak <dvorakz@suse.cz>
722 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Fix typo in
725 2006-07-06 David Edelsohn <edelsohn@gnu.org>
728 * config/rs6000/rs6000.c (rs6000_legitimate_address): Do not allow
729 PRE_{INC,DEC} of TFmode.
731 2006-07-06 David Edelsohn <edelsohn@gnu.org>
732 Alan Modra <amodra@bigpond.net.au>
735 * config/rs6000/rs6000.c (insvdi_rshift_rlwimi_p): Correct shiftop
738 2006-07-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
741 * config/alpha/predicates.md (alpha_swapped_comparison_operator):
742 Remove duplicate gtu.
744 2006-07-05 Jason Merrill <jason@redhat.com>
748 * stor-layout.c (finish_record_layout): Copy TYPE_PACKED to variants.
749 * c-common.c (handle_packed_attribute): So don't copy it here.
750 * c-decl.c (finish_struct): Don't copy TYPE_ALIGN.
752 2006-07-05 Mike Stump <mrs@apple.com>
754 * doc/invoke.texi (Invoking G++): Clarify prose for g++.
756 2006-07-05 H.J. Lu <hongjiu.lu@intel.com>
759 * config.gcc: Check with_cpu for i[34567]86--*-solaris2.1[0-9]*.
761 2006-07-05 Richard Guenther <rguenther@suse.de>
764 * config/i386/i386.md (*negdf2_1): Restrict pattern to
765 TARGET_SSE2 targets if using SSE math.
766 (*absdf2_1): Likewise.
768 2006-07-05 Richard Guenther <rguenther@suse.de>
770 PR tree-optimization/28162
771 * fold-const.c (fold_binary): For (-A) * (-B) -> A * B
772 make sure to convert the operands to the correct type.
774 2006-07-04 Paolo Bonzini <bonzini@gnu.org>
776 PR tree-optimization/28218
778 * tree-ssa-math-opts.c (execute_cse_reciprocals): Fix calls
779 to calculate and free the dominator information.
781 2006-07-04 Peter O'Gorman <peter@pogma.com>
783 * mklibgcc.in: chmod 644 before ranlib during install.
785 2006-07-04 Andrew Stubbs <andrew.stubbs@st.com>
786 J"orn Rennecke <joern.rennecke@st.com>
788 * configure.ac (.eh_frame data check): Use diff -b.
790 2006-07-04 Eric Botcazou <ebotcazou@libertysurf.fr>
793 * Makefile.in (BUILD_RTL): Add build/vec.o.
794 (build/gencondmd.o): Filter out -fkeep-inline-functions.
795 (build/genextract): Delete.
796 (build/genautomata): Likewise.
798 2006-07-04 Alan Modra <amodra@bigpond.net.au>
801 * config/rs6000/rs6000.c (function_arg_boundary): Double-word align
802 128-bit IBM long doubles for ABI_V4.
804 2006-07-03 Eric Botcazou <ebotcazou@adacore.com>
806 * tree.c (range_in_array_bounds_p): New predicate.
807 * tree.h (range_in_array_bounds_p): Declare it.
808 * tree-eh.c (tree_could_trap_p) <ARRAY_RANGE_REF>: Use it to
809 return a less conservative answer.
810 * tree-sra.c (struct sra_elt): Add new pointer field 'groups'
812 (IS_ELEMENT_FOR_GROUP): New macro.
813 (FOR_EACH_ACTUAL_CHILD): Likewise.
814 (next_child_for_group): New helper function.
815 (can_completely_scalarize_p): Take into account groups.
816 (sra_hash_tree): Handle RANGE_EXPR.
817 (sra_elt_eq): Likewise.
818 (lookup_element): Be prepared for handling groups.
819 (is_valid_const_index): Delete.
820 (maybe_lookup_element_for_expr) <ARRAY_REF>: Use in_array_bounds_p
821 instead of is_valid_const_index.
822 <ARRAY_RANGE_REF>: New case.
823 (sra_walk_expr) <ARRAY_REF>: Use in_array_bounds_p instead of
824 is_valid_const_index.
825 <ARRAY_RANGE_REF>: Do not unconditionally punt.
826 (scan_dump): Dump info for groups too.
827 (decide_instantiation_1): Likewise.
828 (decide_block_copy): Assert that the element is not a group.
829 Propagate decision to groups.
830 (generate_one_element_ref): Handle RANGE_EXPR.
831 (mark_no_warning): Iterate over actual childs.
832 (generate_copy_inout): Likewise.
833 (generate_element_copy): Likewise.
834 (generate_element_zero): Likewise.
835 (generate_element_init_1): Likewise.
836 (dump_sra_elt_name): Handle RANGE_EXPR.
838 2006-07-03 Roger Sayle <roger@eyesopen.com>
840 PR tree-optimization/26251
841 * tree-ssa-threadupdate.c (redirection_block_p): New function.
842 (thread_block): When optimizing for size refuse to thread jumps
843 that would require duplication of blocks other than redirection
846 2006-07-03 Paolo Bonzini <bonzini@gnu.org>
848 * configure.ac: Fix thinko in previous check-in.
849 * configure: Regenerate.
851 2006-07-03 Paolo Bonzini <bonzini@gnu.org>
854 * configure.ac (for lang...): Simplify nesting of conditionals.
855 Test subdir_requires for non-enabled languages. Move processing
856 of lang_opt_files and lang_tree_fiels below that test.
857 * configure: Regenerate.
858 * doc/sourcebuild.texi (Front End Config): Document subdir_requires.
860 2006-07-01 Martin Michlmayr <tbm@cyrius.com>
862 * doc/gcov.texi (Invoking Gcov): Add a missing word.
864 2006-06-30 Kazu Hirata <kazu@codesourcery.com>
866 * cfgexpand.c, config/i386/i386.c, genpreds.c, tree-cfg.c: Fix
869 2006-06-29 Jason Merrill <jason@redhat.com>
876 * tree.c (build_decl_stat): Don't hande #pragma visibility here.
877 * c-common.c (c_determine_visibility): Handle it here.
878 * c-decl.c (finish_decl): Call c_determine_visibility for
880 * flags.h (enum symbol_visibility): Sort from most to least visibility.
882 * varasm.c (default_assemble_visibility): Likewise.
883 * c-common.c (handle_visibility_attribute): Complain about trying
884 to give visibility to an already defined class, or trying to change
885 declared visibility. Always attach the attribute.
890 * attribs.c (decl_attributes): Ignore type-in-place attributes
891 once the type has been defined.
893 2006-06-29 Roger Sayle <roger@eyesopen.com>
896 * c-lex.c (c_lex_with_flags) <CPP_N_INVALID>: Increment errorcount
897 to indicate the cpplib has issued an error message for us.
899 2006-06-29 Asher Langton <langton2@llnl.gov>
902 * config/i386/i386.c (ix86_output_function_epilogue): Don't
903 insert a label at the end of an function under Mach-O.
905 2006-06-29 Eric Christopher <echristo@apple.com>
906 Evan Cheng <evan.cheng@apple.com>
908 * predicates.md (vector_all_ones_operand): New.
909 (nonimmediate_or_sse_const_operand): Ditto.
910 * config/i386/i386-protos.h (standard_sse_constant_opcode): Declare.
911 * config/i386/i386.c (standard_sse_constant_opcode): Define.
912 (standard_sse_mode_p): Ditto.
913 (standard_sse_constant_p): Add case for -1 vector.
914 (ix86_expand_vector_move): Try to use.
915 * sse.md (*mov<mode>_internal): Use nonimmediate_or_sse_const_operand.
916 Call standard_sse_constant_opcode.
917 (*movv4sf_internal): Ditto.
918 (*movv2df_internal): Ditto.
920 2006-06-29 Roger Sayle <roger@eyesopen.com>
922 * genpreds.c (write_match_code_switch): Correctly use XSTR instead
923 of XEXP to extract the operands of a MATCH_CODE rtx.
925 2006-06-28 Andrew Pinski <pinskia@gmail.com>
927 * tree.c (tree_size): Do not waste tail padding in
928 struct tree_string and make the size be the same as
929 build_string will generate.
931 2006-06-28 Jason Merrill <jason@redhat.com>
934 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
935 may_aliases already in the tag's annotations to the bitmap.
937 2006-06-28 Roger Sayle <roger@eyesopen.com>
939 * genpreds.c (write_predicate_stmts) <IOR>: Add missing break.
941 2006-06-28 Roger Sayle <roger@eyesopen.com>
943 * genpreds.c (generate_switch_p): New function.
944 (add_mode_tests): Push the new mode test down inside an AND expr
945 if this allows the switch-suitable MATCH_CODE to be near the root.
946 (write_match_code_switch): New function to write a MATCH_CODE as
948 (write_predicate_stmts): New function to write a predicate RTX
949 expression as a sequence of statements.
950 (write_one_predicate_function): Use write_predicate_stmts.
951 (write_tm_constrs_h): Likewise.
953 2006-06-26 Fred Fish <fnf@specifix.com>
955 * config/mips/t-sb1: New file.
956 * config.gcc (mipsisa64sb1-*-elf*): Add mips/t-sb1 to
959 2006-06-26 DJ Delorie <dj@redhat.com>
961 * config/m32c/m32c.c (m32c_print_operand): Fix sign-merging logic.
963 2006-06-26 Naveen H.S <naveenh@kpitcummins.com>
964 Jayant Sonar <jayants@kpitcummins.com>
965 Jaydeep Vipradas <jaydeepv@kpitcummins.com>
967 * config/m32c/addsub.md (addsi3, addsi3_1, addsi3_2): New.
968 (subsi3, subsi3_1, subsi3_2): New.
969 * config/m32c/bitops.md (andsi3, iorsi3, xorsi3): New.
970 * config/m32c/mov.md (SI mov peephole): New.
971 * config/m32c/m32.c (m32c_immd_dbl_mov): New.
972 * config/m32c/m32c-protos.h (m32c_immd_dbl_mov): New.
974 2006-06-26 Olivier Hainque <hainque@adacore.com>
976 * function.c (aggregate_value_p): Honor DECL_BY_REFERENCE on
977 a CALL_EXPR target function declaration.
979 2006-06-26 Richard Guenther <rguenther@suse.de>
981 * tree.c (build_string): Do not waste tail padding in
984 2006-06-26 Richard Guenther <rguenther@suse.de>
986 * ggc-page.c (init_ggc): Add missing element to size_lookup
990 2006-06-23 Richard Guenther <rguenther@suse.de>
992 * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
993 sizes to MAX_ALIGNMENT. Fix the size_lookup table to honour
994 alignment requests instead. Add verification code.
995 Add struct tree_function_decl and struct tree_binfo size to
996 extra_order_size_table. Add missing element to size_lookup
999 2006-06-25 Eric Botcazou <ebotcazou@adacore.com>
1002 * fold-const.c (const_binop): Be prepared for self returning zero.
1003 Simplify code handling complex values.
1005 2006-06-24 Olivier Hainque <hainque@adacore.com>
1007 * gimplify.c (gimplify_scalar_mode_aggregate_compare): New function.
1008 (gimplify_expr): Use it for tcc_comparison of operands of non BLKmode
1011 2006-06-24 Olivier Hainque <hainque@adacore.com>
1013 * tree-ssa-loop-im.c (for_each_index): Handle ARRAY_RANGE_REF as
1014 ARRAY_REF, so have the callback called for the low bound expression.
1016 2006-06-23 Janis Johnson <janis187@us.ibm.com>
1018 * tree.h (DECIMAL_FLOAT_TYPE_P): New.
1019 * c-typeck.c (c_common_type): Disallow operations on decimal float
1020 types and other float types.
1021 * convert.c (convert_to_real): Don't ignore conversions involving
1022 decimal float types.
1024 2006-06-23 Olivier Hainque <hainque@adacore.com>
1026 * tree.c (max_int_size_in_bytes): New function, inspired from
1027 code in function.c:assign_temp.
1028 * tree.h (max_int_size_in_bytes): Declare.
1029 * function.c (assign_temp): Use it.
1030 * gimplify.c (create_tmp_var): Relax the assertions on the type
1031 properties, not mandating constant size any more.
1032 (force_constant_size): New static function.
1033 (gimple_add_tmp_var): Use it, forcing variable size to a
1034 constant upper bound if it is not constant on entry.
1036 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
1039 * config/i386/winnt.c (ix86_handle_selectany_attribute): Move check
1040 for initialization and setting of one_only flag to ...
1041 (i386_pe_encode_section_info): ...here.
1042 (i386_pe_dllimport_p): Check for DECL_DLLIMPORT_P also.
1043 Recheck that the symbol has not been defined.
1045 2006-06-23 Richard Guenther <rguenther@suse.de>
1047 * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
1048 sizes to MAX_ALIGNMENT. Fix the size_lookup table to honour
1049 alignment requests instead. Add verification code.
1050 Add struct tree_function_decl and struct tree_binfo size to
1051 extra_order_size_table. Add missing element to size_lookup
1054 2006-06-22 Roger Sayle <roger@eyesopen.com>
1055 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1058 * expr.c (expand_expr_real_1) <VECTOR_CST>: Check whether the
1059 call to lang_hooks.types.type_for_mode returned NULL_TREE.
1061 2006-06-23 Ben Elliston <bje@au.ibm.com>
1063 * dfp.c (decimal_to_decnumber): Do not use decNumberNegate to
1064 negate dn -- manipulate it directly.
1066 2006-06-22 Roger Sayle <roger@eyesopen.com>
1067 Steven Bosscher <stevenb.gcc@gmail.com>
1070 * reload1.c (gen_reload): Call mark_jump_label on the new insns
1071 generated by gen_move_insn to add REG_LABEL notes if necessary.
1073 2006-06-22 Bob Wilson <bob.wilson@acm.org>
1075 * config/xtensa/lib1funcs.asm (MIN_ESA): Delete.
1076 (leaf_entry): Remove use of MIN_ESA.
1078 2006-06-22 Zdenek Dvorak <dvorakz@suse.cz>
1080 PR rtl-optimization/28121
1081 * cfgexpand.c (tree_expand_cfg): Clean EDGE_EXECUTABLE flag from
1084 2006-06-21 DJ Delorie <dj@redhat.com>
1086 * config/m32c/muldiv.md (mulhisi3_i): Only use registers for dest
1088 (mulhisi3_r): Likewise.
1090 2006-06-21 Richard Sandiford <richard@codesourcery.com>
1093 * coverage.c (coverage_counter_alloc): Leave the index type
1095 (coverage_counter_alloc): Use null arguments for operands 2 and 3
1098 2006-06-21 Andrew Pinski <pinskia@physics.uc.edu>
1100 * doc/invoke.texi (-fopenmp) Move to "Options Controlling C Dialect"
1101 section from the "Options for Code Generation Conventions".
1103 2006-06-21 Richard Henderson <rth@redhat.com>
1107 * config/alpha/predicates.md (small_symbolic_operand): Deny weak
1109 (global_symbolic_operand): Allow weak symbols, even if local_p.
1111 2006-06-21 Eric Botcazou <ebotcazou@adacore.com>
1113 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): New function.
1114 (find_interesting_uses_address): Punt if above function returns true.
1116 2006-06-21 Richard Guenther <rguenther@suse.de>
1118 * configure: Regenerated.
1120 2006-06-21 Joseph Myers <joseph@codesourcery.com>
1122 * config/mips/mips.c (function_arg): Where one part of a
1123 complex argument is in registers and the other part in the stack,
1124 return a REG not a PARALLEL.
1126 2006-06-21 Mark Mitchell <mark@codesourcery.com>
1128 * configure.ac: Set gcc_gxx_include_dir to $target/include/c++
1129 when cross-compiling. Do not substitute libstdcxx_incdir.
1130 * configure: Regenerated.
1132 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1134 * varasm.c (mergeable_string_section): Check for embedded NULs and
1135 NUL termination in the first int_size_in_bytes (TREE_TYPE (decl))
1136 rather than TREE_STRING_LENGTH bytes.
1138 2006-06-21 Richard Guenther <rguenther@suse.de>
1140 * ggc-page.c (extra_order_size_table): Add var_ann_d,
1141 tree_ssa_name, bitmap_element and phi_node with 4 arguments
1144 2006-06-21 Richrad Guenther <rguenther@suse.de>
1146 * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
1147 Limit iteration over the dominators.
1149 2006-06-20 Roger Sayle <roger@eyesopen.com>
1151 * config/mips/iris6.h (LIB_SPEC): Add support for -pthread.
1152 (SUBTARGET_CPP_SPEC): Define _REENTERANT if -pthread specified.
1154 2006-06-20 Richard Guenther <rguenther@suse.de>
1155 Michael Matz <matz@suse.de>
1157 * alloc-pool.h (free_alloc_pool_if_empty): Prototype new
1159 * alloc-pool.c (free_alloc_pool_if_empty): New function.
1160 * et-forest.h (et_free_pools): Prototype new function.
1161 * et-forest.c (et_free_tree_force): Free parent occurrence.
1162 (et_free_pools): New function.
1163 * dominance.c (free_dominance_info): Free et-forest alloc
1166 2006-06-20 Roger Sayle <roger@eyesopen.com>
1168 * expr.c (expand_expr_real_1) <VECTOR_CST>: For vector constants with
1169 integer modes, attempt to directly construct an integer constant.
1171 * fold-const.c (native_encode_vector): Determine the size of each
1172 element from the vector type instead of the first vector element.
1174 * tree.c (build_constructor_single): Mark a CONSTRUCTOR as constant,
1175 if all of its elements/components are constant.
1176 (build_constructor_from_list): Likewise.
1178 2006-06-20 Zdenek Dvorak <dvorakz@suse.cz>
1180 PR tree-optimization/27331
1181 * tree-data-ref.c (free_data_ref): New function.
1182 (create_data_ref): Fail if the data reference has unknown access
1184 (free_data_refs): Use free_data_ref.
1186 2006-06-19 Andrew Pinski <pinskia@gmail.com>
1189 * tree-inline.c (setup_one_parameter): Strip useless
1190 type conversion before adding it to the IR.
1191 (declare_return_variable): Likewise.
1193 2006-06-19 Martin Michlmayr <tbm@cyrius.com>
1196 * c-common.c (c_common_truthvalue_conversion): Fix grammar in warning.
1198 2006-06-19 Mike Stump <mrs@apple.com>
1200 * tree.c (variably_modified_type_p): VM arguments don't make the
1203 2006-06-19 Richard Guenther <rguenther@suse.de>
1205 * tree-ssa-pre.c (try_combine_conversion): Strip useless
1206 type conversions after folding.
1208 2006-06-19 Richard Guenther <rguenther@suse.de>
1210 * ggc-page.c (extra_order_size_tab): Add entries with
1211 size of struct function and basic_block.
1212 (size_lookup): Extend to cover sizes up to 511.
1213 (ggc_alloc_stat): Adjust user.
1214 (ggc_pch_count_object): Likewise.
1215 (ggc_pch_alloc_object): Likewise.
1216 (ggc_pch_write_object): Likewise.
1218 2006-06-19 Zdenek Dvorak <dvorakz@suse.cz>
1220 * tree-ssa-loop-niter.c (implies_ge_p): New function.
1221 (derive_constant_upper_bound): Handle OP0 - CST in unsigned types
1224 2006-06-19 Denis Chertykov <denisc@overta.ru>
1226 * config/avr/libgcc.S : Correct my wrong previous commit.
1228 2006-06-19 Roger Sayle <roger@eyesopen.com>
1231 * expmed.c (expand_shift): On SHIFT_COUNT_TRUNCATED targets, we may
1232 have stripped a SUBREG from the shift count, so we may need to
1233 convert_to_mode back to the type's mode before calling make_tree.
1234 Use new_amount instead of amount to avoid expanding a tree twice.
1236 2006-06-19 Richard Guenther <rguenther@suse.de>
1239 * fold-const.c (operand_equal_p): Check if the argument types
1240 have the same precision before stripping NOPs.
1242 2006-06-19 Daniel Berlin <dberlin@dberlin.org>
1244 Fix PR tree-optimization/27341
1245 * tree-cfg.c (gimplify_val): Call mark_new_vars_to_rename on the
1247 * tree-complex.c (pass_lower_complex): Update SMT usage.
1249 2006-06-19 Andreas Krebbel <krebbel1@de.ibm.com>
1251 * config/s390/s390.md ("doloop_si64", "doloop_si31", "doloop_di"):
1252 Add a new alternative to the constraint strings. Add move of
1253 operand 1 to 3 to the splitter definition.
1254 ("doloop_si_long"): Second contraint alternative removed.
1256 2006-06-08 Anatoly Sokolov <aesok@post.ru>
1258 * config/avr/avr.h (avr_have_movw_lpmx_p): Declare.
1259 (TARGET_CPU_CPP_BUILTINS): Add __AVR_HAVE_MOVW__ and
1261 (AVR_HAVE_MOVW) Define.
1262 (ASSEMBLER_DIALECT): Use AVR_HAVE_MOVW.
1263 (ASM_SPEC): Add avr25.
1264 (LINK_SPEC): Add avr25.
1265 * config/avr/avr.c (avr_have_movw_lpmx_p): Add.
1266 (base_arch_s): Add new member 'have_movw_lpmx'.
1267 (avr_arch_types): Init 'have_movw_lpmx'.
1268 (avr_mcu_types): Add 'avr25'. Move attiny13, attiny2313, attiny24,
1269 attiny44, attiny84, attiny25, attiny45, attiny85, attiny261,
1270 attiny461, attiny861 and at86rf401 in 'avr25' arhitecture.
1271 (avr_override_options): Init 'avr_have_movw_lpmx_p'.
1272 (output_movhi, output_movsisf, ashlsi3_out, avr_rtx_costs): Use
1274 (avr_file_start): Do not output '.arh' derective.
1275 * config/avr/libgcc.S (mov_l): Use __AVR_HAVE_MOVW__.
1276 (__do_copy_data): Use __AVR_HAVE_LPMX__.
1277 * config/avr/avr.md (mcu_enhanced): Delete.
1278 (mcu_have_movw): Define.
1279 (negsi2, extendhisi2, zero_extendhisi2): Use 'mcu_have_movw'.
1280 (call_insn, call_value_insn): Use 'call_insn' and __AVR_HAVE_MOVW__.
1281 * config/avr/t-avr(MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add avr25.
1282 (MULTILIB_MATCHES): Add attiny13, attiny2313, attiny24, attiny44,
1283 attiny84, attiny25, attiny45, attiny85, attiny261, attiny461,
1284 attiny861 and at86rf401 devices.
1286 2006-06-18 Jie Zhang <jie.zhang@analog.com>
1288 * config/bfin/bfin.c (MAX_LOOP_LENGTH): Define to be 2042 instead
1291 2006-06-17 Karl Berry <karl@gnu.org>
1293 * doc/cpp.texi, doc/cppinternals.texi, doc/gcc.texi,
1294 doc/gccint.texi, doc/install.texi (@dircategory): Use
1295 "Software development" instead of "Programming", following
1296 the Free Software Directory.
1298 2006-06-17 Alexandre Oliva <aoliva@redhat.com>
1300 * config/i386/i386.c (legitimate_tls_address)
1301 <TARGET_GNU2_TLS>: Add tp after DTPOFF.
1302 * config/i386/i386.md (*tls_dynamic_gnu2_combine_32): Adjust.
1303 (*tls_dynamic_gnu2_combine_64): Likewise.
1305 2006-06-16 Richard Guenther <rguenther@suse.de>
1308 * fold-const.c (negate_expr_p): Do not introduce undefined
1309 overflow in negating INTEGER_CSTs.
1310 (fold_negate_expr): Rename from negate_expr. Revert last
1311 change for folding BIT_NOT_EXPR. Change semantics to
1312 return NULL_TREE for non-simplified negations. Do not
1313 strip type conversions and unify type handling.
1314 (negate_expr): New function, wrap around fold_negate_expr
1315 but ensure building a tree always. Strip type conversions
1316 here, fold to result type.
1317 (fold_unary): Use fold_negate_expr for folding NEGATE_EXPR.
1319 2006-06-16 Roger Sayle <roger@eyesopen.com>
1322 * reg-stack.c (subst_stack_regs): Handle noreturn function calls
1323 that (would) return their results in stack registers.
1325 2006-06-16 Michael Matz <matz@suse.de>
1326 Richard Guenther <rguenther@suse.de>
1328 * fold-const.c (fold_truthop): Only return new tree node if
1329 we canonicalized something.
1331 2006-06-16 Richard Guenther <rguenther@suse.de>
1333 * function.h (enum function_frequency): Move declaration
1334 out of struct function.
1335 (struct function): Move bool fields and the enum to the bitfield
1336 section. Reorder elements to avoid padding. Remove unused
1337 fields left over from the RTL inliner removal.
1338 * function.c (free_after_compilation): Do not zero removed fields.
1339 * Makefile.in (ipa-reference.o): Add $(FUNCTION_H) dependency.
1340 (ipa-type-escape.o): Likewise.
1342 2006-06-16 Richard Guenther <rguenther@suse.de>
1344 * cgraph.h (struct cgraph_local_info): Turn bool elements
1346 (struct cgraph_node): Likewise.
1347 (struct cgraph_varpool_node): Likewise.
1349 2006-06-15 Richard Guenther <rguenther@suse.de>
1351 * fold-const.c (fold_truth_not_expr): Rename from
1352 invert_truthvalue. Give it fold_* semantics to avoid
1354 (invert_truthvalue): New function. Wrapper around
1355 fold_truth_not_expr.
1356 (optimize_minmax_comparison): Avoid creating garbage.
1357 (fold_unary): Use fold_truth_not_expr for folding
1359 (fold_ternary): Replace uses of invert_truthvalue with
1360 fold_truth_not_expr where applicable.
1361 * tree.h (fold_truth_not_expr): Prototype.
1363 2006-06-16 Richard Guenther <rguenther@suse.de>
1365 PR tree-optimization/27781
1366 * Makefile.in (ipa-pure-const.o): Add $(TARGET_H) dependency.
1367 * ipa-pure-const.c (target.h): Include.
1368 (analyze_function): Do not analyze functions that do not
1371 2006-06-15 Andrew MacLeod <amacleod@redhat.com>
1374 * tree-dfa.c (referenced_vars_dup_list): Remove.
1375 (find_referenced_vars): Remove assert.
1376 (referenced_var_check_and_insert): Replace dup list with assert.
1377 * tree-ssa.c (delete_tree_ssa): Remove dup list processing.
1378 * tree-flow.h (referenced_vars_dup_list): Remove extern decl.
1380 2006-06-15 Richard Guenther <rguenther@suse.de>
1382 * tree-ssa-structalias.c (alias_get_name): Avoid creating
1383 extra unused identifiers if not dumping.
1384 (create_variable_info_for): Likewise.
1386 2006-06-15 Zdenek Dvorak <dvorakz@suse.cz>
1388 * tree-ssa-loop-niter.c (implies_nonnegative_p): New function.
1389 (derive_constant_upper_bound): Derive more precise upper bound in
1390 common cases. Return type changed to double_int.
1391 (record_estimate): Reflect the changed return type of
1392 derive_constant_upper_bound.
1393 * double-int.c (double_int_zext, double_int_sext): Fix.
1395 2006-06-15 Paolo Bonzini <bonzini@gnu.org>
1397 * configure.ac (CFLAGS): Get them from the toplevel or from the
1398 configure invocation.
1399 * configure: Regenerate.
1400 * Makefile.in (CFLAGS): Substitute value provided by configure.
1402 2006-06-14 Mark Mitchell <mark@codesourcery.com>
1405 * c-common.h (c_finish_omp_atomic): Adjust declaration.
1406 * c-omp.c (c_finish_omp_atomic): Return the expression to perform,
1407 rather than calling add_stmt on it.
1408 * c-parser.c (c_parser_omp_atomic): Adjust accordingly.
1410 2006-06-14 Andreas Krebbel <krebbel1@de.ibm.com>
1413 * reload1.c (reload): Remove registers returned by update_eliminables
1414 from used_spill_regs.
1416 2006-06-13 DJ Delorie <dj@redhat.com>
1418 * config/m32c/muldiv.md (mulpsi3): Expect arbitrary constants.
1420 2006-06-13 Carlos O'Donell <carlos@codesourcery.com>
1422 * Makefile.in: Define HTMLS_BUILD, HTMLS_INSTALL,
1423 html__strip_dir, html__mkdir_p. Enhance install-html target.
1424 * configure.ac: AC_SUBST datarootdir, docdir and htmldir.
1425 * configure: Regenerate.
1427 2006-06-13 Fariborz Jahanian <fjahanian@apple.com>
1429 * fold-const.c (fold_cond_expr_with_comparison): Check for
1430 Objective-C++ as language in deciding COND_EXPR transformation.
1432 2006-06-06 J"orn Rennecke <joern.rennecke@st.com>
1435 * config/sh/t-sh (LIB1ASMFUNCS): Add _udiv_qrnnd16
1436 * config/sh/sh.c (print_operand): Add !SHMEDIA functionality to 'M'.
1437 * config/sh/lib1funcs.h (SL, SL1): Define.
1438 * config/sh/lib1funcs.asm (__udiv_qrnnd16): New hidden function.
1439 * longlong.h (__sh__): Define umul_ppmm, udiv_qrnnd and sub_ddmmss.
1440 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): New rule.
1441 (OBJS_Os_4_200): New variable.
1442 ($(T)libgcc-Os-4-200.a): Use it.
1443 * sh.md (udivsi3): For TARGET_DIVIDE_CALL_TABLE, avoid function call
1444 when dividing 1 and/or by 0.
1446 2006-06-13 Roger Sayle <roger@eyesopen.com>
1448 * configure.ac (HAS_MCONTEXT_T_UNDERSCORES): Include <sys/signal.h>
1449 before <ucontext.h> to define sigset_t required by <sys/ucontext.h>.
1450 * configure: Regenerate.
1452 2006-06-13 Jie Zhang <jie.zhang@analog.com>
1454 * config/bfin/bfin.c (bfin_reorg_loops): Only call recog_memoized ()
1455 for real instruction.
1457 2006-06-13 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1460 * haifa-sched.c (check_cfg): Handle special case.
1462 2006-06-13 Eric Botcazou <ebotcazou@adacore.com>
1465 * gimplify.c (declare_tmp_vars): Rename into declare_vars.
1466 Add debug_info parameter. Chain the vars to the BLOCK instead
1467 of the BIND_EXPR if debug info are requested for them.
1468 (pop_gimplify_context): Adjust for above change.
1469 (gimple_add_tmp_var): Likewise.
1470 * tree-gimple.h (declare_tmp_vars): Rename into declare_vars.
1472 * tree-nested.c (convert_nonlocal_reference): Adjust for above change.
1473 (convert_local_reference): Likewise.
1474 (get_local_debug_decl): Set DECL_IGNORED_P on the original variable.
1475 (finalize_nesting_tree_1): Request that debug info be emitted
1476 for debug_var_chain.
1478 2006-06-13 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1480 * haifa-sched.c (unlink_other_notes, unlink_line_notes): Fix the patch
1481 for PR target/27863.
1483 2006-06-13 Richard Guenther <rguenther@suse.de>
1486 * except.c (output_ttype): Expand type with EXPAND_INITIALIZER.
1488 2006-06-13 Richard Guenther <rguenther@suse.de>
1490 PR tree-optimization/27830
1491 * tree-inline.c (copy_body_r): For copying the operand
1492 of an ADDR_EXPR make sure to fold &* afterwards.
1494 2006-06-12 Eric Botcazou <ebotcazou@adacore.com>
1496 * gimplify.c (gimplify_expr): Treat VIEW_CONVERT_EXPR like other
1497 lvalues in the fb_none case with side-effects.
1499 2006-06-12 Kazu Hirata <kazu@codesourcery.com>
1501 * tree-flow.h: Remove the prototype for
1502 compute_phi_arg_on_exit.
1503 * tree-ssa-loop-ivopts.c (protect_loop_closed_ssa_form_use,
1504 protect_loop_closed_ssa_form, compute_phi_arg_on_exit):
1507 2006-06-12 Mark Shinwell <shinwell@codesourcery.com>
1509 * builtins.c (expand_builtin_return_addr): Only use
1510 frame_pointer_rtx when count == 0 and we are expanding
1511 __builtin_return_address.
1513 2006-06-12 Fred Fish <fnf@specifix.com>
1515 * config/mips/mips.c (mips_file_start): Create special section
1516 ".gcc_compiled_longXX" for o64 ABI as well as EABI.
1518 2006-06-11 Eric Christopher <echristo@apple.com>
1521 * stor-layout.c (place_field): Remove check for
1522 remaining_in_alignment when aligning at the end of a run.
1524 2006-06-11 Eric Christopher <echristo@apple.com>
1527 * doc/extend.texi (Structure-Packing Pragmas): Document ms_struct
1530 2006-06-11 Roger Sayle <roger@eyesopen.com>
1533 Revert incorrect fix for PR target/27158
1534 2006-05-08 Roger Sayle <roger@eyesopen.com>
1535 * reload.c (find_reloads_toplev): Only return the simplified SUBREG
1536 of a reg_equiv_constant if the result is a legitimate constant.
1538 2006-06-11 Roger Sayle <roger@eyesopen.com>
1541 * config/rs6000/rs6000.c (const_vector_elt_as_int): New function to
1542 extract a CONST_VECTOR element and interpret it as an integer.
1543 (vspltis_constant): Use const_vector_elt_as_int instead of the
1544 macro CONST_VECTOR_ELT in order to handle FP vector modes.
1545 * config/rs6000/predicates.md (easy_vector_const): Consider
1546 floating point ALTIVEC_VECTOR_MODEs via easy_altivec_constant.
1548 2006-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
1551 * stor-layout.c (update_alignment_for_field): Don't add extra
1552 alignment for packed non-bitfield fields in ms_bitfield_layout_p
1555 2006-06-09 Ralf Corsepius <ralf.corsepius@rtems.org>
1557 * config/mips/t-rtems: Add EL/EB multilib variants.
1559 2006-06-09 Mike Stump <mrs@apple.com>
1561 * c-typeck.c (c_begin_vm_scope): Fix file_scope processing.
1563 2006-06-09 David Daney <ddaney@avtrex.com>
1565 * doc/install.texi: Add binutils version recommendation for mips-*-*.
1567 2006-06-09 Andreas Krebbel <krebbel1@de.ibm.com>
1569 * reload.c (find_reloads): Unset force_reload for 'X' constraint.
1571 2006-06-09 Richard Guenther <rguenther@suse.de>
1573 PR tree-optimization/26998
1574 * tree-vrp.c (extract_range_from_unary_expr): For NEGATE_EXPR
1575 of signed types, only TYPE_MIN_VALUE is special, but for both,
1576 minimum and maximum value. Likewise VR_ANTI_RANGE is special
1577 in this case, as is -fwrapv.
1579 2006-06-08 Mike Stump <mrs@apple.com>
1582 * config/darwin.c (darwin_asm_output_anchor): Disable
1583 -fsection-anchors on darwin for now.
1584 * config/darwin.h (TARGET_ASM_OUTPUT_ANCHOR): Likewise.
1585 * rs6000/rs6000.c (optimization_options): Likewise.
1587 2006-06-08 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1590 * config/i386/i386.c (classify_argument): Skip fields with invalid
1593 2006-06-08 Steven Bosscher <steven@gcc.gnu.org>
1595 * cse.c (flush_hash_table): Use VOIDmode to invalidate a REG.
1596 (cse_insn): Likewise for the stack_pointer_rtx.
1598 2006-06-08 Roger Sayle <roger@eyesopen.com>
1600 * tree-ssa-dom.c (record_conditions): Only record "unordered"
1601 conditions from floating point comparisons.
1603 2006-06-08 Paolo Bonzini <bonzini@gnu.org>
1606 * expmed.c (struct alg_hash_entry): Fix type of field T
1607 to match synth_mult argument.
1608 (NUM_ALG_HASH_ENTRIES): Make it bigger for 64-bit HOST_WIDE_INT.
1610 2006-06-08 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1613 * haifa-sched.c (unlink_other_notes, unlink_line_notes): Update basic
1616 2006-06-08 Richard Guenther <rguenther@suse.de>
1619 * fold-const.c (negate_expr_p): We can negate BIT_NOT_EXPR
1620 only, if overflow is defined and not trapping.
1621 (negate_expr): Likewise.
1623 2006-06-07 Zdenek Dvorak <dvorakz@suse.cz>
1625 PR tree-optimization/27872
1626 * tree-ssa-loop-manip.c (tree_unroll_loop): Set EDGE_IRREDUCIBLE_LOOP
1627 flag on the new exit edge of the unrolled loop.
1629 2006-06-07 Zdenek Dvorak <dvorakz@suse.cz>
1631 PR rtl-optimization/26449
1632 * loop-invariant.c (move_invariant_reg): Fail if force_operand fails.
1634 2006-06-07 Andrew MacLeod <amacleod@redhat.com>
1637 * tree-dfa.c (referenced_vars_dup_list): New. List of duplicate
1638 referenced_variables with matching DECL_UID's.
1639 (find_referenced_vars): Make sure duplicate list is empty to start.
1640 (referenced_var_p): Remove.
1641 (referenced_var_check_and_insert): Renamed from referenced_var_insert.
1642 Check if var is in the list, and add if needed. Update the duplicate
1643 list if a different var is in the list with the same DECL_UID.
1644 (add_referenced_var): Call routine to check and insert.
1645 * tree-ssa.c (delete_tree_ssa): Clear var_ann's on duplicates.
1646 * tree-flow.h (referenced_vars_dup_list): External declaration.
1648 2006-06-07 Fred Fish <fnf@specifix.com>
1650 * config/mips/t-elf (MULTILIB_MATCHES): Combine two entries
1653 2006-06-07 Paolo Bonzini <bonzini@gnu.org>
1656 * reg-stack.c (subst_stack_regs_pat): Reorder resetting of
1657 the imaginary and real parts of a clobbered register.
1658 Emit insn to set the imaginary part.
1660 2006-06-06 Peter Lemieszewski <lemie@us.ibm.com>
1662 * config/s390/t-tpf (LIB2ADDEH): Include unwind-dw2-fde-glibc.c
1663 in lieu of unwind-dw2-fde.c.
1665 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1667 * config/i386/mingw32.h (GOMP_SELF_SPECS): Define.
1669 2006-06-06 Ulrich Weigand <uweigand@de.ibm.com>
1672 * config/rs6000/altivec.md (UNSPEC_VSLW): Remove.
1673 ("altivec_vspltisw_v4sf", "altivec_vslw_v4sf"): Remove.
1674 ("mulv4sf3", "absv4sf3", "negv4sf3"): Adapt users to use
1675 V4SImode temporaries and operations instead.
1677 2006-06-06 Joseph S. Myers <joseph@codesourcery.com>
1679 * config/mips/t-linux64 (tp-bit.c): Append to tp-bit.c, not
1682 2006-06-06 Mike Stump <mrs@apple.com>
1684 * Makefile.in: Rename to htmldir to build_htmldir to avoid
1685 installing during build.
1687 2006-06-06 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1689 * params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): Change default
1691 * doc/invoke.texi (max-sched-extend-regions-iters): Document.
1692 * config/ia64/ia64.c (params.h): New header.
1693 (ia64_optimization_options): New function to adjust parameters.
1694 * config/ia64/ia64-protos.h (ia64_optimization_options): New prototype.
1695 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): New macro.
1696 * config/ia64/t-ia64 (ia64.o): Add dependence from params.h .
1698 2006-06-05 Kazu Hirata <kazu@codesourcery.com>
1700 * stor-layout.c (debug_rli): Fix a typo in a debug message.
1702 2006-06-05 Steve Ellcey <sje@cup.hp.com>
1705 * config/ia64/ia64.c (ia64_select_rtx_section): Check TARGET_NO_SDATA.
1707 2006-06-05 Dorit Nuzman <dorit@il.ibm.com>
1708 Victor Kaplansky <victork@il.ibm.com>
1710 PR tree-optimization/26360
1711 * tree-vectorizer.c (destroy_loop_vec_info): Remove (dead) pattern
1714 2006-06-04 Roger Sayle <roger@eyesopen.com>
1715 Andrew Pinski <pinskia@physics.uc.edu>
1718 * c-common.c (c_common_truthvalue_conversion): Explicitly check
1719 for LABEL_DECL before calling DECL_WEAK.
1722 * c-typeck.c (build_binary_op): Likewise, explicitly check for
1723 LABEL_DECL and PARM_DECL.
1725 2006-06-05 Joseph S. Myers <joseph@codesourcery.com>
1729 * c-decl.c (grokdeclarator): Disallow variably modified types at
1730 file scope. Avoid marking shared array type of constant size as
1733 2006-06-04 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1736 * c-common.c (fold_offsetof_1): Handle static members.
1738 2006-06-04 Eric Christopher <echristo@apple.com>
1740 * stor-layout.c (start_record_layout): Initialize remaining_in_alignment.
1741 (debug_rli): Output value for remaining_in_alignment.
1742 (update_alignment_for_field): Unconditionalize
1743 ms_bitfield_layout_p code. Handle non-bitfield fields. Remove
1744 extra alignment code.
1745 (place_field): Don't realign if ms_bitfield_layout_p. Unconditionalize
1746 ms_bitfield_layout_p code. Rewrite handling of structure fields.
1747 * tree.h (record_layout_info_s): Remove prev_packed.
1748 * doc/extend.texi (ms_struct): Add documentation of format.
1750 2006-06-04 Mark Shinwell <shinwell@codesourcery.com>
1752 * tree.h: Declare folding_initializer.
1753 * builtins.c (fold_builtin_constant_p): Give definite answer
1754 if folding inside an initializer.
1755 * fold-const.c: Define folding_initializer.
1756 (START_FOLD_INIT): Save and then set folding_initializer.
1757 (END_FOLD_INIT): Restore folding_initializer.
1759 2006-06-04 Richard Guenther <rguenther@suse.de>
1761 PR tree-optimization/27039
1762 * fold-const.c (fold_comparison): Handle pointer comparison
1763 again for all comparison codes. Compare offsets in signed
1765 (fold_binary): Move code from here.
1767 2006-06-03 Roger Sayle <roger@eyesopen.com>
1770 * config/i386/i386.c (construct_container): Split static issued_error
1771 flag into issued_sse_arg_error, issued_sse_ret_error and
1772 issued_x87_ret_error. Issue a daignostic if the x86-64 ABI
1773 requires the use of x87 registers and the user explicitly
1774 specified the -mno-80387 command line option.
1776 2006-06-02 Geoffrey Keating <geoffk@apple.com>
1778 * config/rs6000/host-darwin.c (sigaltstack): Protect prototype with
1779 HAVE_DECL_SIGALTSTACK.
1781 (segv_handler): Use MC_FLD.
1782 * configure.ac: Check for a sigaltstack declaration.
1783 Compute HAS_MCONTEXT_T_UNDERSCORES on Darwin.
1784 * configure: Regenerate.
1785 * config.in: Regenerate.
1787 2006-06-03 J"orn Rennecke <joern.rennecke@st.com>
1790 * Makefile.in (stmp-fixinc): Fix typo.
1792 2006-06-02 Roger Sayle <roger@eyesopen.com>
1794 * fold-const.c (fold_unary) <CONJ_EXPR>: Ensure folded expressions
1795 are type correct. Clean-up.
1796 <REALPART_EXPR>: Likewise. Optimize creal(~z) as creal(z).
1797 <IMAGPART_EXPR>: Likewise. Optimize cimag(~z) as -cimag(z).
1799 2006-06-01 DJ Delorie <dj@redhat.com>
1801 * config/v850/v850.h (ASM_OUTPUT_ADDR_DIFF_ELT): Disabled the
1802 shift, as we've disabled the "switch" insn that needs it.
1804 2006-06-01 Per Bothner <bothner@bothner.com>
1806 Suppress extra '#1 <built-in> or '#1 <command line>' on -dD output.
1807 * c-opts.c (finish_options): Use internal line 0 for <command-line>.
1808 * c-ppoutput.c (cb_define): Don't increment line 0.
1810 2006-06-01 Pete Steinmetz <steinmtz@us.ibm.com>
1812 * doc/invoke.texi: Add cpu_type power6.
1813 * config.gcc: Add cpu_type power6.
1814 * config/rs6000/rs6000.c (rs6000_override_options): Alias power6
1815 to power5+ with Altivec.
1816 * config/rs6000/aix52.h (ASM_CPU_SPEC): Add power6.
1817 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add power6.
1819 2006-05-30 Anatoly Sokolov <aesok@post.ru>
1821 * config/avr/avr.h (SET_ASM_OP): Define.
1823 2006-06-01 Kazu Hirata <kazu@codesourcery.com>
1825 * config/bfin/bfin.c: Fix comment typos.
1827 2006-06-01 Paolo Bonzini <bonzini@gnu.org>
1830 * doc/install.texi: Document --enable-bootstrap and
1831 --disable-bootstrap.
1833 2006-06-01 Paolo Bonzini <bonzini@gnu.org>
1835 * doc/install.texi: Document that InfoZIP can replace jar.
1837 2006-05-31 Roger Sayle <roger@eyesopen.com>
1839 * config/i386/i386.c (ix86_expand_fp_absneg_operator): When SSE
1840 isn't available, directly generate the simpler x87 patterns without
1841 the (use (const_int 0)).
1842 * config/i386/i386.md (*negsf2_1): Enable pre-reload if the SSE
1843 implementation isn't available.
1844 (*negdf2_1): Likewise.
1845 (*negxf2_1): XF mode negation is always done using the x87.
1846 (*abssf2_1, *absdf2_1, *absxf2_1): Likewise^3 for fabs.
1848 2006-05-31 Roger Sayle <roger@eyesopen.com>
1850 * builtins.c (fold_builtin_cabs): Delete prototype. Require an
1851 additional FNDECL argument. Optimize cabs(-z) and cabs(~z) as
1853 (fold_builtin_decl) <BUILT_IN_CABS>: Update fold_builtin_cabs call.
1855 2006-05-31 Jie Zhang <jie.zhang@analog.com>
1857 * config/bfin/bfin-protos.h (bfin_hardware_loop): Declare.
1858 * config/bfin/bfin.c (basic-block.h): Include.
1859 (struct machine_function): New.
1860 (bfin_init_machine_status): New.
1861 (override_options): Initialize init_machine_status.
1862 (bfin_hardware_loop): New.
1863 (MAX_LOOP_DEPTH, MAX_LOOP_LENGTH): Define.
1864 (DEF_VEC_P (loop_info)): New.
1865 (DEF_VEC_ALLOC_P (loop_info,heap)): New.
1866 (struct loop_info): New.
1867 (loop_info): New typedef.
1868 (struct loop_work): New.
1869 (loop_work): New typedef.
1870 (DEF_VEC_O (loop_work)): New.
1871 (DEF_VEC_ALLOC_O (loop_work,heap)): New.
1872 (bfin_dump_loops): New.
1873 (bfin_bb_in_loop): New.
1874 (bfin_scan_loop): New.
1875 (bfin_optimize_loop): New.
1876 (bfin_reorg_loops): New.
1877 (bfin_reorg): Use bfin_reorg_loops.
1878 * config/bfin/bfin.h (FIRST_PSEUDO_REGISTER): Adjust for adding
1880 (I_REGNO_P): Simplify.
1881 (DP_REGNO_P, DPREG_P): New macros.
1882 (REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
1883 REG_ALLOC_ORDER): Add LT0, LT1, LC0, LC1, LB0, LB1.
1884 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
1885 Add LT_REGS, LC_REGS, LB_REGS.
1886 (REG_CLASS_FROM_LETTER): Add 't' for LT_REGS, 'k' for LC_REGS,
1888 (REGNO_REG_CLASS): Deal with loop registers.
1889 * config/bfin/bfin.md: Add comment for 't', 'k', 'l' constraint
1891 (REG_LT0, REG_LT1, REG_LC0, REG_LC1, REG_LB0, REG_LB1):
1892 New constants for loop registers.
1893 (UNSPEC_LSETUP_END): New.
1894 (seq_insns): New define_attr. Set it for appropriate insns.
1895 (movsi_insn): Add alternatives for move from/to
1896 loop count registers.
1897 (doloop_end): New define_expand.
1898 (loop_end): New define_insn.
1899 (define_split for bad doloop_end): New.
1900 (lsetup_with_autoinit): New define_insn.
1901 (lsetup_without_autoinit): New define_insn.
1902 (rep_movsi, rep_movhi): Clobber LT1, LC1, LB1.
1903 * config/bfin/predicates.md (lc_register_operand): New.
1904 (lt_register_operand): New.
1905 (lb_register_operand): New.
1906 (nondp_register_operand): New.
1907 (nondp_reg_or_memory_operand): New.
1908 * doc/md.texi: Document Blackfin new 't', 'k', 'l' constraint letters.
1910 2006-05-31 Jie Zhang <jie.zhang@analog.com>
1912 * config/bfin/bfin.c (bfin_delegitimize_address): New.
1913 (TARGET_DELEGITIMIZE_ADDRESS): Define.
1915 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
1917 * Makefile.in (CATALOGS): Add po/ prefix.
1918 * configure: Regenerated.
1920 2006-05-31 Richard Earnshaw <richard.earnshaw@arm.com>
1923 * arm.c (arm_print_operand case 'S'): Validate that the operand is
1924 a shift operand before calling shift_op. Avoid redundant call of
1927 2006-05-30 Naveen.H.S <naveenh@kpitcummins.com>
1928 DJ Delorie <dj@redhat.com>
1930 * config/m32c/m32c.c (m32c_expand_insv): Check that the value
1931 we're inserting is a singlt-bit constant.
1933 2006-05-30 Roger Sayle <roger@eyesopen.com>
1935 * simplify-rtx.c (simplify_binary_operation_1) <LSHIFTRT>: Cast
1936 width to HOST_WIDE_INT to avoid comparison warnings on some targets.
1938 2006-05-30 Roger Sayle <roger@eyesopen.com>
1940 PR tree-optimization/23452
1941 * fold-const.c (fold_mult_zconjz): New subroutine of fold_binary,
1942 to optimize z * conj(z) as realpart(z)^2 + imagpart(z)^2.
1943 (fold_binary) <MULT_EXPR>: Call fold_mult_zconjz for integral
1944 complex values and with -ffast-math for FP complex values.
1946 2006-05-30 Kazu Hirata <kazu@codesourcery.com>
1948 * c-common.h: Remove the prototype for yyparse.
1949 * rtl.h: Remove the prototype for init_loop.
1951 2006-05-30 Andreas Krebbel <krebbel1@de.ibm.com>
1953 * cse.c (validate_canon_reg, cse_insn): Don't change insns without
1956 2006-05-30 Roger Sayle <roger@eyesopen.com>
1958 * simplify-rtx.c (simplify_binary_operation): Unfactor the shift
1960 <LSHIFTRT>: Optimize (lshiftrt (clz X) C) as (eq X 0) where C is
1961 log2(GET_MODE_BITSIZE(X)) on targets with the appropriate semantics.
1963 2006-05-30 Dirk Mueller <dmueller@suse.de>
1966 * c-common.c (convert_and_check): Only track TREE_CONSTANT_OVERFLOW
1967 for CONSTANT_CLASS_P expresisons.
1969 2006-05-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1972 * c-typeck.c (c_expr_sizeof_type): Handle invalid types.
1974 2006-05-30 Zdenek Dvorak <dvorakz@suse.cz>
1976 PR tree-optimization/27779
1977 * tree-data-ref.c (analyze_siv_subscript_cst_affine): Use
1978 initial_condition instead of CHREC_LEFT.
1980 2006-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
1982 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Fix type of begin_label.
1983 * config/m32r/initfini.c (__do_global_dtors, __do_global_ctors):
1984 Make prototypes ISO C90.
1986 2006-05-30 Mircea Namolaru <namolaru@il.ibm.com>
1987 Leehod Baruch <leehod.baruch@weizmann.ac.il>
1989 * see.c (see_analyze_one_def): Correct check.
1990 (see_get_extension_data): Check if extension is parallel.
1991 (see_get_extension_reg): Likewise.
1993 2006-05-30 Uros Bizjak <uros@kss-loka.si>
1996 * config/i386/i386.c (ix86_expand_int_vcond): Force cop0
1997 into register for (code == GTU).
1999 2006-05-29 Roger Sayle <roger@eyesopen.com>
2001 PR tree-optimization/24964
2002 * simplify-rtx.c (simplify_binary_operation_1): Add function comment.
2003 <MULT>: Minor clean-up. Don't convert x*-1.0 into -x if we honor
2004 signaling NaNs. Optimize -x*-x as x*x for all float modes, and
2005 abs(x)*abs(x) as x*x for scalar floating point modes.
2007 2006-05-29 Sebastian Pop <pop@cri.ensmp.fr>
2010 * lambda-code.c (perfect_nestify): Don't copy statements
2011 in the inner loop: move them to the inner loop header.
2013 2006-05-29 Diego Novillo <dnovillo@redhat.com>
2016 * c-tree.texi: Document OpenMP directives and clauses.
2018 2006-05-29 Kazu Hirata <kazu@codesourcery.com>
2020 * varasm.c (globalize_decl): Fix indentation.
2022 2006-05-29 Diego Novillo <dnovillo@redhat.com>
2025 * doc/passes.texi: Add documentation for pass_vrp, pass_ipa_pta,
2026 pass_fre, pass_store_ccp, pass_copy_prop,
2027 pass_store_copy_prop, pass_merge_phi, pass_nrv,
2028 pass_return_slot, pass_object_size, pass_lim,
2029 pass_linear_transform, pass_empty_loop, pass_complete_unroll,
2030 pass_loop_prefetch and pass_stdarg.
2032 2005-05-29 Bernd Schmidt <bernd.schmidt@analog.com>
2034 * config/bfin/bfin.opt (mfdpic): New option.
2035 * config/bfin/t-bfin-elf (EXTRA_PARTS): Add crtbeginS.o and crtendS.o.
2036 (EXTRA_MULTILIB_PARTS): Likewise.
2037 (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS): Use -fpic.
2038 (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Build one extra -mfdpic
2040 * config/bfin/elf.h (STARTFILE_SPEC): Don't link in crt0.o if -shared.
2041 (CRT_CALL_STATIC_FUNCTION): New.
2042 * config/bfin/uclinux.h (STARTFILE_SPEC): Don't link in crt0.o if
2044 (CRT_CALL_STATIC_FUNCTION): New.
2045 * config/bfin/bfin.c (legitimize_pic_address): Now static. Handle
2047 (n_pregs_to_save): PIC register doesn't need to be saved with FD-PIC.
2048 (print_operand): Handle UNSPEC_MOVE_FDPIC and UNSPEC_FUNCDESC_GOT17M4.
2049 (initialize_trampoline): Changed to handle FD-PIC code generation.
2050 (expand_move): If TARGET_FDPIC, use emit_pic_move as needed.
2051 (bfin_expand_call): Generate FD-PIC calls if TARGET_FDPIC.
2052 (override_options): Disallow -mid-shared-library -mfdpic combination.
2053 Can't do unaligned ops if FD-PIC.
2054 Turn off flag_pic if trying to generate non-id-shared-library
2055 non-fdpic code, since it's not supported.
2056 (bfin_assemble_integer): New function.
2057 (TARGET_ASM_INTEGER): Define.
2058 * config/bfin/crti.s (__init, __fini): Save P3 on the stack if
2060 * config/bfin/crtn.s: Restore them.
2061 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __BFIN_FDPIC__
2063 (DRIVER_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
2064 LINK_GCC_C_SEQUENCE_SPEC, ASM_SPEC, LINK_SPEC): New macros.
2065 (FDPIC_FPTR_REGNO, FDPIC_REGNO, OUR_FDPIC_REG): New macros.
2066 (TRAMPOLINE_SIZE, TRAMPOLINE_TEMPLATE): Adjust for FD-PIC.
2067 (CONDITIONAL_REGISTER_USAGE): If TARGET_FDPIC, FDPIC_REGNO is
2069 (enum reg_class, REG_CLASS_CONTENTS, REG_CLASS_NAMES): Add
2070 FDPIC_REGS and FDPIC_FPTR_REGS.
2071 (REG_CLASS_FROM_LETTER): Use 'Z' and 'Y' for them.
2072 * config/bfin/bfin.md (UNSPEC_MOVE_FDPIC, UNSPEC_FUNCDESC_GOT17M4,
2073 UNSPEC_VOLATILE_LOAD_FUNCDESC): New constants.
2074 (load_funcdescsi): New pattern.
2075 (call_symbol_fdpic, sibcall_symbol_fdpic, call_value_symbol_fdpic,
2076 sibcall_value_symbol_fdpic, call_insn_fdpic, sibcall_insn_fdpic,
2077 call_value_insn_fdpic, sibcall_value_insn_fdpic): New patterns.
2079 2006-05-29 Kazu Hirata <kazu@codesourcery.com>
2081 * gcse.c, rtlanal.c: Remove obsolete comments associated with
2084 * config/bfin/bfin.h (PARM_BOUNDRY, STACK_BOUNDRY): Remove.
2086 * tree-flow.h: Remove the prototype for add_type_alias.
2087 * tree-ssa-alias.c (add_type_alias): Remove.
2089 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
2091 * cfgcleanup.c, cfgexpand.c, cgraphunit.c, config/arm/arm.c,
2092 config/fr30/fr30.md, config/i386/i386-interix.h,
2093 config/i386/i386.c, config/i386/i386.md, config/sh/superh.h,
2094 config/sh/superh64.h, config/v850/v850.c, df-core.c,
2095 df-problems.c, df.h, except.c, final.c, haifa-sched.c,
2096 lambda-code.c, libgcc2.h, omp-low.c, optabs.c, predict.c,
2097 reload.c, tree-flow.h, tree-outof-ssa.c, tree-ssa-dce.c,
2098 tree-ssa-pre.c, tree-vect-transform.c: Fix comment typos.
2099 Follow spelling conventions.
2100 * doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix typos.
2101 Follow spelling conventions.
2103 2006-05-27 Richard Guenther <rguenther@suse.de>
2106 * fold-const.c (fold_plusminus_mult_expr): Use fold_convert
2107 to produce a constant of value 1 of generic type.
2109 2006-05-27 Dirk Mueller <dmueller@suse.de>
2111 * cgraphunit.c (decide_is_function_needed): Fix wrong
2114 2006-05-26 Ulrich Weigand <uweigand@de.ibm.com>
2116 PR rtl-optimization/27661
2117 * reload.c (find_reloads): When reloading a VOIDmode constant
2118 as address due to an EXTRA_MEMORY_CONSTRAINT or 'o' constraint,
2119 use Pmode as mode of the reload register.
2121 2006-05-26 Eric Botcazou <ebotcazou@adacore.com>
2123 * doc/invoke.texi (Optimize Options): Document that -funit-at-a-time
2124 is enabled at -O and above.
2126 2006-05-26 Steven Bosscher <steven@gcc.gnu.org>
2129 * config/alpha/alpha.c (alpha_does_function_need_gp): Skip jump
2132 2006-05-25 Mark Mitchell <mark@codesourcery.com>
2135 * gimplify.c (gimplify_decl_expr): Do not call gimple_add_tmp_var
2136 for anonymous variables explicitly declared by front ends.
2138 2006-05-25 Eric Botcazou <ebotcazou@adacore.com>
2140 * tree-ssa-structalias.h (PTR_IS_REF_ALL): New macro.
2141 (struct alias_info): Add new field ref_all_symbol_mem_tag.
2142 * tree-ssa-alias.c (compute_may_aliases): If the program contains
2143 ref-all pointers, run a finalization pass for them.
2144 (compute_flow_insensitive_aliasing): Skip ref-all pointers.
2145 (finalize_ref_all_pointers): New function.
2146 (is_escape_site): Return ESCAPE_BAD_CAST for conversion from a
2147 regular pointer type to a ref-all pointer type.
2148 (get_tmt_for): Return the special memory tag for ref-all pointers.
2150 2006-05-25 Richard Guenther <rguenther@suse.de>
2153 * fold-const.c (fold_binary): Do not look at the stripped
2154 op0 for (a OP c1) OP c2 to a OP (c1+c2) shift optimization.
2156 2006-05-25 Eric Botcazou <ebotcazou@adacore.com>
2158 * tree-vrp.c (extract_range_from_assert): Set the range to VARYING
2159 for LT and GT if the computed range is effectively empty.
2161 2006-05-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2164 * pa/pa-modes.def: Use mips_single_format, mips_double_format and
2165 mips_quad_format formats instead of ieee_single_format,
2166 ieee_double_format and ieee_quad_format formats, respectively.
2168 2006-05-24 Zdenek Dvorak <dvorakz@suse.cz>
2170 PR tree-optimization/27639
2171 PR tree-optimization/26719
2172 * tree-vrp.c (adjust_range_with_scev): Use scev_direction and adjust
2173 call to scev_probably_wraps_p.
2174 * tree-ssa-loop-niter.c (compare_trees, convert_step_widening,
2175 used_in_pointer_arithmetic_p, convert_step): Removed.
2176 (nowrap_type_p): New function.
2177 (scev_probably_wraps_p): Rewritten.
2178 * tree-scalar-evolution.c (instantiate_parameters_1): Do not call
2179 chrec_convert if chrec_convert_aggressive might have been used.
2180 * tree-chrec.c (convert_affine_scev, chrec_convert_1,
2181 scev_direction): New functions.
2182 (chrec_convert): Changed to a wrapper over chrec_convert_1.
2183 * tree-ssa-loop-ivopts.c (idx_find_step): Use convert_affine_scev
2184 instead of convert_step.
2185 * tree-flow.h (scev_probably_wraps_p): Declaration changed.
2186 (convert_step): Declaration removed.
2187 (convert_affine_scev, nowrap_type_p, scev_direction): Declare.
2189 2006-05-23 Kenneth Zadeck <zadeck@naturalbridge.com>
2191 * df-core.c: Added to header comments.
2192 * df.h (df_ru_bb_info, df_rd_bb_info, df_lr_bb_info,
2193 df_ur_bb_info, df_urec_bb_info): Added comments.
2194 * df-problems (df_ref_bitmap, ru, rd, lr, ur,
2195 urec, ri problems): Fixed header comments.
2196 (df_ru_transfer_function): Fixed in-out set dyslexia when copying
2197 code from df_rd_transfer_function.
2199 2006-05-23 Richard Sandiford <richard@codesourcery.com>
2201 * libgcc2.c (LIBGCC2_MAX_UNITS_PER_WORD): New macro.
2202 (LIBGCC2_UNITS_PER_WORD): Use LIBGCC2_MAX_UNITS_PER_WORD rather than
2203 MIN_UNITS_PER_WORD to set the default. Also use it in the guard.
2205 2006-05-23 Joseph Myers <joseph@codesourcery.com>
2207 * expr.c (undefined_operand_subword_p): New.
2208 (emit_move_multi_word): Do not generate move from undefined bits
2209 of a paradoxical subreg.
2211 2006-05-23 Richard Sandiford <richard@codesourcery.com>
2213 PR rtl-optimization/27736
2214 * combine.c (replaced_rhs_value): New variable.
2215 (combine_instructions): Set it.
2216 (distribute_notes): When distributing a note in replaced_rhs_insn,
2217 check whether the value was used in replaced_rhs_value.
2219 2006-05-23 Andrew MacLeod <amacleod@redhat.com>
2222 * tree-ssa-loop-im.c (determine_invariantness_stmt): Use
2223 add_referenced_var instead of add_referenced_tmp_var.
2224 * tree-complex.c (create_one_component_var): Use add_referenced_var.
2225 * tree-ssa-loop-manip.c (create_iv, tree_unroll_loop): Use
2227 * tree-tailcall.c (adjust_accumulator_values, adjust_return_value,
2228 tree_optimize_tail_calls_1): Use add_referenced_var.
2229 * tree-ssa-loop-ivopts.c (create_new_iv): Use add_referenced_var.
2230 * tree-ssa-alias.c (create_memory_tag, create_global_var, create_sft):
2231 Use add_referenced_var.
2232 * tree-if-conv.c (ifc_temp_var): Use add_referenced_var.
2233 * gimplify.c (force_gimple_operand): Use add_referenced_var.
2234 * tree-ssa-phiopt.c (conditional_replacement, abs_replacement):
2235 Use add_referenced_var.
2236 * tree-dfa.c (struct walk_state): Remove.
2237 (find_referenced_vars): Remove walk state and vars_found hash table.
2238 (make_rename_temp): Use add_referenced_var.
2239 (find_vars_r): Pass less parameters to add_referenced_var.
2240 (referenced_var_p): New. Is var in referenced_var hash table.
2241 (referenced_var_insert): Assert var isn't already in hash table.
2242 (add_referenced_var): Don't need walk_state parameter. Add var if it
2243 isn't already in the hash table.
2244 (add_referenced_tmp_var): Remove.
2245 (find_new_referenced_vars_1): Use add_referenced_var.
2246 * tree-ssa-pre.c (create_expression_by_pieces,
2247 insert_into_preds_of_block, insert_extra_phis, realify_fake_stores):
2248 Use add_referenced_var.
2249 * tree-vect-patterns.c (vect_pattern_recog_1): Use add_referenced_var.
2250 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
2251 lambda_loopnest_to_gcc_loopnest, perfect_nestify): Use
2253 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
2254 vect_create_data_ref_ptr, vect_create_destination_var,
2255 vect_init_vector, vect_build_loop_niters,
2256 vect_generate_tmps_on_preheader, vect_update_ivs_after_vectorizer,
2257 vect_gen_niters_for_prolog_loop, vect_create_cond_for_align_checks):
2258 Use add_referenced_var.
2259 * tree-outof-ssa.c (create_temp): Use add_referenced_var.
2260 * tree-flow.h (add_referenced_tmp_var): Remove prototype
2261 (add_referenced_var): Add prototype.
2262 * tree-ssa-structalias.c (get_constraint_for,
2263 intra_create_variable_infos): Use add_referenced_var.
2265 2006-05-23 Alexandre Oliva <aoliva@redhat.com>
2267 * simplify-rtx.c (simplify_subreg): Adjust REG_OFFSET for
2268 big-endian paradoxical subregs.
2269 * var-tracking.c (struct micro_operation_def): Document that,
2270 for modify micro operations, insn is the subsequent instruction.
2271 (var_reg_delete_and_set, var_mem_delete_and_set): Split into...
2272 (var_reg_set, var_mem_set): ... new functions.
2273 (add_stores): Record subsequent insn.
2274 (compute_bb_dataflow): Use new functions for MO_USE.
2275 (emit_notes_in_bb): Use new functions for MO_USE. Emit use
2276 notes after the insn, and modify notes before the insn known
2277 to be the subsequent one.
2278 (vt_initialize): Invert sorting of MO_CLOBBERs and MO_SETs.
2280 2006-05-23 Kazu Hirata <kazu@codesourcery.com>
2283 * config/i386/i386.c (ix86_expand_builtin): Use
2284 gen_sse3_monitor64 for TARGET_64BIT.
2286 2006-05-22 Kenneth Zadeck <zadeck@naturalbridge.com>
2288 PR rtl-optimization/26375
2289 PR rtl-optimization/26855
2290 * df-problems (df_ru_bb_local_compute_process_def): Removed update
2292 (df_ru_bb_local_compute): Reversed statements and removed bogus
2293 comment explaining why they should be in wrong order.
2294 (df_ru_dump, df_rd_dump): Enhanced debug info.
2295 * modulo-sched.c (sms_schedule, tree_opt_pass pass_sms): Enhanced
2297 * ddg.c (add_deps_for_def): Converted use of reaching defs to
2298 reaching uses and fixed space problem.
2300 2006-05-23 Jan Hubicka <jh@suse.cz>
2302 * cgraphunit.c (decide_is_function_needed): Also nested functions
2303 and functions declared inline can be optimized out at -O0.
2305 2006-05-22 Gerald Pfeifer <gerald@pfeifer.com>
2307 * doc/install.texi (Configuration): Remove reference to CrossGCC
2311 2006-05-22 Kazu Hirata <kazu@codesourcery.com>
2314 * config/i386/i386.c (ix86_expand_branch): Jump to simple if
2315 ix86_compare_emitted is non-NULL.
2317 2006-05-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2320 * stmt.c (expand_asm_operands): Skip asm statement with erroneous
2323 2006-05-22 Richard Sandiford <richard@codesourcery.com>
2325 PR rtl-optimization/25514
2326 * combine.c (replaced_rhs_insn): New variable.
2327 (combine_instructions): Set replaced_rhs_insn when trying to replace
2328 a SET_SRC with a REG_EQUAL note.
2329 (distribute_notes): Use replaced_rhs_insn when determining the live
2330 range of a REG_DEAD register.
2332 2006-18-05 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
2333 Anatoly Sokolov <aesok@post.ru>
2335 * config/avr/avr.c (avr_mcu_types): Add support for attiny261,
2336 attiny461, attiny861, attiny25, attiny45, attiny85, attiny24,
2337 attiny44, attiny84, at90pwm2, at90pwm3, atmega165p, atmega169p,
2338 atmega164p, atmega324p, atmega644p, atmega644, atmega329,
2339 atmega3290, atmega649, atmega6490, atmega406, atmega640,
2340 atmega1280, atmega1281, at90can32, at90can64, at90usb646,
2341 at90usb647, at90usb1286 and at90usb1287 devices.
2342 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
2343 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
2345 2006-05-22 Richard Sandiford <richard@codesourcery.com>
2347 * mklibgcc.in (lib2funcs): Remove _floatdidf from initial assignment.
2349 2006-05-22 Richard Guenther <rguenther@suse.de>
2352 2006-01-31 Richard Guenther <rguenther@suse.de>
2353 Paolo Bonzini <bonzini@gnu.org>
2355 * doc/install.texi (--disable-libgcc-math): Document.
2357 2006-05-22 Richard Guenther <rguenther@suse.de>
2360 2006-01-31 Richard Guenther <rguenther@suse.de>
2362 * doc/invoke.texi (-msselibm): Document.
2363 * target.h (expand_library_builtin): New target hook.
2364 * builtins.c (expand_builtin): Use expand_library_builtin.
2365 (default_expand_library_builtin): New function.
2366 * gcc.c (LINK_GCC_MATH_SPEC): Define.
2367 (LINK_COMMAND_SPEC): Handle %(link_gcc_math).
2368 (link_gcc_math_spec): Declare.
2369 (static_specs): Add link_gcc_math_spec.
2370 * expr.h (default_expand_library_builtin): Declare.
2371 * target-def.h (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
2372 (TARGET_INITIALIZER): Add TARGET_EXPAND_LIBRARY_BUILTIN.
2373 * config/i386/i386.h: Provide LINK_GCC_MATH_SPEC.
2374 * config/i386/i386.opt (msselibm): New target option.
2375 * config/i386/i386.c (ix86_builtin_function_variants): New array.
2376 (ix86_init_sse_abi_builtins): New function.
2377 (ix86_expand_library_builtin): Likewise.
2378 (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
2379 (override_options): Handle error conditions wrt -msselibm.
2380 (ix86_builtins): Add function codes for SSE2 ABI builtins.
2381 (ix86_init_builtins): Call ix86_init_sse_abi_builtins.
2382 * doc/extend.texi (__builtin_sse2_*): Document new target specific
2385 2006-05-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2388 * c-common.c (self_promoting_args_p): Skip erroneous args.
2391 * c-decl.c (finish_struct): Skip erroneous fields.
2393 2006-05-22 Nick Clifton <nickc@redhat.com>
2395 * config/cris/cris.opt (march): Remove VarExists attribute.
2396 (max-stackframe=): Likewise.
2398 2006-05-22 Kazu Hirata <kazu@codesourcery.com>
2400 * doc/rtl.texi: Fix a typo.
2401 * see.c: Fix comment typos.
2403 * tree-ssa-structalias.h (alias_info): Remove num_references.
2405 2006-05-21 Mike Stump <mrs@apple.com>
2407 * config/darwin-c.c (BAD): Conditionalize on OPT_Wpragmas.
2409 (darwin_pragma_options): Use BAD instead.
2410 (darwin_pragma_unused): Likewise.
2411 (darwin_pragma_ms_struct): Likewise.
2413 2006-05-21 David Edelsohn <edelsohn@gnu.org>
2415 * config/rs6000/rs6000.md (floatsitf2): Remove constraints.
2417 2006-05-21 Kazu Hirata <kazu@codesourcery.com>
2419 PR rtl-optimization/27671
2420 * simplify-rtx.c (simplify_relational_operation_1): Fix
2421 simplifications of (eq/ne (xor x y) y) and
2422 (eq/ne (xor x y) x).
2424 PR tree-optimization/26622.
2425 * fold-const.c (fold_ternary) <COND_EXPR>: Call fold_convert
2428 2006-05-21 Bernhard Fischer <aldot@gcc.gnu.org>
2430 * tree-cfg.c: Prune whitespace.
2431 (debug_tree_cfg): Point to correct header containing the
2434 2006-05-21 Bernhard Fischer <aldot@gcc.gnu.org>
2437 * cgraphunit.c (verify_cgraph_node): Typo in error message.
2439 2006-05-20 Andrew Pinski <pinskia@physics.uc.edu>
2442 * cgraphunit.c (cgraph_optimize): Don't run ipa passes if error
2443 or sorry count is non zero.
2445 2006-05-20 Andreas Schwab <schwab@suse.de>
2447 * config/pa/pa-linux.h (STRING_ASM_OP): Prepend and append a tab.
2449 2006-05-19 Daniel Berlin <dberlin@dberlin.org>
2450 Kenneth Zadeck <zadeck@naturalbridge.com>
2452 PR rtl-optimization/26855
2454 * df-scan.c (mw_reg_pool, mw_link_pool): New allocation pools for
2456 (df_scan_alloc): Added code to properly handle multiword hard
2457 registers and add all_blocks parameter.
2458 (df_scan_free_internal, df_insn_refs_delete, df_ref_record): Added
2459 code to properly handle multiword hard registers.
2460 (df_rescan_blocks): Added code to remove deleted blocks from
2462 (df_ref_create_structure, df_ref_record): Added code to properly
2464 (df_ref_record_1): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER
2465 and set DF_REF_PARTIAL.
2466 (df_defs_record): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER.
2467 (df_uses_record): Added DF_REF_PARTIAL for subreg.
2468 (df_scan_add_problem): Added flags parameter.
2469 (df_ref_create_structure): Changed switching structure.
2470 (df_bb_refs_record): Fixed case where duplicate artificial refs
2471 were created. Changed location of flags.
2472 (df_record_entry_block_defs): Added code to make stack pointer
2473 live in entry block. Refined cases where frame pointer is needed.
2474 Changed location of flags.
2475 (df_record_exit_block_uses, df_insn_refs_record): Changed location of flags.
2476 (df_set_state): Removed function.
2477 (df_grow_reg_info, df_reg_chain_unlink, df_ref_remove,
2478 df_insn_create_insn_record, df_insn_refs_delete,
2479 df_ref_create_structure): Formatting changes.
2480 * df-core.c (df_mvs_dump, df_set_flags, df_clear_flags,
2481 df_delete_basic_block): New function.
2482 (df_init): Changed location of flags.
2483 (df_add_problem): Added flags parameter and the way flags are
2485 (df_insn_uid_debug, df_ref_debug, debug_df_defno, debug_df_ref,
2486 debug_df_chain): Improved debugging output.
2487 (df_insn_debug, df_insn_uid_debug): Added multiword reg support.
2488 (df_refs_chain_dump): Removed df parameter.
2489 (df_iterative_dataflow): Added consistency check.
2490 (df_prune_to_subcfg): Made public.
2491 (df_analyze_problem): Added blocks_to_init parameter and made
2493 (df_ref_record, df_bb_refs_record, df_mark_reg,
2494 df_record_exit_block_uses): Whitespace changes.
2495 (df_dump): Whitespace changes.
2496 * df.h: Some reordering to remove forward references.
2497 (df_ref_flags.DF_REF_MW_HARDREG, DF_REF_PARTIAL,
2498 DF_REF_MUST_CLOBBER, DF_REF_MAY_CLOBBER): New fields.
2499 (df_ref_flags.DF_REF_CLOBBER): Deleted field.
2500 (dataflow.flags): New field.
2501 (df.flag): Deleted field.
2502 (df_alloc_function): Added additional bitmap parameter.
2503 (df_dependent_problem_function): New type.
2504 (df_problem.changeable_flags): New field.
2505 (df_ref_flags.DF_REF_DIES_AFTER_THIS_USE, DF_SCAN_INITIAL,
2506 DF_SCAN_GLOBAL, DF_SCAN_POST_ALLOC, df_state): Removed.
2507 (df_mw_hardreg): New struct.
2508 (DF_INSN_UID_MWS): New macro.
2509 (df_refs_chain_dump, df_ref_debug, df_chain_dump): Removed df
2511 (df_add_problem, df_ru_add_problem, df_rd_add_problem,
2512 df_lr_add_problem, df_ur_add_problem, df_urec_add_problem,
2513 df_ri_add_problem, df_scan_add_problem): Added flags parameter.
2514 (df_set_state): Removed function.
2515 (df_set_flags, df_clear_flags, df_delete_basic_block) New functions.
2516 * df-problems.c (df_chain_dump): Removed df parameter.
2517 (df_ru_alloc, df_rd_alloc, df_lr_alloc, df_ur_alloc,
2518 df_urec_alloc, df_chain_alloc, df_ri_alloc): Added all blocks
2520 (df_ru_alloc, df_rd_alloc): Now resets all blocks.
2521 (df_rd_bb_local_compute_process_def, df_ur_bb_local_compute,
2522 df_chain_create_bb, df_create_unused_note, df_ri_bb_compute):
2523 Split DF_REF_CLOBBER into DF_REF_MAY_CLOBBER and
2524 DF_REF_MUST_CLOBBER cases.
2525 (df_ru_bb_local_compute_process_def,
2526 df_rd_bb_local_compute_process_def, df_lr_bb_local_compute,
2527 df_lr_bb_local_compute, df_ur_bb_local_compute,
2528 df_chain_create_bb): Made subreg aware.
2529 (df_ru_bb_local_compute, df_rd_bb_local_compute,
2530 df_lr_bb_local_compute, df_lr_bb_local_compute,
2531 df_chain_create_bb): Cleanup to use proper macros.
2532 (df_ur_local_finalize, df_urec_local_finalize): Removed unnecessary
2533 code to fixup bitvectors.
2534 (df_ri_alloc): Cleared lifetime.
2535 (df_ignore_stack_reg, df_kill_notes, df_set_notes_for_mw,
2536 df_create_unused_note): New function.
2537 (df_ri_bb_compute, df_ri_compute): Added code to create/update
2538 REG_DEAD and REG_UNUSED notes as well as register information.
2539 (df_ru_dump, df_rd_dump, df_lr_dump, df_ur_dump, df_urec_dump,
2540 df_chains_dump): Fixed crash if problem was never run.
2541 (df_ru_add_problem, df_rd_add_problem, df_lr_add_problem,
2542 df_ur_add_problem, df_urec_add_problem, df_chain_add_problem,
2543 df_ri_add_problem): Processes flags in uniform manner.
2544 (df_ru_alloc, df_ru_local_compute, df_ru_confluence_n, df_ru_free,
2545 df_ru_dump, df_rd_local_compute, df_rd_confluence_n, df_rd_free,
2546 df_rd_dump, df_urec_free_bb_info): Formatting changes.
2547 (df_ru_free_bb_info, df_ru_bb_local_compute, df_ru_dump,
2548 df_rd_free_bb_info, df_rd_bb_local_compute_process_def,
2549 df_rd_bb_local_compute, df_rd_dump, df_lr_free_bb_info,
2550 df_lr_bb_local_compute, df_lr_local_compute, df_ur_free_bb_info,
2551 df_ur_dump, df_urec_free_bb_info, df_urec_dump,
2552 df_chain_create_bb, df_ri_bb_compute): Whitespace changes.
2553 * modulo-sched.c (sms_schedule): Added flag parameter to calls.
2554 * see.c (see_initialize_data): Ditto.
2555 * final.c (rest_of_clean_state) Added regstack_completed.
2556 * rtl.h (regstack_completed): Ditto.
2557 * reg-stack.c (regstack_completed): Ditto.
2559 2006-05-19 Mike Stump <mrs@apple.com>
2561 * c-tree.h (default_conversion): Remove.
2562 * c-common.h (default_conversion): Add.
2564 2006-05-19 Zdenek Dvorak <dvorakz@suse.cz>
2566 * tree-vrp.c (valid_value_p): New function.
2567 (adjust_range_with_scev): Fail if the value of bound is not
2570 2006-05-19 Richard Sandiford <richard@codesourcery.com>
2572 * config/mips/linux-unwind.h: Include <asm/unistd.h>
2573 (mips_fallback_frame_state): Use syscall numbers to determine
2574 the appropriate li instruction for the current ABI. Only use
2575 __NR_sigreturn for o32.
2577 2006-05-19 Nicolas Setton <setton@adacore.com>
2579 * langhooks.h (struct lang_hooks): Add dwarf_name language hook.
2580 * langhooks.c (lhd_dwarf_name): New function.
2581 * langhooks-def.h (lhd_dwarf_name): Declare.
2582 (LANG_HOOKS_DWARF_NAME): New macro, defaults to lhd_dwarf_name.
2583 * dwarf2out.c (dwarf2_name): Use the dwarf_name language hook.
2584 * ada/misc.c (gnat_dwarf_name): New function.
2585 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
2587 2006-05-19 Richard Sandiford <richard@codesourcery.com>
2589 * libgcc2.c (MIN_UNITS_PER_WORD): Move default definition from
2591 (LIBGCC2_UNITS_PER_WORD): Provide default definition, using old
2592 MIN_UNITS_PER_WORD logic from libgcc2.h. Do nothing if
2593 LIBGCC2_UNITS_PER_WORD > MIN_UNITS_PER_WORD.
2594 * libgcc2.h (MIN_UNITS_PER_WORD): Remove definition from here.
2595 Use LIBGCC2_UNITS_PER_WORD rather than MIN_UNITS_PER_WORD to
2596 determine the size of Wtype, etc.
2597 * mklibgcc.in (LIB2_SIDITI_CONV_FUNCS): New argument.
2598 (swfloatfuncs): New variable.
2599 (dwfloatfuncs): Likewise.
2600 (lib2funcs): Remove floating-point conversion functions from
2601 initial assignment. Use LIB2_SIDITI_CONV_FUNCS to determine
2602 the set of conversion routines needed. Allow entries to specify
2603 an object name, filename and word size. Update users accordingly.
2604 * Makefile.in (libgcc.mk): Pass LIB2_SIDITI_CONV_FUNCS.
2605 * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Define.
2609 2006-02-08 Roger Sayle <roger@eyesopen.com>
2612 * config/fixtfdi.c: New libgcc source file.
2613 * config/fixunstfdi.c: New source file.
2614 * config/floatditf.c: New source file.
2615 * config/floatunditf.c: New souce file.
2616 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Include the new source
2617 files above instead of config/mips/_tilib.c.
2618 * config/mips/t-linux64 (LIB2FUNCS_EXTRA): Likewise.
2620 2006-05-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2622 * pa/t-hpux-shlib (SHLIB_LINK): Remove `-lc'.
2623 * pa/pa-hpux11.h (LIB_SPEC): Update comment.
2625 2006-05-18 Mike Stump <mrs@apple.com>
2627 Fix up vla, vm and [*] sematics.
2633 * c-tree.h (struct c_arg_info): Add had_vla_unspec.
2634 (c_vla_unspec_p): Add.
2635 (c_vla_type_p): Add.
2636 * c-decl.c (struct c_scope): Add had_vla_unspec.
2637 (build_array_declarator): Add support for [*].
2638 (grokdeclarator): Likewise.
2639 (grokparms): Likewise.
2640 (get_parm_info): Likewise.
2641 * c-objc-common.c (c_vla_unspec_p): Likewise.
2642 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Likewise.
2643 * c-parser.c (c_parser_typeof_specifier): Evaluate arguments to
2644 typeof when argument is a variably modified type not inside sizeof or alignof.
2645 (c_parser_direct_declarator_inner): Propagate errors.
2646 (c_parser_sizeof_expression): Add support for [*].
2647 (c_parser_parms_declarator): Initialize had_vla_unspec.
2648 (c_parser_parms_list_declarator): Likewise.
2649 * c-typeck.c (c_vla_type_p): Add.
2650 (composite_type): Add support for vla compositing.
2651 (comptypes_internal): Add support for vla compatibility.
2652 (c_expr_sizeof_expr): Evaluate vla arguments.
2653 * tree.c (variably_modified_type_p): Update comment for [*].
2655 2006-05-18 Michael Matz <matz@suse.de>
2658 * config.host: Make assignments to host_xmake_file cumulative.
2659 * config.host (*-darwin*): Test $host, not $target.
2661 2006-05-12 Stuart Hastings <stuart@apple.com>
2663 * config/i386/i386.opt (-mstackrealign): New flag.
2664 * config/i386/i386.c (force_align_arg_pointer): New attribute.
2665 (ix86_handle_cconv_attribute): Emit error when
2666 force_align_arg_pointer attribute collides with too many regparms.
2667 (ix86_function_regparm): Limit regparms when used with
2668 force_align_arg_pointer attribute. (ix86_internal_arg_pointer):
2669 Support stack-realigning prologue in non-main functions. Emit
2670 warning for nested functions under -mstackrealign, emit error for
2671 nested functions with force_align_arg_pointer attribute.
2672 * doc/extend.texi (force_align_arg_pointer): Document it.
2673 * doc/invoke.texi (-mstackrealign): Document it.
2675 2006-05-17 Kazu Hirata <kazu@codesourcery.com>
2677 PR rtl-optimization/27477
2678 * combine.c (try_combine): Don't split a parallel consisting
2679 of two sets into two individual sets if both sets reference
2682 2006-05-17 H.J. Lu <hongjiu.lu@intel.com>
2684 * config/arm/arm.opt (target_fpe_name): Remove VarExists.
2685 * config/rs6000/rs6000.opt (TARGET_NO_FP_IN_TOC): Likewise.
2687 * doc/options.texi (VarExists): Updated.
2689 2006-05-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2691 * unwind-dw2.c: Add declarations for uw_update_context and
2693 * pa/hpux-unwind.h (pa_fallback_frame_state): When an export stub is
2694 detected, advance frame state and context once to skip over stub.
2696 2006-05-17 Sebastian Pop <pop@cri.ensmp.fr>
2700 * tree-loop-linear.c (linear_transform_loops): Don't test perfect_nest_p.
2701 Call rewrite_into_loop_closed_ssa only when something changed.
2702 * lambda.h (gcc_loopnest_to_lambda_loopnest): Update declaration.
2703 * lambda-code.c (can_convert_to_perfect_nest): Declared.
2704 (gcc_loopnest_to_lambda_loopnest): Removed need_perfect_nest parameter.
2705 Test for perfect_nest_p here. Fix formating.
2706 (replace_uses_equiv_to_x_with_y): Fix formating.
2707 (stmt_uses_op): Removed.
2708 (can_convert_to_perfect_nest): Removed loopivs parameter.
2709 Complete the test by checking the scalar dependences.
2710 (perfect_nestify): Remove the test for can_convert_to_perfect_nest.
2713 2005-05-17 Bernd Schmidt <bernd.schmidt@analog.com>
2716 From Dan Kegel <dank@kegel.com>:
2717 * Makefile.in: Strip "dir/../" combinations from SYSTEM_INCLUDE_DIR.
2719 2006-05-17 Eric Botcazou <ebotcazou@adacore.com>
2721 * tree.c (variably_modified_type_p) <ARRAY_TYPE>: Return true
2722 if the element type is variably modified without recursing.
2724 2006-05-17 Sebastian Pop <pop@cri.ensmp.fr>
2727 * tree-loop-linear.c (try_interchange_loops): Test for
2728 no data dependences.
2730 2006-05-17 Zdenek Dvorak <dvorakz@suse.cz>
2732 PR tree-optimization/27548
2733 * tree-scalar-evolution.c (scev_const_prop): Do not prolong life
2734 range of ssa names that appear on abnormal edges.
2735 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Export.
2736 * tree-flow.h (contains_abnormal_ssa_name_p): Declare.
2738 2005-05-17 Bernd Schmidt <bernd.schmidt@analog.com>
2741 * expr.c (safe_from_p): Handle CONSTRUCTOR again.
2743 2006-05-17 Jakub Jelinek <jakub@redhat.com>
2746 * tree.h (OMP_PARALLEL_COMBINED): Define.
2747 * gimplify.c (struct gimplify_omp_ctx): Add is_combined_parallel field.
2748 (new_omp_context): Add is_combined_parallel argument.
2749 (gimplify_scan_omp_clauses): Add in_combined_parallel argument, adjust
2750 new_omp_context caller.
2751 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
2752 Adjust gimplify_scan_omp_clauses callers.
2753 (omp_is_private): Issue errors if iteration variable is firstprivate
2754 or reduction in the current context.
2755 * c-parser.c (c_parser_omp_parallel): Set OMP_PARALLEL_COMBINED
2756 on combined parallel workshare constructs.
2758 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
2760 * Makefile.in (GCC_OBJS): Replace options.o with gcc-options.o.
2761 (gcc-options.o): New rule.
2763 * optc-gen.awk: Protect variables for gcc-options.o with
2764 #ifdef GCC_DRIVER/#endif.
2766 2006-05-16 Daniel Berlin <dberlin@dberlin.org>
2768 Fix PR tree-optimization/27373
2769 * tree-ssa-forwprop.c: (forward_propagate_addr_expr_1): Add argument.
2770 (forward_propagate_addr_expr): Update call.
2772 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
2774 * doc/options.texi: Move the Negative option.
2776 2006-05-16 Richard Guenther <rguenther@suse.de>
2778 PR tree-optimization/22303
2779 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle reads
2781 (evaluate_stmt): Fall back to fold_const_aggregate_ref, if
2782 ccp_fold did not simplify the statement.
2784 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
2787 * Makefile.in (GCC_OBJS): New.
2788 (OBJS-common): Add opts-common.o.
2789 (xgcc$(exeext)): Replace gcc.o with $(GCC_OBJS).
2790 (cpp$(exeext)): Likewise.
2791 (gcc.o): Also depend on opts.h.
2792 (opts-common.o): New.
2794 * common.opt (gcoff): Add Negative(gdwarf-2).
2795 (gdwarf-2): Add Negative(gstabs).
2796 (gstabs): Add Negative(gstabs+).
2797 (gstabs+): Add Negative(gvms).
2798 (gvms): Add Negative(gxcoff).
2799 (gxcoff): Add Negative(gxcoff+).
2800 (gxcoff+): Add Negative(gcoff).
2801 * config/i386/i386.opt (m32): Add Negative(m64).
2802 (m64): Add Negative(m32).
2804 * doc/options.texi: Document the Negative option.
2806 * gcc.c: Include "opts.h".
2807 (main): Call prune_options after expandargv.
2809 * optc-gen.awk: Generate common declarations for all flag
2810 variables in options.c. Output the neg_index field.
2812 * opts.c (find_opt): Moved to ...
2813 * opts-common.c: Here. New file.
2815 * opts.h (cl_option): Add a neg_index field.
2817 (prune_options): Likewise.
2819 2006-05-16 Jakub Jelinek <jakub@redhat.com>
2822 * omp-low.c (expand_omp_parallel): Don't assert
2823 .OMP_DATA_I = &.OMP_DATA_O is the first statement in the block,
2824 instead search for it.
2827 * gimplify.c (gimplify_omp_for): Remove assertion that iteration var
2830 2006-05-16 Andreas Schwab <schwab@suse.de>
2832 * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Add missing @end
2835 2006-05-15 Roger Sayle <roger@eyesopen.com>
2838 * config/i386/i386.c (legitimate_constant_p) <CONST_DOUBLE>: TImode
2839 integer constants other than zero are only legitimate on TARGET_64BIT.
2840 <CONST_VECTOR> Only zero vectors are legitimate.
2841 (ix86_cannot_force_const_mem): Integral and vector constants can
2842 always be put in the constant pool.
2844 2006-05-16 DJ Delorie <dj@redhat.com>
2846 * crtstuff.c (__dso_handle): Set section from
2847 TARGET_LBIGCC_SDATA_SECTION if defined.
2848 * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Document.
2849 * config/mips/mips.h (TARGET_LIBGCC_SDATA_SECTION): Define.
2851 2006-05-16 Danny Smith <dannysmith@users.sourceforge.net>
2854 * config.host (i[34567]86-*-mingw*): Append i386/x-mingw32 to
2857 2006-05-16 Ben Elliston <bje@au.ibm.com>
2859 * tree-cfg.c (split_edge_bb_loc): Remove unused variable `src'.
2861 2006-05-15 Per Bothner <per@bothner.com>
2863 * tree.c: (last_annotated_node): Use source_locus typedef.
2864 This permits bootstrapping with --enable-mapped-location.
2866 2006-05-15 Zdenek Dvorak <dvorakz@suse.cz>
2868 PR tree-optimization/26830
2869 * tree-into-ssa.c (struct ssa_name_info): Add age field.
2870 (info_for_ssa_name, current_info_for_ssa_name_age,
2871 blocks_to_update): New variables.
2872 (get_ssa_name_ann): Use info_for_ssa_name instead of SSA_NAME_AUX.
2873 (clear_ssa_name_info, initialize_flags_in_bb,
2874 mark_block_for_update): New functions.
2875 (mark_def_sites, rewrite_stmt): Assert that blocks_to_update is NULL.
2876 (insert_phi_nodes_for, mark_use_interesting, prepare_block_for_update,
2877 prepare_def_site_for): Use mark_block_for_update.
2878 (mark_def_interesting): Assert that the processed block is marked in
2879 blocks_to_update. Do not take blocks argument.
2880 (prepare_use_sites_for, prepare_names_to_update): Do not take blocks
2882 (rewrite_update_init_block, rewrite_update_stmt): Only process
2883 blocks with statements to rewrite.
2884 (delete_update_ssa): Do not clear SSA_NAME_AUX.
2885 (update_ssa): Initialize and free blocks_to_update. Do not
2886 clear flags on statements. Do not use blocks bitmap.
2887 * tree.h (SSA_NAME_AUX): Removed.
2888 (struct tree_ssa_name): Removed aux field.
2889 * print-tree.c (print_node): Do not print SSA_NAME_AUX.
2891 2006-05-15 Richard Guenther <rguenther@suse.de>
2893 PR tree-optimization/27603
2894 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
2895 Do computations in original type.
2897 2006-05-15 Mircea Namolaru <namolaru@il.ibm.com>
2899 * see.c: Code style changes such as redundant paranthesis,
2900 redundant intialization of local variables etc.
2901 (see_main): Declared now as static.
2902 * doc/invoke.texi: Update that -fsee is not enabled by
2905 2006-05-15 Jakub Jelinek <jakub@redhat.com>
2907 * omp-low.c (check_omp_nesting_restrictions): New function.
2908 (scan_omp_1): Call it.
2911 * omp-low.c (build_outer_var_ref): If VAR is reference in orphaned
2912 construct, return *VAR.
2914 2006-05-14 Kaz Kojima <kkojima@gcc.gnu.org>
2916 PR rtl-optimization/27406
2917 * bt-load.c (migrate_btr_def): Skip the block having abnormal
2920 2006-05-14 Roger Sayle <roger@eyesopen.com>
2922 PR rtl-optimization/27538
2923 * combine.c (expand_compound_operation): Call gen_lowpart
2924 before calling simplify_shift_const.
2926 2006-05-14 Roger Sayle <roger@eyesopen.com>
2928 PR rtl-optimization/22563
2929 * expmed.c (store_fixed_bit_field): When using AND and IOR to store
2930 a fixed width bitfield, always force the intermediates into psuedos.
2932 2006-05-14 Bernhard Fischer <aldot@gcc.gnu.org>
2935 * mkconfig.sh: Use operator = instead of == for test.
2937 2006-05-13 Nick Clifton <nickc@redhat.com>
2939 * dwarf2out.c (dbx_reg_number): Check return value from
2940 LEAF_REG_REMAP and only use it if it is valid.
2941 (multiple_reg_loc_descriptor): Likewise.
2943 2006-05-13 Richard Guenther <rguenther@suse.de>
2945 * config.host <i[34567]86-*-cygwin*>: Append i386/x-cygwin to
2948 2006-05-13 Steven Bosscher <stevenb.gcc@gmail.com>
2950 * df-core.c (df_bb_regno_last_use_find): Do not look for dataflow
2951 information attached to non-INSNs such as NOTEs.
2952 (df_bb_regno_first_def_find, df_bb_regno_last_def_find): Likewise.
2954 2006-05-12 Andreas Krebbel <krebbel1@de.ibm.com>
2956 * config/s390/s390.c (s390_const_ok_for_constraint_p): Disallow -4G for
2958 * config/s390/s390.md: Adjust comment describing On constraint.
2960 2006-05-11 Jan Hubicka <jh@suse.cz>
2962 * cgraphunit.c (decide_is_function_needed): Don't force always_inline
2963 to be output at -O0.
2965 2006-05-11 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2968 * fold-const.c (size_binop): Move sanity check for arguments to
2969 the beginning of the function.
2972 * fold-const.c (tree_expr_nonnegative_p): Return early on invalid
2975 2006-05-11 Richard Guenther <rguenther@suse.de>
2978 * fold-const.c (fold_unary): Handle intermediate conversion
2979 to a pointer type like intermediate conversion to an integer
2980 type in folding of (T1)(T2)var to var.
2981 Match the code to the comment in the final conversion for
2982 (T1)(T2)var to (T1)var regarding to type precision. Rather
2983 than disallow T1 being of pointer type, assert that both T1
2984 and var are of pointer type or not. Make sure not to fall
2985 over the frontends lazyness wrt array to pointer decay though.
2987 2006-05-10 Richard Earnshaw <rearnsha@arm.com>
2989 * arm.c (arm_struct_value_rtx): Delete.
2990 (TARGET_STRUCT_VALUE_RTX): Use the default definition.
2991 (arm_init_cumulative_args): Always initialize nregs to zero.
2993 2006-05-10 Richard Guenther <rguenther@suse.de>
2995 PR tree-optimization/27532
2996 * tree-object-size.c (plus_expr_object_size): Fix typo.
2998 2006-05-10 Kazu Hirata <kazu@codesourcery.com>
3001 * config/m68k/m68k.md (ashrdi_const32, ashrdi_const32_mem,
3002 ashrdi_const, ashrdi3): Use a scratch register.
3004 2006-05-10 Richard Guenther <rguenther@suse.de>
3006 PR tree-optimization/27302
3007 * fold-const.c (operand_equal_p): For two comparisons,
3008 try comparison of one comparison code swapped if that yields
3011 2006-05-10 Ben Elliston <bje@au.ibm.com>
3013 * tree-pretty-print.c (pretty_print_string): No need to handle
3014 '\0' as a special character.
3016 * tree.h: Include "hashtab.h".
3017 (iterative_hash_expr): Use hashval_t in its prototype.
3018 * Makefile.in (TREE_H): Add $(HASHTAB_H).
3020 2006-05-09 Steve Ellcey <sje@cup.hp.com>
3023 * config.gcc (hppa[12]*-*-hpux10*): Set gas to yes.
3024 (hppa*64*-*-hpux11*): Ditto.
3025 (hppa[12]*-*-hpux11*): Ditto.
3027 2006-05-09 David Edelsohn <edelsohn@gnu.org>
3030 * config/rs6000/aix41.h (TARGET_64BIT): Define.
3032 2006-05-09 Michael Matz <matz@suse.de>
3034 * config.host (<i[34567]86-*-*, x86_64-*-*>): Set
3035 host_extra_gcc_objs and host_xmake_file.
3036 (<*-*-linux*>): Don't overwrite host_xmake_file.
3037 * gcc.c (static_spec_functions): Add EXTRA_SPEC_FUNCTIONS.
3038 * config/i386/i386.h (EXTRA_SPEC_FUNCTIONS): Define.
3039 (host_detect_local_cpu): Declare.
3040 (CC1_CPU_SPEC): Add -march=native and -mtune=native cases.
3041 * config/i386/i386.c (override_options): Handle -mtune=native
3043 * config/i386/x-i386: New file.
3044 * config/i386/driver-i386.c: New file.
3045 * doc/invoke.texi (<i386 and x86-64 Options>): Describe
3048 2006-05-09 Dirk Mueller <dmueller@suse.de>
3049 Richard Guenther <rguenther@suse.de>
3052 * fold-const.c (fold_read_from_constant_string): Relax check
3053 for matching types to matching modes.
3055 2006-05-09 Zdenek Dvorak <dvorakz@suse.cz>
3057 PR rtl-optimization/27335
3058 * loop-unroll.c (peel_loops_completely): Use loops->parray to walk the
3061 2006-05-08 Chao-ying Fu <fu@mips.com>
3062 Richard Sandiford <richard@codesourcery.com>
3064 * config/mips/mips-ps-3d.md (scc_ps, s<code>_ps): New patterns.
3065 (vcondv2sf, sminv2sf3, smaxv2sf3): Likewise.
3066 * config/mips/mips.md (UNSPEC_SCC): New constant.
3067 * config/mips/mips-protos.h (mips_expand_vcondv2sf): Declare.
3068 * config/mips/mips.c (mips_reverse_fp_cond_p): New function.
3069 (mips_emit_compare): Use it.
3070 (mips_expand_vcondv2sf): New function.
3072 2006-05-08 Daniel Berlin <dberlin@dberlin.org>
3074 Fix PR tree-optimization/27093
3075 * tree-ssa-alias.c (recalculate_used_alone): Mark variables for
3076 renaming when they become not-used_alone.
3078 2006-05-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3080 * hpux-unwind.h (pa_fallback_frame_state): Handle return parameter
3081 relocation and relocation stubs.
3083 2006-05-08 Eric Christopher <echristo@apple.com>
3085 * unwind-dw2-fde-darwin.c (examine_objects): Only check data
3088 2006-05-08 Jan Hubicka <jh@suse.cz>
3091 * cgraphunit.c (decide_is_function_needed): When not optimizing even
3092 unused static functions are needed.
3094 2006-05-08 Roger Sayle <roger@eyesopen.com>
3097 * reload.c (find_reloads_toplev): Only return the simplified SUBREG
3098 of a reg_equiv_constant if the result is a legitimate constant.
3100 2006-05-08 Uros Bizjak <uros@kss-loka.si>
3103 * config/i386/i386.c (ix86_rtx_costs) [FLOAT_EXTEND]: For
3104 standard 80387 constants, raise the cost to prevent
3105 compress_float_constant() to generate load from memory.
3107 2006-05-08 Kazu Hirata <kazu@codesourcery.com>
3109 * config/arm/constraints.md (c): Fix a typo.
3111 * see.c, tree-flow-inline.h, tree-phinodes.c: Fix comment
3114 2006-05-07 H.J. Lu <hongjiu.lu@intel.com>
3117 * config/i386/pmmintrin.h (_mm_monitor): Remove macro. Use
3119 (_mm_mwait): Likewise.
3121 * config/i386/sse.md (sse3_mwait): Replace "mwait\t%0, %1" with
3123 (sse3_monitor): Make it 32bit only.
3124 (sse3_monitor64): New. 64bit monitor.
3126 2006-05-07 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3129 * config/i386/i386.c (classify_argument): Skip fields with invalid
3132 2006-05-07 Richard Guenther <rguenther@suse.de>
3134 PR tree-optimization/27409
3135 * tree-ssa-structalias.c (get_constraint_for_component_ref):
3136 Do not try to find zero-sized subvars.
3138 2006-05-07 Richard Guenther <rguenther@suse.de>
3140 PR tree-optimization/27136
3141 * tree-ssa-loop-niter.c (get_val_for): Correct function
3142 comment, assert requirements.
3143 (loop_niter_by_eval): Stop processing if the iterated
3144 value did not simplify.
3146 2006-05-07 Mircea Namolaru <namolaru@il.ibm.com>
3148 * opts.c (flag_see): remove its setting at -O3.
3150 2006-05-07 Richard Earnshaw <rearnsha@arm.com>
3152 * genpeep.c (main): Make insn-peep.c depend on flags.h.
3153 * arm/constraints.md: New file.
3154 * arm.h (REG_CLASS_FROM_LETTER_P): Delete.
3155 (CONST_OK_FOR_ARM_LETTER, CONST_OK_FOR_THUMB_LETTER)
3156 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_ARM_LETTER)
3157 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT_STR_ARM)
3158 (CONSTRAINT_LEN, EXTRA_CONSTRAINT_THUMB, EXTRA_CONSTRAINT_STR)
3159 (EXTRA_MEMORY_CONSTRAINT): Likewise.
3160 * arm.md: Include constraints.md.
3161 (thumb_movsi_insn): Use satisfies_constraint_J.
3162 (movhi, movqi): Use satisfies_constraint_I.
3164 2006-04-29 Anatoly Sokolov <aesok@post.ru>
3166 * config/avr/avr.h (CRT_BINUTILS_SPECS): Fixed crt* file name
3167 for atmeg a645 device.
3169 2006-05-06 Richard Guenther <rguenther@suse.de>
3171 PR tree-optimization/27151
3172 * tree-vect-transform.c (vectorizable_condition): Punt on
3173 values that have a different type than the condition.
3175 2006-05-03 Aldy Hernandez <aldyh@redhat.com>
3178 * c-parser.c (c_parser_cast_expression): Only insert casts into
3179 hash table if pointer.
3180 * function.c (used_types_insert_helper): Rename from
3182 (used_types_insert): Call used_types_insert_helper.
3183 * function.h (used_types_insert): Accept only one argument.
3185 2006-05-05 David Edelsohn <edesohn@gnu.org>
3187 * config/rs6000/rs6000.md: Mark all "X" constraints for clobbered
3188 scratch with output modifier.
3190 2006-05-04 David Edelsohn <edelsohn@gnu.org>
3193 * config/rs6000/rs6000.md (stmsi_power): Mark clobber constraint
3194 with output modifier.
3196 2006-05-04 Richard Sandiford <richard@codesourcery.com>
3199 * config/mips/mips.c (mips_symbolic_address_p): Return true
3200 for SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL, SYMBOL_TPREL,
3201 SYMBOL_GOTTPREL, and SYMBOL_TLS.
3203 2006-05-04 Richard Guenther <rguenther@suse.de>
3205 PR tree-optimization/14287
3206 PR tree-optimization/14844
3207 PR tree-optimization/19792
3208 PR tree-optimization/21608
3209 PR tree-optimization/27090
3210 * tree-ssa-pre.c (try_combine_conversion): New function.
3211 (compute_avail): After constructing the value-handle
3212 expression, use try_combine_conversion to combine NOP_EXPRs
3213 with previous value-handle expressions and use the result if it
3216 2006-05-04 Joseph S. Myers <joseph@codesourcery.com>
3218 * config/mips/linux64.h (DWARF_OFFSET_SIZE): Remove.
3220 2006-05-04 Jan Hubicka <jh@suse.cz>
3223 * cgraphunit.c (verify_cgraph_node): Fix cgraph_hash testing.
3225 2006-05-04 Bernd Schmidt <bernd.schmidt@analog.com>
3227 * config/bfin/predicates.md (const01_rtx): Tell generator programs
3228 that this only matches CONST_INTs. All users changed to VOIDmode
3231 * config/bfin/bfin.c: Include "optabs.h".
3232 (bfin_rtx_costs): Some costs for vector operations, to allow combine
3234 (enum bfin_builtins): Add a number of fractional and vector builtins.
3235 (bfin_init_builtins): Likewise.
3236 (struct builtin_description, bdesc_2arg, bdesc_1arg): New.
3237 (safe_vector_operand, bfin_expand_binop_builtin,
3238 bfin_expand_unop_builtin): New functions.
3239 (bfin_expand_builtin): Handle the new builtins.
3240 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
3243 2006-05-04 Leehod Baruch <leehod@il.ibm.com>
3246 * Makefile.in (OBJS-common): Add see.o.
3247 (see.o): Add dependencies.
3248 * common.opt (fsee): New flag for the see optimization was added.
3249 * opts.c (flag_see): Initialized.
3250 * passes.c (init_optimization_passes, pass_see): New pass.
3251 * rtl.h (see_main): Declaration as extern.
3252 * timevar.def (TV_SEE): New.
3253 * tree-pass.h (pass_see): Declaration as extern.
3254 * invoke.texi (-fsee): Document.
3255 * recog.c (validate_simplify_insn): New function.
3256 * recog.h (validate_simplify_insn): Declaration as extern.
3257 * df-problems.c (df_chain_dump): Check for NULL.
3259 2006-05-04 Kenneth Zadeck <zadeck@naturalbridge.com>
3260 Daniel Berlin <dberlin@dberlin.org>
3262 * cfgrtl.c (insert_insn_bb_end_new): New function.
3263 * basic-block.h (insert_insn_bb_end_new): Declaration as extern.
3265 2006-05-04 Leehod Baruch <leehod.baruch@weizmann.ac.il>
3267 * df.h (struct web_entry): Moved from web.c.
3268 (union_defs): Declaration as extern.
3269 (unionfind_root): Likewise.
3270 (unionfind_union): Likewise.
3271 * web.c (struct web_entry): Moved to df.h.
3272 (unionfind_root): Remove static declaration.
3273 (unionfind_union): Likewise.
3274 (union_defs): Likewise and generalize to use callback function.
3275 (web_main): Update arguments for union_defs function call.
3277 2006-05-04 Richard Guenther <rguenther@suse.de>
3279 PR tree-optimization/26447
3280 * tree-ssa-pre.c (realify_fake_stores): For necessary loads
3281 produce SSA_NAME copies before the store stmt to avoid
3282 breaking exception handling.
3284 2006-05-04 Jakub Jelinek <jakub@redhat.com>
3287 * gimplify.c (omp_is_private): If var is shared in some outer context,
3288 return false instead of true. Stop searching on parallel context
3291 2006-05-03 Alexandre Oliva <aoliva@redhat.com>
3294 * coverage.c: Use get_gcov_unsigned_t() instead of
3295 unsigned_type_node all over.
3297 2006-05-02 Andrew MacLeod <amacleod@redhat.com>
3299 PR tree-optimization/27381
3300 * tree-phinodes.c (remove_phi_arg_num): When moving a phi argument,
3301 maintain the same immediate_use links.
3302 * tree-ssa-operands.c (dump_immediate_uses_for): Show iteration marker
3303 node rather than segfaulting.
3305 2006-05-03 Jakub Jelinek <jakub@redhat.com>
3308 * gimplify.c (gimplify_scan_omp_clauses): Compare OMP_CLAUSE_CODE
3309 rather than TREE_CODE to OMP_CLAUSE_REDUCTION. Set also GOVD_SEEN
3310 bit for OMP_CLAUSE_REDUCTION_PLACEHOLDER.
3312 2006-05-02 Daniel Berlin <dberlin@dberlin.org>
3314 Fix PR tree-optimization/26626
3315 * tree-ssa-structalias.c (compute_points_to_sets): For now, solve
3317 * tree-ssa-operands.c (access_can_touch_variable): Allow
3318 typecasting through union pointers.
3320 2006-05-02 Jakub Jelinek <jakub@redhat.com>
3323 * omp-low.c (maybe_lookup_decl_in_outer_ctx): New function.
3324 (build_outer_var_ref): Use maybe_lookup_decl_in_outer_ctx
3325 to find if var will be a global variable even in the nested context.
3326 (omp_copy_decl): Only check for global variable at the end, it might
3327 be overridden in outer contexts.
3328 (scan_sharing_clauses): For global variables don't create a field.
3329 (lower_rec_input_clauses): Do nothing for global shared variables.
3330 Emit a barrier at the end of ILIST if there were any decls in both
3331 firstprivate and lastprivate clauses.
3332 (lower_send_clauses): Do nothing for global variables except for
3335 2006-05-02 Zdenek Dvorak <dvorakz@suse.cz>
3337 * tree.c (unsigned_type_for, signed_type_for): Make sure a type
3338 of the correct signedness is returned.
3340 2006-05-02 Jeff Law <law@redhat.com>
3342 PR tree-optimization/27364
3343 * tree-vrp.c (vrp_int_const_binop): Fix detection of overflow from
3344 multiply expressions.
3346 2006-05-02 Tom Tromey <tromey@redhat.com>
3348 * tree-flow-inline.h (op_iter_init_phiuse): Fixed typo.
3350 2006-05-02 Kazu Hirata <kazu@codesourcery.com>
3353 * arm.c (arm_output_mi_thunk): Use pc-relative addressing when
3354 -mthumb -fPIC are used.
3356 2006-05-02 Stanislaw Skowronek <skylark@linux-mips.org>
3357 Joshua Kinard <kumba@gentoo.org>
3360 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Avoid 32-bit moves
3361 with 64-bit pointers.
3363 2006-05-02 Paul Brook <paul@codesourcery.com>
3365 * config/arm/arm.c (add_minipool_forward_ref): Check if insn
3367 (create_fix_barrier): Check that a suitable barrier location is
3369 (arm_reorg): Include ftmp->address in allowable range of addresses.
3371 2006-05-02 David Billinghurst <David.Billinghurst@riotinto.com>
3374 * ada/env.c (__gnat_clearenv): Use unsetenv() to clear environment
3377 2006-05-02 Jakub Jelinek <jakub@redhat.com>
3380 * gimplify.c (gimplify_scan_omp_clauses): Handle INDIRECT_REF
3381 around RESULT_DECL for result passed by reference.
3382 (gimplify_expr): Call omp_notice_variable when RESULT_DECL is seen.
3383 * omp-low.c (use_pointer_for_field): Don't look at
3384 DECL_HAS_VALUE_EXPR_P for RESULT_DECLs.
3385 (scan_omp_1): Call remap_decl on RESULT_DECLs.
3386 (lower_rec_input_clauses): Don't allocate VLA memory for the second
3387 time or var for passing by reference for
3388 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses. Allow creation of
3389 TREE_ADDRESSABLE variables when passing by reference.
3391 * omp-low.c (dump_omp_region): Fix output formatting.
3394 * omp-low.c (remove_exit_barrier): Handle NULL exit_bb.
3395 (expand_omp_parallel): Likewise.
3396 * tree-cfg.c (move_sese_region_to_fn): Likewise.
3399 * omp-low.c (lower_omp_sections): Call maybe_catch_exception
3400 on statement list containing also constructors and destructors.
3401 (lower_omp_single, lower_omp_for, lower_omp_parallel): Likewise.
3404 * except.c (duplicate_eh_regions): Fix clearing of
3405 cfun->eh->region_array entries.
3407 2006-05-01 DJ Delorie <dj@redhat.com>
3409 * configure.ac (gcc_cv_nm): Don't use an in-tree nm if
3411 (gcc_cv_objdump): Likewise.
3412 * configure: Regenerated.
3414 2006-05-01 Kazu Hirata <kazu@codesourcery.com>
3417 * config/arm/vfp.md (*arm_movdi_vfp): Correct the output
3418 templates for case 3 and 4.
3420 2006-05-01 DJ Delorie <dj@redhat.com>
3422 * vec.c: Include bconfig.h when appropriate.
3423 * Makefile.in (build/vec.o): Adjust dependencies.
3424 * mkconfig.sh: Make sure config.h isn't used for build machine
3427 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
3429 * tree-into-ssa.c (phis_to_rewrite, blocks_with_phis_to_rewrite): New
3431 (mark_phi_for_rewrite): New function.
3432 (insert_phi_nodes_for, mark_use_interesting): Call
3433 mark_phi_for_rewrite.
3434 (rewrite_update_phi_arguments): Traverse only phis in phis_to_rewrite.
3435 (update_ssa): Initialize and free phis_to_rewrite.
3437 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
3439 PR rtl-optimization/27291
3440 * loop-doloop.c (add_test, doloop_modify): Handle the case condition is
3441 folded to a constant.
3443 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
3445 PR tree-optimization/27283
3446 * tree-ssa-loop-ivopts.c (struct nfe_cache_elt): Store just trees,
3447 not whole # of iteration descriptions.
3448 (niter_for_exit): Return just # of iterations. Fail if # of iterations
3449 uses abnormal ssa name.
3450 (niter_for_single_dom_exit): Ditto.
3451 (find_induction_variables, may_eliminate_iv): Expect niter_for_exit to
3452 return just the number of iterations.
3454 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
3456 PR tree-optimization/27144
3457 * tree-ssa-loop-niter.c (derive_constant_upper_bound): New function.
3458 (record_estimate): Only record constant upper bound.
3459 (infer_loop_bounds_from_undefined): Call
3460 compute_estimated_nb_iterations just once.
3461 (proved_non_wrapping_p): Renamed to ...
3462 (n_of_executions_at_most): ... this. Expect bound to be a constant.
3463 (convert_step_widening, scev_probably_wraps_p): Call
3464 n_of_executions_at_most instead of proved_non_wrapping_p.
3465 (substitute_in_loop_info): Do not replace values in bounds.
3466 * cfgloop.h (struct nb_iter_bound): Remove "additional" field. Update
3469 2006-05-01 Richard Henderson <rth@redhat.com>
3472 * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Move after
3473 c_parser_skip_to_pragma_eol. Convert to switch statement. Handle
3476 2006-05-01 Roger Sayle <roger@eyesopen.com>
3478 * c-typeck.c (parser_build_binary_op): Don't call the function
3479 unsigned_conversion_warning to spot operand/result type overflow.
3480 (build_binary_op): Instead, call convert_and_check instead of
3481 convert to report the problem when the operands are promoted.
3482 * c-common.c (unsigned_conversion_warning): Make static.
3483 * c-common.h (unsigned_conversion_warning): Delete prototype.
3485 2006-05-01 Richard Guenther <rguenther@suse.de>
3487 PR tree-optimization/26726
3488 * tree-ssa-loop-ivopts.c (idx_find_step): Mark source of the
3490 (find_interesting_uses_address): ... we work around here
3491 by folding INDIRECT_REFs in the substituted base.
3493 2006-05-01 Diego Novillo <dnovillo@redhat.com>
3495 * omp-low.c (dump_omp_region): Add newlines.
3497 2006-04-30 Roger Sayle <roger@eyesopen.com>
3499 * common.opt (Woverflow): New command line option.
3500 * c-common.c (constant_expression_warning): Check warn_overflow.
3501 (overflow_waring): Pass OPT_Woverflow to warning.
3502 (unsigned_conversion_warning): Likewise.
3503 (convert_and_check): Likewise.
3504 * doc/invoke.texi: Document new command line option.
3506 2006-04-30 David Edelsohn <edelsohn@gnu.org>
3508 * config/rs6000/rs6000.c (rs6000_override_options): Enable
3509 TARGET_NO_FP_IN_TOC for section anchors.
3510 (optimization_options): Enable section anchors for all
3511 non-"Objective" languages.
3513 2006-04-28 Eric Christopher <echristo@apple.com>
3515 * config/darwin-c.c (darwin_ms_struct): Move this
3516 (darwin_set_default_type_attributes): and this...
3517 * config/darwin.c: ... here.
3518 * config/darwin.h (darwin_ms_struct): Declare.
3520 2006-04-28 Andrew MacLeod <amacleod@redhat.com>
3522 * tree-ssa-dom.c (propagate_rhs_into_lhs): Fix assert clause.
3524 2006-04-28 Roger Sayle <roger@eyesopen.com>
3527 * c-typeck.c (struct spelling): Make I an unsigned HOST_WIDE_INT.
3528 (push_array_bounds): Delete prototype. Change BOUNDS argument to
3529 an unsigned HOST_WIDE_INT.
3530 (print_spelling): Use HOST_WIDE_INT_PRINT_UNSIGNED to output the
3532 (really_start_incremental_init): No need to call convert because
3533 bitsize_zero_node is already of type bitsizetype.
3534 (push_init_level): Extract the value of constructor_index as an
3535 unsigned HOST_WIDE_INT quantity, using tree_low_cst.
3536 (process_init_element): Likewise.
3538 2006-04-28 Joseph S. Myers <joseph@codesourcery.com>
3540 * gcc.c (process_command): Add program name to GCC_EXEC_PREFIX
3541 value before passing to make_relative_prefix.
3543 2006-04-28 Alan Modra <amodra@bigpond.net.au>
3546 * builtins.c (expand_builtin_memset): Expand val in original mode.
3548 2006-04-27 Eric Christopher <echristo@apple.com>
3550 * target-def.h (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Bracket
3551 with #ifndef/#endif.
3552 * config/darwin-c.c (darwin_ms_struct): New.
3553 (darwin_pragma_ms_struct): Ditto.
3554 (darwin_set_default_type_attributes): Ditto.
3555 * config/darwin-protos.h (darwin_pragma_ms_struct): Declare.
3556 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS):
3557 Register ms_struct pragma.
3558 * config/i386/darwin.h (REGISTER_TARGET_PRAGMAS): Declare.
3559 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Ditto.
3560 * config/rs6000/rs6000.c (rs6000_set_default_type_attributes): Call
3561 darwin_set_default_type_attributes if TARGET_MACHO.
3563 2006-04-27 Andrew MacLeod <amacleod@redhat.com>
3565 PR tree-optimization/26854
3566 * tree-vrp.c (remove_range_assertions): Use new Immuse iterator.
3567 * doc/tree-ssa.texi: Update immuse iterator documentation.
3568 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Use new iterator.
3569 * tree-ssa-dom.c (propagate_rhs_into_lhs): Use new iterator.
3570 * tree-flow-inline.h (end_safe_imm_use_traverse, end_safe_imm_use_p,
3571 first_safe_imm_use, next_safe_imm_use): Remove.
3572 (end_imm_use_stmt_p): New. Check for end of immuse stmt traversal.
3573 (end_imm_use_stmt_traverse): New. Terminate immuse stmt traversal.
3574 (move_use_after_head): New. Helper function to sort immuses in a stmt.
3575 (link_use_stmts_after): New. Link all immuses in a stmt consescutively.
3576 (first_imm_use_stmt): New. Get first stmt in an immuse list.
3577 (next_imm_use_stmt): New. Get next stmt in an immuse list.
3578 (first_imm_use_on_stmt): New. Get first immuse on a stmt.
3579 (end_imm_use_on_stmt_p): New. Check for end of immuses on a stmt.
3580 (next_imm_use_on_stmt): New. Move to next immuse on a stmt.
3581 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Use new iterator.
3582 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use new iterator.
3583 (perfect_nestify): Use new iterator.
3584 * tree-vect-transform.c (vect_create_epilog_for_reduction): Use new
3586 * tree-flow.h (struct immediate_use_iterator_d): Add comments.
3587 (next_imm_name): New field in struct immediate_use_iterator_d.
3588 (FOR_EACH_IMM_USE_SAFE, BREAK_FROM_SAFE_IMM_USE): Remove.
3589 (FOR_EACH_IMM_USE_STMT, BREAK_FROM_IMM_USE_STMT,
3590 FOR_EACH_IMM_USE_ON_STMT): New immediate use iterator macros.
3591 * tree-cfg.c (replace_uses_by): Use new iterator.
3592 * tree-ssa-threadedge.c (lhs_of_dominating_assert): Use new iterator.
3593 * tree-ssa-operands.c (correct_use_link): Remove.
3594 (finalize_ssa_use_ops): No longer call correct_use_link.
3596 2006-04-27 Stuart Hastings <stuart@apple.com>
3598 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): New.
3599 * config/t-darwin (crt3.o): Use it.
3600 * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Remove
3601 'pmode', use Pmode instead of SImode for SYMBOL_REF.
3602 * config/rs6000/rs6000.md (call_indirect_nonlocal_sysv,
3603 call_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
3604 call_value_nonlocal_sysv): Suffix with the "P" macro for 32/64
3607 2006-04-27 Roger Sayle <roger@eyesopen.com>
3609 * expmed.c (store_fixed_bit_field): If we're not optimizing for
3610 size, force the intermediate into a new pseudo rather instead of
3611 performing both a bitwise AND and a bitwise IOR in memory.
3613 2006-04-27 Richard Guenther <rguenther@suse.de>
3615 PR rtl-optimization/26685
3616 * params.def (PARAM_MAX_CSE_INSNS): Correct typo that named
3617 this one "max-flow-memory-locations".
3619 2006-04-27 Richard Guenther <rguenther@suse.de>
3621 PR tree-optimization/25148
3622 * tree-vrp.c (compare_values): Remove code dealing with
3623 comparisons against type min/max value. Honour overflow
3624 and negative constants in code dealing with comparisons
3625 of plus and minus expressions.
3626 (value_inside_range): Use fold_binary with LE_EXPR and
3627 GE_EXPR rather than compare_values.
3629 2006-04-27 Dirk Mueller <dmueller@suse.de>
3631 * config/i386/xmmintrin.h (_mm_shuffle_pi16): Declare
3634 2006-04-26 Kenneth Zadeck <zadeck@naturalbridge.com>
3636 * basic-block.h (safe_insert_insn_on_edge): Removed.
3637 * cfgrtl.c (mark_killed_regs, safe_insert_insn_on_edge): Removed.
3639 2006-04-26 David Edelsohn <edelsohn@gnu.org>
3640 Paolo Bonzini <bonzini@gnu.org>
3643 * combine.c (simplify_and_const_int_1): Use gen_int_mode.
3644 (simplify_and_const_int): Same.
3646 2006-04-26 Aldy Hernandez <aldyh@redhat.com>
3648 * tree-ssa-dse.c (dse_optimize_stmt): Remove unused variable USE.
3650 2006-04-26 Jakub Jelinek <jakub@redhat.com>
3653 * cgraph.c (cgraph_varpool_finalize_decl): Don't call
3654 cgraph_varpool_assemble_pending_decls if -fopenmp, unless
3655 cgraph_global_info_ready.
3658 * tree-cfg.c (find_outermost_region_in_block): Handle RESX_EXPR.
3661 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for if
3662 either decl or init is error_mark_node.
3665 * tree-flow.h (struct omp_region): Add sched_kind.
3666 * omp-low.c (expand_parallel_call): Use region->inner->sched_kind
3667 instead of extracting omp for data.
3668 (expand_omp_for): Save extracted sched_kind.
3670 2006-04-25 Roger Sayle <roger@eyesopen.com>
3672 * expmed.c (store_bit_field): Also check whether the bitsize is
3673 valid for the machine's "insv" instruction before moving the
3674 target into a pseudo for use with the insv.
3675 * config/i386/predicates.md (const8_operand): New predicate.
3676 * config/i386/i386.md (extv, extzv, insv): Use the new
3677 const8_operand predicate where appropriate.
3679 2006-04-25 DJ Delorie <dj@redhat.com>
3681 * doc/install.texi (Specific): Clarify that this is not a list of
3682 supported hosts or targets.
3684 2006-04-25 Richard Sandiford <richard@codesourcery.com>
3686 PR rtl-optimization/26725
3687 * cfgrtl.c (rtl_redirect_edge_and_branch_force): Set the source
3688 block's BB_DIRTY flag.
3690 2006-04-25 Geoffrey Keating <geoffk@apple.com>
3692 * dwarf2out.c (size_of_locs): Don't fill dw_loc_addr if there
3695 * dwarf2asm.c (dw2_asm_output_data): Don't generate RTL just
3696 to print an integer.
3698 2006-04-25 David Edelsohn <edelsohn@gnu.org>
3700 * varasm.c (align_variable): New function.
3701 (get_block_for_decl): Apply align_variable to DECL before
3702 calculating section information.
3703 (assemble_variable): Split out alignment computation.
3705 2006-04-25 Andreas Krebbel <krebbel1@de.ibm.com>
3707 * expmed.c (store_bit_field): Handle paradoxical subregs on big endian
3710 2006-04-25 Bernd Schmidt <bernd.schmidt@analog.com>
3712 * genmodes.c (make_vector_mode): Allow making VECTOR_MODE_INT of a
3713 MODE_PARTIAL_INT mode.
3714 * config/bfin/bfin-modes.def: Add V2PDI and V2SI.
3715 * config/bfin/bfin.c (print_operand): Add macflag and mac/msu modifiers
3717 (hard_regno_mode_ok): V2PDImode is ok for accumulators.
3718 * config/bfin/bfin.h (CLASS_MAX_NREGS, HARD_REGNO_NREGS): Handle
3720 * config/bfin/predicates.md (const01_operand, vec_shift_operand):
3722 * config/bfin/bfin.md (UNSPEC_MUL_WITH_FLAG, UNSPEC_MAC_WITH_FLAG):
3724 (MACFLAG_NONE, MACFLAG_T, MACFLAG_FU, MACFLAG_TFU, MACFLAG_IS,
3725 MACFLAG_IU, MACFLAG_W32, MACFLAG_M, MACFLAG_S2RND, MACFLAG_ISS2,
3726 MACFLAG_IH): Likewise.
3727 (movstricthi_1): Renamed from "*movstricthi".
3728 (load_accumulator, load_accumulator_pair, movsi_insv, insv,
3729 ssaddsi3, sssubsi3, ssnegsi2, signbitssi2, smaxhi3, sminhi3,
3730 abshi2, neghi2, ssneghi2, signbitshi2, movhi_low2high,
3731 movhi_high2high, movhi_low2low, movhi_high2low, movhiv2hi_low,
3732 movhiv2hi_high, composev2hi, movv2hi_hi, movv2hi_hi_low,
3733 movv2hi_hi_high, ssaddhi3, sssubhi3, ssaddv2hi3, sssubv2hi3,
3734 addsubv2hi3, subaddv2hi3, ssaddsubv2hi3, sssubaddv2hi3,
3735 sublohiv2hi3, subhilov2hi3, sssublohiv2hi3, sssubhilov2hi3,
3736 addlohiv2hi3, addhilov2hi3, ssaddlohiv2hi3, ssaddhilov2hi3,
3737 mulhisi_ll, mulhisi_lh, mulhisi_hl, mulhisi_hh, ssnegv2hi2,
3738 ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3, packv2hi,
3739 flag_mulhi, flag_mulhisi_parts, flag_machi, flag_machi_acconly,
3740 flag_macinithi, flag_macinit1hi, flag_mulv2hi, flag_mulv2hi_parts,
3741 flag_macv2hi_parts, flag_macv2hi_parts_acconly,
3742 flag_macinitv2hi_parts, flag_macinit1v2hi_parts): New patterns.
3744 * doc/rtl.texi (ss_ashift): Improve wording.
3746 2006-04-24 Geoffrey Keating <geoffk@apple.com>
3748 * dwarf2out.c (verify_marks_clear): New.
3749 (prune_unused_types): Call verify_marks_clear initially, not
3752 2006-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
3754 * rtl.def (SS_ASHIFT, SS_NEG): New codes.
3755 * doc/rtl.texi: Document them.
3756 * simplify-rtx.c (simplify_unary_operation,
3757 simplify_binary_operation_1): Don't abort when we see them.
3759 2006-04-24 Mark Mitchell <mark@codesourcery.com>
3762 2006-04-23 Mark Mitchell <mark@codesourcery.com>
3763 * configure.ac: Completely disregard languages that are not
3765 * configure: Regenerated.
3767 2006-04-24 Andrew Pinski <pinskia@gcc.gnu.org>
3768 Richard Guenther <rguenther@suse.de>
3770 PR tree-optimization/27236
3771 * tree-inline.c (copy_body_r): Make sure to copy
3772 TREE_THIS_VOLATILE flag.
3774 2006-04-24 Richard Guenther <rguenther@suse.de>
3777 * tree-complex.c (update_parameter_components): Don't handle
3778 unused parameters which have no default def.
3780 2006-04-24 Andrew Pinski <pinskia@gcc.gnu.org>
3781 Richard Guenther <rguenther@suse.de>
3783 PR tree-optimization/27218
3784 * tree-inline.c (expand_call_inline): Strip useless type
3785 conversions for the return slot address.
3787 2006-04-24 Richard Guenther <rguenther@suse.de>
3789 * cfgloop.h (struct loops): Remove unused field array. Reorder
3791 (LOOP_PREFETCH): Remove.
3793 2006-04-24 Richard Guenther <rguenther@suse.de>
3795 PR tree-optimization/22525
3796 * value-prof.c (tree_mod_pow2): Remove unnecessary temporary
3797 variable, adjust types of generated expressions.
3799 2006-04-23 H.J. Lu <hongjiu.lu@intel.com>
3801 * Makefile.in (c-convert.o): Add dependency on $(TARGET_H)
3802 (tree-vect-patterns.o): Likewise.
3804 (cselib.o): Likewise.
3805 (loop-doloop.o): Likewise.
3806 (regclass.o): Likewise.
3807 (reload1.o): Likewise.
3808 (explow.o): Replace target.h with $(TARGET_H).
3809 (ipa-prop.o): Likewise.
3810 (ipa-cp.o): Likewise.
3811 (ipa-inline.o): Likewise.
3812 (reorg.o): Likewise.
3813 (reg-stack.o): Likewise.
3815 2006-04-23 Eric Botcazou <ebotcazou@adacore.com>
3817 * tree-tailcall.c (pass_tail_recursion): Use gate_tail_calls too.
3819 2006-04-23 Mark Mitchell <mark@codesourcery.com>
3821 * print-tree.c (print_node): Print DECL_BIT_FIELD_TYPE.
3823 * configure.ac: Completely disregard languages that are not
3825 * configure: Regenerated.
3828 * c-common.h (c_build_bitfield_integer_type): Declare.
3829 * c-decl.c (c_build_bitfield_integer_type): Move to ...
3830 * c-common.c (c_build_bitfield_integer_type): ... here.
3832 2006-04-23 Roger Sayle <roger@eyesopen.com>
3835 * config/fr30/fr30.md (define_split): Avoid calling gen_lowpart on
3836 a SImode SUBREG of a floating point register after no_new_pseudos.
3838 2006-04-23 Roger Sayle <roger@eyesopen.com>
3840 * config/fr30/fr30.md (addsi_small_int): Use REGNO_PTR_FRAME_P to
3841 identify potentially eliminable registers to additionally catch
3842 VIRTUAL_INCOMING_ARGS_REGNUM.
3843 (addsi3): Update the conditions on when to use addsi_small_int.
3845 2006-04-23 Roger Sayle <roger@eyesopen.com>
3848 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Check REGNO for
3849 STACK_POINTER_RTX and FRAME_POINTER_RTX instead of comparing the
3850 rtx to stack_pointer_rtx or frame_pointer_rtx directly.
3852 2006-04-23 Eric Botcazou <ebotcazou@adacore.com>
3854 * fold-const.c (range_predecessor): Use operand_equal_p
3855 as the predicate for equality.
3856 (range_successor): Likewise.
3858 2006-04-22 Kazu Hirata <kazu@codesourcery.com>
3861 * config/soft-fp/op-common.h: Fix a typo.
3863 2006-04-22 Frank Ch. Eigler <fche@redhat.com>
3866 * common.opt (flag_mudflap_threads): Overload flag_mudflap.
3867 * tree-mudflap.c (flag_mudflap_threads): Derive from flag_mudflap.
3869 2006-04-22 Kazu Hirata <kazu@codesourcery.com>
3871 * config/soft-fp/op-common.h, double-int.h, tree-ssa-dom.c:
3873 * doc/tm.texi: Fix a typo.
3875 2006-04-21 Geoffrey Keating <geoffk@apple.com>
3877 * dwarf2out.c (struct die_struct): Document that die_sib makes
3878 a circular linked list.
3879 (FOR_EACH_CHILD): New.
3880 (reverse_die_lists): Delete.
3881 (reverse_all_dies): Delete.
3882 (add_dwarf_attr): Correct documentation.
3883 (remove_child_with_prev): New.
3884 (remove_child_TAG): Update for change to die_struct, use
3885 remove_child_with_prev.
3886 (add_child_die): Update for change to die_struct.
3887 (splice_child_die): Use remove_child_with_prev and add_child_die.
3888 (print_die): Use FOR_EACH_CHILD.
3889 (die_checksum): Likewise.
3890 (assign_symbol_names): Likewise.
3891 (output_location_lists): Likewise.
3892 (build_abbrev_table): Likewise.
3893 (calc_die_sizes): Likewise.
3894 (mark_dies): Likewise.
3895 (unmark_dies): Likewise.
3896 (unmark_all_dies): Likewise.
3897 (output_die): Likewise.
3898 (prune_unused_types_mark): Likewise.
3899 (prune_unused_types_walk): Likewise.
3900 (same_die_p): Update for change to die_struct.
3901 (break_out_includes): Likewise.
3902 (prune_unused_types_prune): Likewise.
3903 (add_sibling_attributes): Use FOR_EACH_CHILD, simplify logic.
3904 (prune_unmark_dies): Use FOR_EACH_CHILD, don't clear die_mark if
3906 (dwarf2out_finish): Don't call reverse_all_dies.
3908 2006-04-21 Eric Christopher <echristo@apple.com>
3910 * df-core.c, tree-outof-ssa.c, config/i386/i386.c: Fix typos
3911 in comments and function names.
3913 2006-04-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3916 * c-typeck.c (digest_init): Robustify.
3918 * c-typeck.c (pop_init_level): Simplify.
3920 2006-04-21 Steve Ellcey <sje@cup.hp.com>
3922 * config/pa/t-pa64: Add dependencies on $(GCC_PASSES).
3924 2006-04-21 Paul Brook <paul@codesourcery.com>
3926 * config/arm/arm.c (arm_override_options): Error on iWMMXt and
3927 hardware floating point.
3929 2006-04-21 David Edelsohn <edelsohn@gnu.org>
3931 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Add sfp to
3934 2006-04-21 Nick Clifton <nickc@redhat.com>
3936 * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Include
3939 2006-04-21 Alan Modra <amodra@bigpond.net.au>
3942 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
3943 C++ lang type in traceback table for Objective-C++.
3945 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Update comment.
3947 2006-04-20 H.J. Lu <hongjiu.lu@intel.com>
3949 * config/i386/i386.c (asm_preferred_eh_data_format): Reformat.
3951 2006-04-20 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3954 * tree-mudflap.c (mudflap_finish_file): Skip function when there
3955 were errors. Remove check for erroneous objects.
3957 2006-04-20 Jeff Law <law@redhat.com>
3959 PR tree-optimization/26854
3960 * tree-ssa-dse.c (dse_optimize_stmt): Avoid num_imm_uses when
3961 checking for zero or one use.
3962 * tree-ssa-dom.c (propagate_rhs_into_lhs): Similarly.
3963 * tree-cfgcleanup.c (merge_phi_nodes): Similarly.
3964 * tree-ssa-reassoc.c (negate_value): Similarly.
3965 (reassociate_bb): Similarly.
3967 2006-04-20 Jakub Jelinek <jakub@redhat.com>
3969 * c-pretty-print.c (pp_c_direct_abstract_declarator): Print
3970 TYPE_MAX_VALUE (TYPE_DOMAIN (t)) + 1 for ARRAY_TYPE rather
3971 than plain TYPE_MAX_VALUE (TYPE_DOMAIN (t)).
3973 2006-04-20 Alan Modra <amodra@bigpond.net.au>
3975 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Consume all
3976 fp regs if the last fp arg doesn't fit in regs.
3978 2006-04-20 Kaz Kojima <kkojima@gcc.gnu.org>
3981 * config/sh/sh.md (movsicc_true+3): Tweak condition for the case
3982 that the last insn has the REG_INC note.
3984 2006-04-19 Carlos O'Donell <carlos@codesourcery.com>
3985 Nathan Sidwell <nathan@codesourcery.com>
3988 * stor-layout.c (update_alignment_for_field): Do not align
3990 (place_union_field): Place union field at the start of the union.
3991 (place_field): Move ERROR_MARK check later, and use the current
3992 allocation position to maintain monotonicity.
3994 2006-04-19 Zdenek Dvorak <dvorakz@suse.cz>
3996 * dominance.c: Include timevar.h.
3997 (calculate_dominance_info): Use TV_DOMINANCE.
3998 * timevar.def (TV_DOMINANCE): New timevar.
3999 * Makefile.in (dominance.o): Add TIMEVAR_H dependency.
4001 2006-04-19 Andreas Krebbel <krebbel1@de.ibm.com>
4003 PR rtl-optimization/14261
4004 * ifcvt.c (noce_emit_move_insn): Call store_bit_field if the resulting
4005 move would be an INSV insn.
4006 (noce_process_if_block): Don't optimize if the destination is a
4007 ZERO_EXTRACT which can't be handled by noce_emit_move_insn.
4009 2006-04-19 Andreas Krebbel <krebbel1@de.ibm.com>
4011 * config/s390/s390.md: Add comments with the instructions emitted
4012 by an insn pattern if macros are used.
4014 2006-04-19 Alan Modra <amodra@bigpond.net.au>
4016 PR rtl-optimization/26026
4017 * fold-const.c (fold_binary): Optimize div and mod where the divisor
4018 is a known power of two shifted left a variable amount.
4020 2006-04-18 Geoffrey Keating <geoffk@apple.com>
4022 * dwarf2out.c (prune_unused_types_update_strings): Don't add strings
4023 to hash table twice when the debug_str section has SECTION_MERGE.
4025 2006-04-18 Joseph S. Myers <joseph@codesourcery.com>
4027 * config/soft-fp: New directory. From glibc.
4028 * config/soft-fp/t-softfp: New.
4029 * config/soft-fp/README: New.
4030 * mklibgcc.in: Handle LIB2FUNCS_EXCLUDE.
4031 * Makefile.in (LIB2FUNCS_EXCLUDE, SFP_MACHINE): New.
4032 (libgcc.mk): Pass LIB2FUNCS_EXCLUDE.
4033 (LIBGCC_DEPS): Add $(SFP_MACHINE).
4034 * config.gcc: Use rs6000/t-fprules-fpbit or
4035 rs6000/t-fprules-softfp and soft-fp/t-softfp together with
4037 * config/rs6000/sfp-machine.h: New. Based on glibc.
4038 * config/rs6000/t-fprules-fpbit, config/rs6000/t-fprules-softfp:
4040 * config/rs6000/t-fprules: Remove fp-bit rules.
4041 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Use +=.
4042 * config/rs6000/t-linux64: Likewise. Remove duplicates from
4043 LIB2FUNCS_EXTRA. Remove fp-bit rules.
4044 (softfp_wrap_start, softfp_wrap_end): New.
4046 2006-04-18 DJ Delorie <dj@redhat.com>
4048 * config/m32c/m32c.h (PTRDIFF_TYPE): Define.
4050 2006-04-18 Devang Patel <dpatel@apple.com>
4052 * doc/invoke.texi (-Wuninitialized): Clarify -O connection.
4054 2006-04-18 Nick Clifton <nickc@redhat.com>
4056 * config/sh/t-symbian: Add rule to build sh-c.o
4057 * config/sh/symbian.c (sh_symbian_mark_dllexport): Replace use
4058 of DECL_NON_ADDR_CONST_P with DECL_DLLIMPORT_P.
4059 (sh_symbian_encode_section_info): Likewise.
4061 2006-04-18 Andreas Krebbel <krebbel1@de.ibm.com>
4063 * builtins.c (expand_builtin_strcmp): Cover label definition of
4064 do_libcall with HAVE_cmpstrnsi.
4066 2006-04-18 Kazu Hirata <kazu@codesourcery.com>
4068 * function.c (temp_slots_at_level, max_slot_level): Use VEC
4070 * function.h (temp_slot_p): New.
4071 (function): Change the type of x_used_temp_slots to
4072 VEC(temp_slot_p,gc) *.
4074 2006-04-18 Nick Clifton <nickc@redhat.com>
4076 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove reference to
4077 flag_strength_reduce.
4079 * doc/tm.texi (TARGET_SECTION_TYPE_FLAGS): Fix typo.
4081 2006-04-18 Paolo Bonzini <bonzini@gnu.org>
4085 Partial revert of revision 112637
4086 2006-04-03 Paolo Bonzini <bonzini@gnu.org>
4087 Dale Johannesen <dalej@apple.com>
4090 * regclass.c (struct reg_pref): Update documentation.
4091 (regclass): Set prefclass to NO_REGS if memory is the best option.
4092 (record_reg_classes): Cope with a prefclass set to NO_REGS.
4094 2006-04-18 Paolo Bonzini <bonzini@gnu.org>
4096 PR tree-optimization/26821
4097 * tree-ssa-math-opts.c (get_constant_one): New.
4098 (insert_reciprocals): Use it.
4100 2006-04-17 Geoffrey Keating <geoffk@apple.com>
4102 * dwarf2out.c (free_AT): Delete.
4103 (remove_AT): Update string ref counts.
4104 (remove_child_TAG): Don't call free_die.
4106 (break_out_includes): Don't call free_die on DW_TAG_GNU_BINCL
4107 or DW_TAG_GNU_EINCL.
4108 (prune_unused_types_walk_attribs): Reset string refcounts.
4109 (prune_unused_types_update_strings): New.
4110 (prune_unused_types_prune): Don't make unnecessary stores. Don't
4111 call free_die. Do call prune_unused_types_update_strings.
4112 (prune_unused_types): Empty debug_str_hash.
4114 2006-04-17 Roger Sayle <roger@eyesopen.com>
4116 * expr.c (expand_assignment): Optimize away no-op moves where the
4117 source and destination are equal and have no side-effects.
4119 2006-04-17 Richard Guenther