1 2006-08-13 Andrew Pinski <pinskia@physics.uc.edu>
3 * tree-pass.h (TODO_update_ssa): Fix which bit is used to take
4 into account for TODO_dump_cgraph.
5 (TODO_update_ssa_no_phi): Likewise.
6 (TODO_update_ssa_full_phi): Likewise.
7 (TODO_update_ssa_only_virtuals): Likewise.
8 (TODO_remove_unused_locals): Likewise.
9 (TODO_set_props): Likewise.
10 (TODO_update_stmt_usage): Likewise.
12 2006-08-13 Dirk Mueller <dmueller@suse.de>
14 * c-common.c (strict_aliasing_warning): Fix formatting.
16 2006-08-13 Matthias Klose <doko@debian.org>
18 * doc/invoke.texi: Fix spelling errors.
20 2006-08-11 Eric Botcazou <ebotcazou@libertysurf.fr>
22 PR rtl-optimization/23454
23 * reorg.c (relax_delay_slots): Update comment.
25 2006-08-11 Richard Guenther <rguenther@suse.de>
28 * simplify-rtx.c (simplify_const_relational_operation):
29 Simplify A CMP B to A - B CMP 0 only for EQ and NE comparison
32 2006-08-10 Eric Botcazou <ebotcazou@adacore.com>
34 * tree.c (build1_stat): Also propagate the TREE_CONSTANT and
35 TREE_INVARIANT flags for a VIEW_CONVERT_EXPR.
37 2006-08-10 Paul Brook <paul@codesourcery.com>
39 * final.c (final_scan_insn): Clear current_insn_predicate before
40 outputting inline asm.
42 2006-08-10 Dorit Nuzman <dorit@il.ibm.com>
44 PR tree-optimization/26197
45 * tree-ssa-alias.c (new_type_alias): Takes additional argument. Calls
46 get_ref_base_and_extent and overlap_subvar to add only relevant
47 subvars as may-aliases.
48 (add_may_alias_for_new_tag): New function, factored out of
50 * tree-vect-transform.c (vect_create_data_ref_ptr): Call new_type_alias
51 with additional argument.
52 * tree-flow.h (new_type_alias): Takes additional argument.
54 2006-08-09 Nathan Sidwell <nathan@codesourcery.com>
56 * gcov.c (no_data_file): New flag.
57 (read_count_file): Set it if data file not present. Assume counts
59 (output_lines): Don't name the data file, if there wasn't one.
61 2006-08-09 Eric Botcazou <ebotcazou@adacore.com>
63 * config/rs6000/rs6000.c (print_operand) <D>: Fix comment and adjust.
64 (rs6000_generate_compare): Tweak comments.
65 * config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Fix comment.
67 2006-08-09 Alexandre Oliva <aoliva@redhat.com>
69 * var-tracking.c (enum micro_operation_type): Add MO_COPY.
70 (var_debug_decl): New function.
71 (var_reg_set): Follow debug decl link. Add location even if
72 reg is already known to hold some other variable.
73 (var_mem_set): Follow debug decl link.
74 (var_reg_delete_and_set, var_mem_delete_and_set): Follow debug
75 decl link. Delete other known locations of the variable part
77 (var_reg_delete, var_mem_delete): Delete other known locations
78 of the variable part if requested.
79 (same_variable_part_p): New function.
80 (add_stores): Select MO_COPY when appropriate.
81 (vt_initialize): Handle it.
82 (compute_bb_dataflow, emit_notes_in_bb): Likewise. Delete
83 known locations for MO_SET and MO_CLOBBER.
84 (find_variable_location_part): New function.
85 (set_variable_part, delete_variable_part): Use it.
86 (clobber_variable_part): New function.
87 * dwarf2out.c (dwarf2out_var_location): Do not follow debug
90 2006-08-07 Victor Kaplansky <victork@il.ibm.com>
92 PR tree-optimization/26969
93 * tree-vect-analyze.c (vect_analyze_loop_form): Add check of latch
94 with an empty list of PHIs.
96 2006-08-06 Paolo Bonzini <bonzini@gnu.org>
100 * conffig/i386/i386.md: Add peephole2 to avoid "fld %st"
103 2006-08-06 Andreas Schwab <schwab@suse.de>
105 * config/m68k/m68k.c (m68k_output_function_epilogue): Fix format
106 string. Whitespace and comment fixup.
108 2006-08-05 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
111 * c-decl.c (validate_proto_after_old_defn): Return false on invalid
115 * c-typeck.c (build_modify_expr): Test earlier for non-lvalues.
118 * c-parser.c (c_parser_postfix_expression_after_paren_type): Robustify.
120 2006-08-04 Jan Hubicka <jh@suse.cz>
124 * reload.c (push_reload): Patch out the mismatching instruction;
126 (find_reload): Bail out if the instruction was patched out.
128 2006-08-04 Jan Hubicka <jh@suse.cz>
130 PR tree-optimization/24888
131 * tree-inline.c (expand_call_inline): Do not re-record variables.
132 (declare_inline_vars): Add variable to unexpanded_var_list.
134 2006-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
135 Roger Sayle <roger@eyesopen.com>
137 PR rtl-optimization/26244
138 * cse.c (fold_rtx): Correctly associate shifts when const_arg1 and/or
139 inner_const are negative or greater than or equal to the bitsize of
140 MODE. If SHIFT_COUNT_TRUNCATED is false, the values aren't associated.
141 Otherwise, the values are masked using GET_MODE_BITSIZE (mode) - 1.
142 Simplify complicated if statement. For ASHIFT and LSHIFTRT, return
143 CONST0_RTX (mode) when the new shift count is greater than or equal to
144 to the bitsize of the object being shifted and XEXP (y, 0) has no side
147 2006-08-04 Kazu Hirata <kazu@codesourcery.com>
149 * tree-cfg.c: Fix a comment typo.
151 2006-08-03 Mark Mitchell <mark@codesourcery.com>
154 * varasm.c (output_constant): Give the front end another chance to
155 expand constants, after stripping NOPs.
157 2006-08-03 Jan Hubicka <jh@suse.cz>
159 * domwalk.c (walk_dominator_tree): Reorganize to non-recursive
162 2006-08-03 Dorit Nuzman <dorit@il.ibm.com>
164 PR tree-optimization/27770
165 * tree-vectorizer.h (get_vectype_for_scalar_type): Function
166 declaration removed (moved to tree-flow.h).
167 (vect_can_force_dr_alignment_p): Likewise.
168 * tree-flow.h (get_vectype_for_scalar_type): New function declaration
169 (moved from tree-vectorizer.h).
170 (vect_can_force_dr_alignment_p): Likewise.
171 * tree-vectorizer.c (vect_print_dump_info): Allow calling this function
172 from outside the vectorizer - in particular from cgraph stage.
173 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Don't increase
174 the alignment of global arrays when -fsection-anchors is enabled.
175 * cgraphunit.c (cgraph_increase_alignment): New function.
176 (cgraph_optimize): Call cgraph_increase_alignment.
178 2006-08-03 David Edelsohn <edelsohn@gnu.org>
181 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
182 not reload a SPE symbol_ref into a lo_sum address.
184 2006-08-02 Daniel Jacobowitz <dan@codesourcery.com>
187 * dwarf2out.c (prune_unused_types_prune): Move call to
188 prune_unused_types_update_strings to cover the parent DIE also.
190 2006-08-02 Jan Hubicka <jh@suse.cz>
192 PR gcov/profile/28480
193 * tree-cfg.c (change_bb_for_stmt): New function.
194 (tree_merge_blocks, tree_split_blocks): Use it.
196 2006-08-01 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
202 * toplev.c (compile_file): Return early on errorcount or sorrycount.
203 * cgraphunit.c (cgraph_finalize_compilation_unit): Likewise.
204 (cgraph_optimize): Likewise.
206 2006-08-01 Stuart Hastings <stuart@apple.com>
208 * rtl.h (UINTVAL) New.
209 * config/rs6000/rs6000.c (SMALL_INT) Use it.
210 * testsuite/gcc.dg/20060801-1.c: New.
212 2006-08-01 Daniel Jacobowitz <dan@codesourcery.com>
215 * c-typeck.c (build_external_type): Mark used enum types.
216 * dwarf2out.c (dwarf2out_abstract_function): Save and restore
218 (gen_subprogram_die): Whitespace fix.
220 2006-08-01 Jan Hubicka <jh@suse.cz>
222 * tree-outof-ssa.c (check_replaceable): Do not allocate def_vars
223 bitmap when not needed.
224 * tree-ssa-pre.c (bitmap_set_and, bitmap_set_and_compl): Free temporary
227 2006-08-01 Dirk Mueller <dmueller@suse.de>
229 * tree-vrp.c (fix_equivalence_set): Avoid bitmap memory leak.
231 2006-07-31 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
233 * Makefile.in: Revert part of previous patch:
234 Replace $(VARRAY_H) by varray.h in definition of BASIC_BLOCK_H
237 2006-07-30 Eric Christopher <echristo@apple.com>
240 * doc/extend.texi (i386 Variable Attributes): Add anchor.
241 (PowerPC Variable Attributes): New section.
243 2006-07-30 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
245 PR target/28126 (partial fix)
246 * config/mips/mips.md (tls_get_tp_<mode>): Set can_delay to no.
248 2006-07-28 Jan Hubicka <jh@suse.cz>
250 PR rtl-optimization/28071
251 * cfgrtl.c (rtl_delete_block): Free regsets.
252 * flow.c (allocate_bb_life_data): Re-use regsets if available.
254 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
256 * Makefile.in: Use $(HEADER_H) instead of header.h in dependencies
257 and variables used in dependencies.
259 2006-07-27 Arjan van de Ven <arjan@linux.intel.com>
261 * config/i386/i386.md (stack_tls_protect_set_di) Use %gs rather than
262 %fs for -mcmodel=kernel.
263 (stack_tls_protect_test_di): Likewise.
265 2006-07-27 Carlos O'Donell <carlos@codesourcery.com>
267 * Makefile.in: Use mkinstalldirs.
269 2006-07-27 H.J. Lu <hongjiu.lu@intel.com>
272 * opts-common.c (prune_options): Skip joined switches.
274 2006-07-27 Jan Hubicka <jh@suse.cz>
276 PR rtl-optimization/28071
277 * cselib.c (cselib_process_insn): Don't remove useless values too
278 often for very large hashtables.
280 2006-07-27 Jan Hubicka <jh@suse.cz>
282 PR rtl-optimization/28071
283 * global.c (greg_obstack): New obstack.
284 (allocate_bb_info): Use it.
285 (free_bb_info): Likewise.
286 (modify_reg_pav): Likewise.
288 2006-07-27 Roger Sayle <roger@eyesopen.com>
290 * builtins.c (fold_fixed_mathfn): When long and long long are the
291 same size, canonicalize llceil*, llfloor*, llround* and llrint*
292 functions to their lceil*, lfloor*, lround* and lrint* forms.
294 2006-07-27 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
297 * config/m32r/m32r.md (branch_insn): Reduce pc range for short
299 (rev_branch_insn): Likewise.
301 2006-07-27 Jan Hubicka <jh@suse.cz>
303 PR rtl-optimization/28071
304 * regmove.c (reg_is_remote_constant_p): Avoid quadratic behaviour.
305 (reg_set_in_bb, max_reg_computed): New static variables.
306 (regmove_optimize): Free the new array.
307 (fixup_match_1): Update call of reg_is_remote_constant_p.
309 2006-07-26 Jan Hubicka <jh@suse.cz>
311 PR tree-optimization/27882
312 * cgraph.c (cgraph_remove_node): Clear needed, reachable, next, previous
314 * cgraphunit.c (cgraph_reset_node): Expect cgraph_remove_node to kill
316 (cgraph_analyze_compilation_unit): Likewise.
317 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
318 * ipa-inline.c (cgraph_decide_recursive_inlining): Likewise.
319 (cgraph_early_inlinine): Make order garbage collected.
320 * Makefile.in (gt-ipa-inline): New garbagecollected file.
322 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
324 * dbxout.c (output_types_sort): Add a comment.
325 (output_used_types): Free the VEC.
327 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
329 * function.c (reorder_fix_fragments): Delete.
330 (reorder_blocks): Don't call it.
331 (reorder_blocks_1): Put all subblocks under the origin block.
333 2006-07-26 Zdenek Dvorak <dvorakz@suse.cz>
335 PR rtl-optimization/27907
336 * expr.c (force_operand): Use convert_move to handle FLOAT_EXTEND and
339 2006-07-25 Roger Sayle <roger@eyesopen.com>
342 * convert.c (convert_to_integer): When transforming (T)foo(x) into
343 bar(x) check that bar's result type can represent all the values of T.
345 2006-07-25 Zdenek Dvorak <dvorakz@suse.cz>
347 * tree-chrec.c (chrec_convert_aggressive): Return NULL on failure.
349 2006-07-25 Nick Clifton <nickc@redhat.com>
351 * ggc-page.c (NUM_SIZE_LOOKUP): New constant - the length of the
353 (ggc_alloc_stat): Use NUM_SIZE_LOOKUP.
354 (ggc_pch_count_object): Likewise.
355 (ggc_pch_alloc_object): Likewise.
356 (ggc_pch_write_object): Likewise.
357 (init_ggc): Do not attempt to initialize entries in the
358 size_lookup[] array for objects whose size is greater than than
359 the length of the array.
361 2006-07-25 Daniel Jacobowitz <dan@codesourcery.com>
363 * dbxout.c (output_used_types_helper): Push queued types
365 (output_types_sort): New.
366 (output_used_types): Collect used types on a VEC and sort them
369 2006-07-24 Richard Guenther <rguenther@suse.de>
372 * cgraph.c (cgraph_remove_node): Do not check if dumps
374 * cgraphunit.c (cgraph_optimize): Likewise.
376 2006-07-24 Jan Hubicka <jh@suse.cz>
378 PR rtl-optimization/28071
379 * tree-cfg.c (tree_split_block): Do not allocate new stmt_list nodes.
380 * tree-iterator.c (tsi_split_statement_list_before): Do not crash when
381 splitting before first stmt.
383 2006-07-24 Jan Hubicka <jh@suse.cz>
385 PR rtl-optimization/28071
386 * ipa-inline.c (update_caller_keys): Remove edges that
387 are no longer inline candidates.
389 2006-07-23 Daniel Jacobowitz <dan@codesourcery.com>
392 * dbxout.c (output_used_types_helper, output_used_types): New.
393 (dbxout_symbol): Call output_used_types.
395 2006-07-23 Jan Hubicka <jh@suse.cz>
399 * cgraph.c (cgraph_varpool_nodes): Export.
400 (decide_is_variable_needed): Ignored "used" attribute in
402 * cgraph.h (cgraph_varpool_nodes): Declare.
403 * cgraphunit.c (decide_is_function_needed): Ignored "used" attribute in
406 2006-07-23 Roger Sayle <roger@eyesopen.com>
409 * gthr-solaris.h: Prototype __gthrw forms of thr_self, mutex_init and
410 mutex_destroy even when !_LIBOOBJC. Remove duplicate prototype of
411 the __gthrw form of thr_keycreate.
412 (__gthread_key_delete): Silence the unused argument warning.
414 2006-07-23 Steven Bosscher <steven@gcc.gnu.org>
417 * config/elfos.h (ASM_OUTPUT_ASCII): Remove 'register' marks.
418 Cache the last found '\0' marker to avoid quadratic behavior.
420 2006-07-23 Jan Hubicka <jh@suse.cz>
422 * i386.md (subsi_3_zext): Fix output template.
424 2006-07-21 Mike Stump <mrs@apple.com>
426 * doc/invoke.texi (C++ Dialect Options): Note that
427 -fvisibility-inlines-hidden doesn't affect explicitly
428 instantiationed inline methods.
430 2006-07-20 Roger Sayle <roger@eyesopen.com>
432 * config.gcc (i[34567]86-*-solaris2*): Add usegas.h to $tm_file
433 if the target assembler is GNU binutils' gas.
434 * config/i386/sol2-10.h (ASM_SPEC): Check USE_GAS to determine
435 whether to pass GNU gas or native as command line options.
437 2006-07-20 Jason Merrill <jason@redhat.com>
439 * tree.c (remove_attribute): New fn.
440 * tree.h: Declare it.
442 2006-07-20 Paul Brook <paul@codesourcery.com>
445 * cse.c (cse_insn): Add destination addresses to hash table. Check if
446 they are invalidated by this instruction.
448 2006-07-21 Danny Smith <dannysmith@users.sourceforge.net>
451 * config/i386/cygming.h (MAX_OFILE_ALIGNMENT): Define.
453 2006-07-20 Eric Christopher <echristo@apple.com>
456 * config/i386/i386.h (OPTION_DEFAULT_SPECS): Reorder.
458 2006-07-19 Eric Christopher <echristo@apple.com>
460 * config/t-slibgcc-darwin (stmp-lipo): Remove.
461 Rewrite dependencies for libgcc_s.1.dylib.
463 2006-07-19 Jakub Jelinek <jakub@redhat.com>
465 * except.c (duplicate_eh_regions_1): Clear next_peer.
467 2006-07-17 Nathan Sidwell <nathan@codesourcery.com>
469 * doc/invoke.texi (RS/6000 and PowerPC Options): Document that
470 -mlongcall does not guarantee all calls will be long.
471 * doc/extend.texi (long_call/short_call): Document that longcall
472 does not guarantee a long call will be used.
473 (longcall/shortcall): Likewise.
475 2006-07-18 Roger Sayle <roger@eyesopen.com>
478 * expmed.c (expand_shift): Additionally check that the shift_cost
479 is not MAX_COST and that INTVAL(op1) is less than MAX_BITS_PER_WORD
480 before implementing a LSHIFT_EXPR as a sequence of additions.
481 * config/sh/sh.c (shift_costs): Return MAX_COST to inform the
482 middle-end that DImode shifts need to be synthesized by expand.
484 2006-07-18 Diego Novillo <dnovillo@redhat.com>
487 * tree-ssa-operands.c (access_can_touch_variable): Update
489 Return true if ALIAS is .GLOBAL_VAR.
491 2006-07-18 David Daney <ddaney@avtrex.com>
493 * gcc.c (display_help): Fix typo in help text.
495 2006-07-18 Olivier Hainque <hainque@adacore.com>
497 * tree.h (categorize_ctor_elements): Adjust prototype and add
498 descriptive comment, both in accordance with the interface change
500 * varasm.c (constructor_static_from_elts_p): New function.
501 Whether a constructor node is a valid static constant initializer
502 if all its elements are.
503 (initializer_constant_valid_p) <CONSTRUCTOR value>: Use it.
504 * output.h: Declare it.
505 * expr.c (categorize_ctor_elements_1): Return whether the constructor
506 is a valid constant initializer instead of computing the number of
507 non-constant elements. Use constructor_static_from_elts_p for this
508 purpose. Replace the head comment with an indication that this is a
509 helper for categorize_ctor_elements.
510 (categorize_ctor_elements): Same interface change as for the _1
511 helper. Former head comment from this helper moved here, adjusted to
512 account for the interface changes.
513 (mostly_zeros_p): Adjust call to categorize_ctor_elements.
514 (all_zeros_p): Likewise.
515 * gimplify.c (gimplify_init_constructor): Decide whether we can make
516 static versions of the constructor from the categorize_ctor_elements
517 return value instead of the formerly computed number of non-constant
520 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
522 * configure: Regenerate.
523 * Makefile.in (build_libsubdir): New configure substitution
524 (build_libobjdir): New variable.
525 (BUILD_LIBIBERTY): Use it.
527 2006-07-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
530 * c-pragma.c (handle_pragma_pack): Handle invalid constants.
532 2006-07-18 Alexandre Oliva <aoliva@redhat.com>
535 * c-common.c (handle_weakref_attribute): Ignore attribute in
536 the same conditions the alias attribute is ignored.
538 2006-07-17 Carlos O'Donell <carlos@codesourcery.com>
540 * dbxout.c (dbxout_function_end): Do not increment scope_labelno.
541 (dbxout_begin_prologue): Increment scope_labelno.
543 2006-07-17 Richard Henderson <rth@redhat.com>
546 * tree-nested.c (create_tmp_var_for): Set DECL_COMPLEX_GIMPLE_REG_P
549 2006-07-17 Roger Sayle <roger@eyesopen.com>
550 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
552 * config/i386/gmon-sol2.c: Silence compilation warnings by partially
553 synchronizing code with config/sparc/gmon-sol2.c. Remove #if 0
554 blocks. #include "tconfig.h" and "tsystem.h" to prototype system
555 functions such as sbrk, write, etc.. Add function prototypes.
556 Convert function declarations from K&R to ISO C. Cast pointers
557 to "long" and "unsigned long" instead of "int" and "unsigned int".
558 Convert tokens following #endif into comments.
560 2006-07-17 Toon Moene <toon@moene.indiv.nluug.nl>
562 * invoke.texi: Remove mention of f77; Reformat table for
563 inline parameter options correctly; mention that -malign-double
564 is default on x86-64 targets.
566 2006-07-17 Zdenek Dvorak <dvorakz@suse.cz>
568 * tree-chrec.c (avoid_arithmetics_in_type_p): New.
569 (convert_affine_scev, chrec_convert_aggressive): Use
570 avoid_arithmetics_in_type_p. Do not check for the subtypes
573 2006-07-17 Richard Sandiford <richard@codesourcery.com>
576 * optabs.c (expand_doubleword_shift): Wrap the call to
577 do_compare_rtx_and_jump with NO_DEFER_POP and OK_DEFER_POP.
579 2006-07-17 Richard Sandiford <richard@codesourcery.com>
582 * optabs.c (expand_binop): Pass next_methods rather than methods
583 to expand_doubleword_shift.
585 2006-07-17 J"orn Rennecke <joern.rennecke@st.com>
588 * tree.h (dump_addr): Declare.
589 * print-tree.c (dump_addr): New function.
590 (print_node_brief, print_node): Use it.
591 * print-rtl.c (print_rtx): Likewise.
592 * common.opt (-fdump-noaddr): New option.
593 * doc/invoke.texi (-fdump-noaddr): Document.
594 * loop-unroll.c (si_info_hash): Make hash independent of addresses.
595 (ve_info_hash): Likewise.
597 2006-07-13 Andrew Haley <aph@redhat.com>
599 PR tree-optimization/19505
600 * tree-cfgcleanup.c (tree_forwarder_block_p): If we have an EH
601 edge leaving this block, make sure that the destination of this
602 block has only one predecessor.
604 2006-07-17 Richard Guenther <rguenther@suse.de>
606 PR tree-optimization/28238
607 * tree-inline.c (copy_bb): Check if we produced valid
608 gimple copying and substituting a stmt. If not, gimplify
611 2006-07-16 Eric Botcazou <ebotcazou@adacore.com>
613 * optabs.c (maybe_encapsulate_block): New function extracted from...
614 (emit_libcall_block): ...here. Invoke it on the block of insns to
615 maybe emit REG_LIBCALL/REG_RETVAL notes around the block.
616 (emit_no_conflict_block): Likewise.
618 2006-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
620 * doc/install.texi (sparc-sun-solaris2*): Add GMP version number.
622 2006-07-15 Roger Sayle <roger@eyesopen.com>
624 * tree-gimple.c (is_gimple_stmt): Sink test of IS_EMPTY_STMT into
625 a new NOP_EXPR case of the switch statement.
627 2006-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
630 * stor-layout.c (place_field): Take the bit field with
631 an excessive size into account in the ms-bitfiled case.
634 * stor-layout.c (place_field): Use DECL_BIT_FIELD_TYPE of
635 the previous bit field.
637 2006-07-14 Eliot Dresselhaus <eliot@sonic.net>
640 * config/rs6000/spe.md (frob_di_df_2): Add m->r alternative.
642 2006-07-14 Ulrich Weigand <uweigand@de.ibm.com>
644 * config/s390/linux-unwind.h (s390_fallback_frame_state): Detect
645 signal frames correctly even when the signal was installed with
648 2006-07-14 Carlos O'Donell <carlos@codesourcery.com>
650 * dbxout.c (dbxout_begin_prologue): Emit LFBB label at function start.
651 (dbxout_function_end): Use local label LFBB. Remove hook
653 (dbxout_source_line): Use local label LFBB.
654 (dbxout_block): Likewise.
655 (dbx_output_lbrac): Remove hook DBX_OUTPUT_LBRAC.
656 (dbx_output_rbrac): Remove hook DBX_OUTPUT_RBRAC.
657 * config/rs6000/linux64.h: Remove DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC,
660 2006-07-13 Janis Johnson <janis187@us.ibm.com>
662 * doc/sourcebuild.texi (Test Directives): Document dg-shouldfail.
664 2006-07-13 Jan Hubicka <jh@suse.cz>
666 * cgraphunit.c (cgraph_varpool_analyze_pending_decls): Call
668 * output.h (align_variable): Declare.
669 * varasm.c (align_variable): Export.
670 * value-prof.c (tree_value_profile_transformations): Recompute iterator
671 when basic block changed.
673 2006-07-13 Nick Clifton <nickc@redhat.com>
675 * config/sh/sh.c (sh_reorg): Ignore deleted insns whilst
676 walking the LOG_LINKS chain.
678 2006-07-12 Geoffrey Keating <geoffk@apple.com>
680 * doc/invoke.texi (C++ Dialect Options): Explain difference
681 between -fvisibility-inlines-hidden and setting hidden
682 visibility explicitly.
684 2006-07-12 Eric Christopher <echristo@apple.com>
686 * config/t-slibgcc-darwin (SHLIB_LINK): Don't munge stmp-lipo.
687 (stmp-lipo): Depend on libgcc.a.
689 2006-07-12 Kazu Hirata <kazu@codesourcery.com>
691 * tree.c: Fix a comment typo.
693 2006-07-12 Naveen.H.S <naveenh@kpitcummins.com>
695 * config/m32c/muldiv.md (umulhisi3_c): Use only registers for
697 (umulhisi3_r): Likewise.
699 2006-07-12 Paolo Carlini <pcarlini@suse.de>
702 * doc/install.texi (mips-sgi-irix6): Add note about IRIX 6.5.x,
703 x < 19, vs wchar_t support.
705 2006-07-12 Nick Clifton <nickc@redhat.com>
707 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Use -isa=sh4-up
710 2006-07-12 Mike Stump <mrs@apple.com>
712 * protoize.c (edit_fn_definition): Add volatile to clean_text_p.
714 2006-07-10 Eric Christopher <echristo@apple.com>
716 * config/t-slibgcc-darwin: Rewrite.
718 2006-07-10 Laurynas Biveinis <laurynas.biveinis@gmail.com>
721 * Makefile.in (configure): add missing aclocal.m4 and acinclude.m4
724 2006-07-08 Matthias Klose <doko@debian.org>
726 * doc/sourcebuild.texi: Fix typo.
728 2006-07-07 Mike Stump <mrs@apple.com>
730 * toplev.c (process_options): Don't give -ffunction-sections may
731 affect debugging warning for Mach-O.
733 2006-07-07 James E Wilson <wilson@specifix.com>
735 * config/mips/mips.md (cpu): Add sb1a.
736 * config/mips/sb1.md: Modify almost all patterns to accept sb1a in
737 addition to sb1. Adjust comments to clarify SB-1A differences from
739 (ir_sb1a_load): New. Modify bypasses to use it.
740 (ir_sb1a_simple_alu): Likewise.
741 * config/mips/mips.c (mips_cpu_info_table): Add sb1a.
742 (mips_rtx_cost_data): Add PROCESSOR_SB1A support.
743 (mips_issue_rate): Add PROCESSOR_SB1A.
744 (mips_multipass_dfa_lookahead): Use TUNE_SB1 instead of PROCESSOR_SB1.
745 * config/mips/mips.h (processor_type): Add PROCESSOR_SB1A.
746 (TARGET_SB1): Add PROCESSOR_SB1A check.
747 (TUNE_SB1): Likewise.
749 * config/mips/mips-protos.h (mips_store_data_bypass_p): New.
750 * config/mips/mips.c (mips_store_data_bypass_p): New.
751 * config/mips/sb1.md: Use mips_store_data_bypass_p instead of
754 2006-07-08 Paul Brook <paul@codesourcery.com>
757 * config/m68k/m68k.md: Add r-m patterns for 68881 movxf.
759 2006-07-07 Richard Guenther <rguenther@suse.de>
762 * tree.h (build_one_cst): Declare.
763 * tree.c (build_one_cst): New function.
764 * tree-ssa-math-opts.c (get_constant_one): Remove.
765 (insert_reciprocals): Use build_one_cst.
766 * fold-const.c (fold_plusminus_mult): Likewise.
768 2006-07-07 Roger Sayle <roger@eyesopen.com>
770 * pointer-set.c (pointer_set_destroy): Correct whitespace.
771 * cfgloopanal.c (dump_graph): Likewise.
772 * dojump.c (discard_pending_stack_adjust): Likewise.
773 * fix-header.c (TARGET_EXTRA_INCLUDE, TARGET_EXTRA_PRE_INCLUDES):
775 * alloc-pool.c (dump_alloc_pool_statistics): Likewise.
776 * function.c (finalize_block_changes): Likewise.
777 * gcc-common.c (ggc_free_overhead, dump_gcc_loc_statistics): Likewise.
778 * tree-ssa-dce.c (clear_control_dependence_bitmap): Likewise.
779 * rtl.c (dump_rtx_statistics): Likewise.
780 * tree-ssa-structalias.c (sort_fieldstack, init_alias_heapvars):
782 * varray.c (dump_varray_statistics): Likewise.
783 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
784 decode_decimal64, encode_decimal128, decode_decimal128,
785 decimal_real_to_decimal): Likewise.
787 2006-07-07 Richard Guenther <rguenther@suse.de>
789 PR tree-optimization/28187
790 * tree-vrp.c (vrp_operand_equal_p): New function.
791 (vrp_bitmap_equal_p): Likewise.
792 (update_value_range): Use them to compare old and new
795 2006-07-06 Roger Sayle <roger@eyesopen.com>
797 * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Add
798 a default case to switch statement to silence compiler warnings.
800 2006-07-06 Roger Sayle <roger@eyesopen.com>
803 * configure.ac (HAVE_AS_IX86_FFREEP): On x86 targets check whether
804 the configured assembler supports the x87's ffreep mnemonic.
805 * configure: Regenerate.
806 * config.in: Regenerate.
808 * config/i386/i386.c (output_387_ffreep): New function.
809 (output_fp_compare): Use output_387_ffreep to emit ffreep insns.
810 (output_387_reg_move): Likewise.
812 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
814 Port to hosts whose 'sort' and 'tail' implementations
815 treat operands with leading '+' as file names, as POSIX
816 has required since 2001. However, make sure the code still
817 works on pre-POSIX hosts.
818 * Makefile.in (slowcompare): Port to POSIX 1003.1-2001,
819 which says you should use "tail -c +N" rather than "tail +Nc".
820 Fix a bug: the old code incorrectly skipped 15 bytes, not 16.
822 2006-07-06 Zdenek Dvorak <dvorakz@suse.cz>
824 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Fix typo in
827 2006-07-06 David Edelsohn <edelsohn@gnu.org>
830 * config/rs6000/rs6000.c (rs6000_legitimate_address): Do not allow
831 PRE_{INC,DEC} of TFmode.
833 2006-07-06 David Edelsohn <edelsohn@gnu.org>
834 Alan Modra <amodra@bigpond.net.au>
837 * config/rs6000/rs6000.c (insvdi_rshift_rlwimi_p): Correct shiftop
840 2006-07-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
843 * config/alpha/predicates.md (alpha_swapped_comparison_operator):
844 Remove duplicate gtu.
846 2006-07-05 Jason Merrill <jason@redhat.com>
850 * stor-layout.c (finish_record_layout): Copy TYPE_PACKED to variants.
851 * c-common.c (handle_packed_attribute): So don't copy it here.
852 * c-decl.c (finish_struct): Don't copy TYPE_ALIGN.
854 2006-07-05 Mike Stump <mrs@apple.com>
856 * doc/invoke.texi (Invoking G++): Clarify prose for g++.
858 2006-07-05 H.J. Lu <hongjiu.lu@intel.com>
861 * config.gcc: Check with_cpu for i[34567]86--*-solaris2.1[0-9]*.
863 2006-07-05 Richard Guenther <rguenther@suse.de>
866 * config/i386/i386.md (*negdf2_1): Restrict pattern to
867 TARGET_SSE2 targets if using SSE math.
868 (*absdf2_1): Likewise.
870 2006-07-05 Richard Guenther <rguenther@suse.de>
872 PR tree-optimization/28162
873 * fold-const.c (fold_binary): For (-A) * (-B) -> A * B
874 make sure to convert the operands to the correct type.
876 2006-07-04 Paolo Bonzini <bonzini@gnu.org>
878 PR tree-optimization/28218
880 * tree-ssa-math-opts.c (execute_cse_reciprocals): Fix calls
881 to calculate and free the dominator information.
883 2006-07-04 Peter O'Gorman <peter@pogma.com>
885 * mklibgcc.in: chmod 644 before ranlib during install.
887 2006-07-04 Andrew Stubbs <andrew.stubbs@st.com>
888 J"orn Rennecke <joern.rennecke@st.com>
890 * configure.ac (.eh_frame data check): Use diff -b.
892 2006-07-04 Eric Botcazou <ebotcazou@libertysurf.fr>
895 * Makefile.in (BUILD_RTL): Add build/vec.o.
896 (build/gencondmd.o): Filter out -fkeep-inline-functions.
897 (build/genextract): Delete.
898 (build/genautomata): Likewise.
900 2006-07-04 Alan Modra <amodra@bigpond.net.au>
903 * config/rs6000/rs6000.c (function_arg_boundary): Double-word align
904 128-bit IBM long doubles for ABI_V4.
906 2006-07-03 Eric Botcazou <ebotcazou@adacore.com>
908 * tree.c (range_in_array_bounds_p): New predicate.
909 * tree.h (range_in_array_bounds_p): Declare it.
910 * tree-eh.c (tree_could_trap_p) <ARRAY_RANGE_REF>: Use it to
911 return a less conservative answer.
912 * tree-sra.c (struct sra_elt): Add new pointer field 'groups'
914 (IS_ELEMENT_FOR_GROUP): New macro.
915 (FOR_EACH_ACTUAL_CHILD): Likewise.
916 (next_child_for_group): New helper function.
917 (can_completely_scalarize_p): Take into account groups.
918 (sra_hash_tree): Handle RANGE_EXPR.
919 (sra_elt_eq): Likewise.
920 (lookup_element): Be prepared for handling groups.
921 (is_valid_const_index): Delete.
922 (maybe_lookup_element_for_expr) <ARRAY_REF>: Use in_array_bounds_p
923 instead of is_valid_const_index.
924 <ARRAY_RANGE_REF>: New case.
925 (sra_walk_expr) <ARRAY_REF>: Use in_array_bounds_p instead of
926 is_valid_const_index.
927 <ARRAY_RANGE_REF>: Do not unconditionally punt.
928 (scan_dump): Dump info for groups too.
929 (decide_instantiation_1): Likewise.
930 (decide_block_copy): Assert that the element is not a group.
931 Propagate decision to groups.
932 (generate_one_element_ref): Handle RANGE_EXPR.
933 (mark_no_warning): Iterate over actual childs.
934 (generate_copy_inout): Likewise.
935 (generate_element_copy): Likewise.
936 (generate_element_zero): Likewise.
937 (generate_element_init_1): Likewise.
938 (dump_sra_elt_name): Handle RANGE_EXPR.
940 2006-07-03 Roger Sayle <roger@eyesopen.com>
942 PR tree-optimization/26251
943 * tree-ssa-threadupdate.c (redirection_block_p): New function.
944 (thread_block): When optimizing for size refuse to thread jumps
945 that would require duplication of blocks other than redirection
948 2006-07-03 Paolo Bonzini <bonzini@gnu.org>
950 * configure.ac: Fix thinko in previous check-in.
951 * configure: Regenerate.
953 2006-07-03 Paolo Bonzini <bonzini@gnu.org>
956 * configure.ac (for lang...): Simplify nesting of conditionals.
957 Test subdir_requires for non-enabled languages. Move processing
958 of lang_opt_files and lang_tree_fiels below that test.
959 * configure: Regenerate.
960 * doc/sourcebuild.texi (Front End Config): Document subdir_requires.
962 2006-07-01 Martin Michlmayr <tbm@cyrius.com>
964 * doc/gcov.texi (Invoking Gcov): Add a missing word.
966 2006-06-30 Kazu Hirata <kazu@codesourcery.com>
968 * cfgexpand.c, config/i386/i386.c, genpreds.c, tree-cfg.c: Fix
971 2006-06-29 Jason Merrill <jason@redhat.com>
978 * tree.c (build_decl_stat): Don't hande #pragma visibility here.
979 * c-common.c (c_determine_visibility): Handle it here.
980 * c-decl.c (finish_decl): Call c_determine_visibility for
982 * flags.h (enum symbol_visibility): Sort from most to least visibility.
984 * varasm.c (default_assemble_visibility): Likewise.
985 * c-common.c (handle_visibility_attribute): Complain about trying
986 to give visibility to an already defined class, or trying to change
987 declared visibility. Always attach the attribute.
992 * attribs.c (decl_attributes): Ignore type-in-place attributes
993 once the type has been defined.
995 2006-06-29 Roger Sayle <roger@eyesopen.com>
998 * c-lex.c (c_lex_with_flags) <CPP_N_INVALID>: Increment errorcount
999 to indicate the cpplib has issued an error message for us.
1001 2006-06-29 Asher Langton <langton2@llnl.gov>
1004 * config/i386/i386.c (ix86_output_function_epilogue): Don't
1005 insert a label at the end of an function under Mach-O.
1007 2006-06-29 Eric Christopher <echristo@apple.com>
1008 Evan Cheng <evan.cheng@apple.com>
1010 * predicates.md (vector_all_ones_operand): New.
1011 (nonimmediate_or_sse_const_operand): Ditto.
1012 * config/i386/i386-protos.h (standard_sse_constant_opcode): Declare.
1013 * config/i386/i386.c (standard_sse_constant_opcode): Define.
1014 (standard_sse_mode_p): Ditto.
1015 (standard_sse_constant_p): Add case for -1 vector.
1016 (ix86_expand_vector_move): Try to use.
1017 * sse.md (*mov<mode>_internal): Use nonimmediate_or_sse_const_operand.
1018 Call standard_sse_constant_opcode.
1019 (*movv4sf_internal): Ditto.
1020 (*movv2df_internal): Ditto.
1022 2006-06-29 Roger Sayle <roger@eyesopen.com>
1024 * genpreds.c (write_match_code_switch): Correctly use XSTR instead
1025 of XEXP to extract the operands of a MATCH_CODE rtx.
1027 2006-06-28 Andrew Pinski <pinskia@gmail.com>
1029 * tree.c (tree_size): Do not waste tail padding in
1030 struct tree_string and make the size be the same as
1031 build_string will generate.
1033 2006-06-28 Jason Merrill <jason@redhat.com>
1036 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
1037 may_aliases already in the tag's annotations to the bitmap.
1039 2006-06-28 Roger Sayle <roger@eyesopen.com>
1041 * genpreds.c (write_predicate_stmts) <IOR>: Add missing break.
1043 2006-06-28 Roger Sayle <roger@eyesopen.com>
1045 * genpreds.c (generate_switch_p): New function.
1046 (add_mode_tests): Push the new mode test down inside an AND expr
1047 if this allows the switch-suitable MATCH_CODE to be near the root.
1048 (write_match_code_switch): New function to write a MATCH_CODE as
1050 (write_predicate_stmts): New function to write a predicate RTX
1051 expression as a sequence of statements.
1052 (write_one_predicate_function): Use write_predicate_stmts.
1053 (write_tm_constrs_h): Likewise.
1055 2006-06-26 Fred Fish <fnf@specifix.com>
1057 * config/mips/t-sb1: New file.
1058 * config.gcc (mipsisa64sb1-*-elf*): Add mips/t-sb1 to
1061 2006-06-26 DJ Delorie <dj@redhat.com>
1063 * config/m32c/m32c.c (m32c_print_operand): Fix sign-merging logic.
1065 2006-06-26 Naveen H.S <naveenh@kpitcummins.com>
1066 Jayant Sonar <jayants@kpitcummins.com>
1067 Jaydeep Vipradas <jaydeepv@kpitcummins.com>
1069 * config/m32c/addsub.md (addsi3, addsi3_1, addsi3_2): New.
1070 (subsi3, subsi3_1, subsi3_2): New.
1071 * config/m32c/bitops.md (andsi3, iorsi3, xorsi3): New.
1072 * config/m32c/mov.md (SI mov peephole): New.
1073 * config/m32c/m32.c (m32c_immd_dbl_mov): New.
1074 * config/m32c/m32c-protos.h (m32c_immd_dbl_mov): New.
1076 2006-06-26 Olivier Hainque <hainque@adacore.com>
1078 * function.c (aggregate_value_p): Honor DECL_BY_REFERENCE on
1079 a CALL_EXPR target function declaration.
1081 2006-06-26 Richard Guenther <rguenther@suse.de>
1083 * tree.c (build_string): Do not waste tail padding in
1086 2006-06-26 Richard Guenther <rguenther@suse.de>
1088 * ggc-page.c (init_ggc): Add missing element to size_lookup
1092 2006-06-23 Richard Guenther <rguenther@suse.de>
1094 * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
1095 sizes to MAX_ALIGNMENT. Fix the size_lookup table to honour
1096 alignment requests instead. Add verification code.
1097 Add struct tree_function_decl and struct tree_binfo size to
1098 extra_order_size_table. Add missing element to size_lookup
1101 2006-06-25 Eric Botcazou <ebotcazou@adacore.com>
1104 * fold-const.c (const_binop): Be prepared for self returning zero.
1105 Simplify code handling complex values.
1107 2006-06-24 Olivier Hainque <hainque@adacore.com>
1109 * gimplify.c (gimplify_scalar_mode_aggregate_compare): New function.
1110 (gimplify_expr): Use it for tcc_comparison of operands of non BLKmode
1113 2006-06-24 Olivier Hainque <hainque@adacore.com>
1115 * tree-ssa-loop-im.c (for_each_index): Handle ARRAY_RANGE_REF as
1116 ARRAY_REF, so have the callback called for the low bound expression.
1118 2006-06-23 Janis Johnson <janis187@us.ibm.com>
1120 * tree.h (DECIMAL_FLOAT_TYPE_P): New.
1121 * c-typeck.c (c_common_type): Disallow operations on decimal float
1122 types and other float types.
1123 * convert.c (convert_to_real): Don't ignore conversions involving
1124 decimal float types.
1126 2006-06-23 Olivier Hainque <hainque@adacore.com>
1128 * tree.c (max_int_size_in_bytes): New function, inspired from
1129 code in function.c:assign_temp.
1130 * tree.h (max_int_size_in_bytes): Declare.
1131 * function.c (assign_temp): Use it.
1132 * gimplify.c (create_tmp_var): Relax the assertions on the type
1133 properties, not mandating constant size any more.
1134 (force_constant_size): New static function.
1135 (gimple_add_tmp_var): Use it, forcing variable size to a
1136 constant upper bound if it is not constant on entry.
1138 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
1141 * config/i386/winnt.c (ix86_handle_selectany_attribute): Move check
1142 for initialization and setting of one_only flag to ...
1143 (i386_pe_encode_section_info): ...here.
1144 (i386_pe_dllimport_p): Check for DECL_DLLIMPORT_P also.
1145 Recheck that the symbol has not been defined.
1147 2006-06-23 Richard Guenther <rguenther@suse.de>
1149 * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
1150 sizes to MAX_ALIGNMENT. Fix the size_lookup table to honour
1151 alignment requests instead. Add verification code.
1152 Add struct tree_function_decl and struct tree_binfo size to
1153 extra_order_size_table. Add missing element to size_lookup
1156 2006-06-22 Roger Sayle <roger@eyesopen.com>
1157 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1160 * expr.c (expand_expr_real_1) <VECTOR_CST>: Check whether the
1161 call to lang_hooks.types.type_for_mode returned NULL_TREE.
1163 2006-06-23 Ben Elliston <bje@au.ibm.com>
1165 * dfp.c (decimal_to_decnumber): Do not use decNumberNegate to
1166 negate dn -- manipulate it directly.
1168 2006-06-22 Roger Sayle <roger@eyesopen.com>
1169 Steven Bosscher <stevenb.gcc@gmail.com>
1172 * reload1.c (gen_reload): Call mark_jump_label on the new insns
1173 generated by gen_move_insn to add REG_LABEL notes if necessary.
1175 2006-06-22 Bob Wilson <bob.wilson@acm.org>
1177 * config/xtensa/lib1funcs.asm (MIN_ESA): Delete.
1178 (leaf_entry): Remove use of MIN_ESA.
1180 2006-06-22 Zdenek Dvorak <dvorakz@suse.cz>
1182 PR rtl-optimization/28121
1183 * cfgexpand.c (tree_expand_cfg): Clean EDGE_EXECUTABLE flag from
1186 2006-06-21 DJ Delorie <dj@redhat.com>
1188 * config/m32c/muldiv.md (mulhisi3_i): Only use registers for dest
1190 (mulhisi3_r): Likewise.
1192 2006-06-21 Richard Sandiford <richard@codesourcery.com>
1195 * coverage.c (coverage_counter_alloc): Leave the index type
1197 (coverage_counter_alloc): Use null arguments for operands 2 and 3
1200 2006-06-21 Andrew Pinski <pinskia@physics.uc.edu>
1202 * doc/invoke.texi (-fopenmp) Move to "Options Controlling C Dialect"
1203 section from the "Options for Code Generation Conventions".
1205 2006-06-21 Richard Henderson <rth@redhat.com>
1209 * config/alpha/predicates.md (small_symbolic_operand): Deny weak
1211 (global_symbolic_operand): Allow weak symbols, even if local_p.
1213 2006-06-21 Eric Botcazou <ebotcazou@adacore.com>
1215 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): New function.
1216 (find_interesting_uses_address): Punt if above function returns true.
1218 2006-06-21 Richard Guenther <rguenther@suse.de>
1220 * configure: Regenerated.
1222 2006-06-21 Joseph Myers <joseph@codesourcery.com>
1224 * config/mips/mips.c (function_arg): Where one part of a
1225 complex argument is in registers and the other part in the stack,
1226 return a REG not a PARALLEL.
1228 2006-06-21 Mark Mitchell <mark@codesourcery.com>
1230 * configure.ac: Set gcc_gxx_include_dir to $target/include/c++
1231 when cross-compiling. Do not substitute libstdcxx_incdir.
1232 * configure: Regenerated.
1234 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1236 * varasm.c (mergeable_string_section): Check for embedded NULs and
1237 NUL termination in the first int_size_in_bytes (TREE_TYPE (decl))
1238 rather than TREE_STRING_LENGTH bytes.
1240 2006-06-21 Richard Guenther <rguenther@suse.de>
1242 * ggc-page.c (extra_order_size_table): Add var_ann_d,
1243 tree_ssa_name, bitmap_element and phi_node with 4 arguments
1246 2006-06-21 Richrad Guenther <rguenther@suse.de>
1248 * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
1249 Limit iteration over the dominators.
1251 2006-06-20 Roger Sayle <roger@eyesopen.com>
1253 * config/mips/iris6.h (LIB_SPEC): Add support for -pthread.
1254 (SUBTARGET_CPP_SPEC): Define _REENTERANT if -pthread specified.
1256 2006-06-20 Richard Guenther <rguenther@suse.de>
1257 Michael Matz <matz@suse.de>
1259 * alloc-pool.h (free_alloc_pool_if_empty): Prototype new
1261 * alloc-pool.c (free_alloc_pool_if_empty): New function.
1262 * et-forest.h (et_free_pools): Prototype new function.
1263 * et-forest.c (et_free_tree_force): Free parent occurrence.
1264 (et_free_pools): New function.
1265 * dominance.c (free_dominance_info): Free et-forest alloc
1268 2006-06-20 Roger Sayle <roger@eyesopen.com>
1270 * expr.c (expand_expr_real_1) <VECTOR_CST>: For vector constants with
1271 integer modes, attempt to directly construct an integer constant.
1273 * fold-const.c (native_encode_vector): Determine the size of each
1274 element from the vector type instead of the first vector element.
1276 * tree.c (build_constructor_single): Mark a CONSTRUCTOR as constant,
1277 if all of its elements/components are constant.
1278 (build_constructor_from_list): Likewise.
1280 2006-06-20 Zdenek Dvorak <dvorakz@suse.cz>
1282 PR tree-optimization/27331
1283 * tree-data-ref.c (free_data_ref): New function.
1284 (create_data_ref): Fail if the data reference has unknown access
1286 (free_data_refs): Use free_data_ref.
1288 2006-06-19 Andrew Pinski <pinskia@gmail.com>
1291 * tree-inline.c (setup_one_parameter): Strip useless
1292 type conversion before adding it to the IR.
1293 (declare_return_variable): Likewise.
1295 2006-06-19 Martin Michlmayr <tbm@cyrius.com>
1298 * c-common.c (c_common_truthvalue_conversion): Fix grammar in warning.
1300 2006-06-19 Mike Stump <mrs@apple.com>
1302 * tree.c (variably_modified_type_p): VM arguments don't make the
1305 2006-06-19 Richard Guenther <rguenther@suse.de>
1307 * tree-ssa-pre.c (try_combine_conversion): Strip useless
1308 type conversions after folding.
1310 2006-06-19 Richard Guenther <rguenther@suse.de>
1312 * ggc-page.c (extra_order_size_tab): Add entries with
1313 size of struct function and basic_block.
1314 (size_lookup): Extend to cover sizes up to 511.
1315 (ggc_alloc_stat): Adjust user.
1316 (ggc_pch_count_object): Likewise.
1317 (ggc_pch_alloc_object): Likewise.
1318 (ggc_pch_write_object): Likewise.
1320 2006-06-19 Zdenek Dvorak <dvorakz@suse.cz>
1322 * tree-ssa-loop-niter.c (implies_ge_p): New function.
1323 (derive_constant_upper_bound): Handle OP0 - CST in unsigned types
1326 2006-06-19 Denis Chertykov <denisc@overta.ru>
1328 * config/avr/libgcc.S : Correct my wrong previous commit.
1330 2006-06-19 Roger Sayle <roger@eyesopen.com>
1333 * expmed.c (expand_shift): On SHIFT_COUNT_TRUNCATED targets, we may
1334 have stripped a SUBREG from the shift count, so we may need to
1335 convert_to_mode back to the type's mode before calling make_tree.
1336 Use new_amount instead of amount to avoid expanding a tree twice.
1338 2006-06-19 Richard Guenther <rguenther@suse.de>
1341 * fold-const.c (operand_equal_p): Check if the argument types
1342 have the same precision before stripping NOPs.
1344 2006-06-19 Daniel Berlin <dberlin@dberlin.org>
1346 Fix PR tree-optimization/27341
1347 * tree-cfg.c (gimplify_val): Call mark_new_vars_to_rename on the
1349 * tree-complex.c (pass_lower_complex): Update SMT usage.
1351 2006-06-19 Andreas Krebbel <krebbel1@de.ibm.com>
1353 * config/s390/s390.md ("doloop_si64", "doloop_si31", "doloop_di"):
1354 Add a new alternative to the constraint strings. Add move of
1355 operand 1 to 3 to the splitter definition.
1356 ("doloop_si_long"): Second contraint alternative removed.
1358 2006-06-08 Anatoly Sokolov <aesok@post.ru>
1360 * config/avr/avr.h (avr_have_movw_lpmx_p): Declare.
1361 (TARGET_CPU_CPP_BUILTINS): Add __AVR_HAVE_MOVW__ and
1363 (AVR_HAVE_MOVW) Define.
1364 (ASSEMBLER_DIALECT): Use AVR_HAVE_MOVW.
1365 (ASM_SPEC): Add avr25.
1366 (LINK_SPEC): Add avr25.
1367 * config/avr/avr.c (avr_have_movw_lpmx_p): Add.
1368 (base_arch_s): Add new member 'have_movw_lpmx'.
1369 (avr_arch_types): Init 'have_movw_lpmx'.
1370 (avr_mcu_types): Add 'avr25'. Move attiny13, attiny2313, attiny24,
1371 attiny44, attiny84, attiny25, attiny45, attiny85, attiny261,
1372 attiny461, attiny861 and at86rf401 in 'avr25' arhitecture.
1373 (avr_override_options): Init 'avr_have_movw_lpmx_p'.
1374 (output_movhi, output_movsisf, ashlsi3_out, avr_rtx_costs): Use
1376 (avr_file_start): Do not output '.arh' derective.
1377 * config/avr/libgcc.S (mov_l): Use __AVR_HAVE_MOVW__.
1378 (__do_copy_data): Use __AVR_HAVE_LPMX__.
1379 * config/avr/avr.md (mcu_enhanced): Delete.
1380 (mcu_have_movw): Define.
1381 (negsi2, extendhisi2, zero_extendhisi2): Use 'mcu_have_movw'.
1382 (call_insn, call_value_insn): Use 'call_insn' and __AVR_HAVE_MOVW__.
1383 * config/avr/t-avr(MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add avr25.
1384 (MULTILIB_MATCHES): Add attiny13, attiny2313, attiny24, attiny44,
1385 attiny84, attiny25, attiny45, attiny85, attiny261, attiny461,
1386 attiny861 and at86rf401 devices.
1388 2006-06-18 Jie Zhang <jie.zhang@analog.com>
1390 * config/bfin/bfin.c (MAX_LOOP_LENGTH): Define to be 2042 instead
1393 2006-06-17 Karl Berry <karl@gnu.org>
1395 * doc/cpp.texi, doc/cppinternals.texi, doc/gcc.texi,
1396 doc/gccint.texi, doc/install.texi (@dircategory): Use
1397 "Software development" instead of "Programming", following
1398 the Free Software Directory.
1400 2006-06-17 Alexandre Oliva <aoliva@redhat.com>
1402 * config/i386/i386.c (legitimate_tls_address)
1403 <TARGET_GNU2_TLS>: Add tp after DTPOFF.
1404 * config/i386/i386.md (*tls_dynamic_gnu2_combine_32): Adjust.
1405 (*tls_dynamic_gnu2_combine_64): Likewise.
1407 2006-06-16 Richard Guenther <rguenther@suse.de>
1410 * fold-const.c (negate_expr_p): Do not introduce undefined
1411 overflow in negating INTEGER_CSTs.
1412 (fold_negate_expr): Rename from negate_expr. Revert last
1413 change for folding BIT_NOT_EXPR. Change semantics to
1414 return NULL_TREE for non-simplified negations. Do not
1415 strip type conversions and unify type handling.
1416 (negate_expr): New function, wrap around fold_negate_expr
1417 but ensure building a tree always. Strip type conversions
1418 here, fold to result type.
1419 (fold_unary): Use fold_negate_expr for folding NEGATE_EXPR.
1421 2006-06-16 Roger Sayle <roger@eyesopen.com>
1424 * reg-stack.c (subst_stack_regs): Handle noreturn function calls
1425 that (would) return their results in stack registers.
1427 2006-06-16 Michael Matz <matz@suse.de>
1428 Richard Guenther <rguenther@suse.de>
1430 * fold-const.c (fold_truthop): Only return new tree node if
1431 we canonicalized something.
1433 2006-06-16 Richard Guenther <rguenther@suse.de>
1435 * function.h (enum function_frequency): Move declaration
1436 out of struct function.
1437 (struct function): Move bool fields and the enum to the bitfield
1438 section. Reorder elements to avoid padding. Remove unused
1439 fields left over from the RTL inliner removal.
1440 * function.c (free_after_compilation): Do not zero removed fields.
1441 * Makefile.in (ipa-reference.o): Add $(FUNCTION_H) dependency.
1442 (ipa-type-escape.o): Likewise.
1444 2006-06-16 Richard Guenther <rguenther@suse.de>
1446 * cgraph.h (struct cgraph_local_info): Turn bool elements
1448 (struct cgraph_node): Likewise.
1449 (struct cgraph_varpool_node): Likewise.
1451 2006-06-15 Richard Guenther <rguenther@suse.de>
1453 * fold-const.c (fold_truth_not_expr): Rename from
1454 invert_truthvalue. Give it fold_* semantics to avoid
1456 (invert_truthvalue): New function. Wrapper around
1457 fold_truth_not_expr.
1458 (optimize_minmax_comparison): Avoid creating garbage.
1459 (fold_unary): Use fold_truth_not_expr for folding
1461 (fold_ternary): Replace uses of invert_truthvalue with
1462 fold_truth_not_expr where applicable.
1463 * tree.h (fold_truth_not_expr): Prototype.
1465 2006-06-16 Richard Guenther <rguenther@suse.de>
1467 PR tree-optimization/27781
1468 * Makefile.in (ipa-pure-const.o): Add $(TARGET_H) dependency.
1469 * ipa-pure-const.c (target.h): Include.
1470 (analyze_function): Do not analyze functions that do not
1473 2006-06-15 Andrew MacLeod <amacleod@redhat.com>
1476 * tree-dfa.c (referenced_vars_dup_list): Remove.
1477 (find_referenced_vars): Remove assert.
1478 (referenced_var_check_and_insert): Replace dup list with assert.
1479 * tree-ssa.c (delete_tree_ssa): Remove dup list processing.
1480 * tree-flow.h (referenced_vars_dup_list): Remove extern decl.
1482 2006-06-15 Richard Guenther <rguenther@suse.de>
1484 * tree-ssa-structalias.c (alias_get_name): Avoid creating
1485 extra unused identifiers if not dumping.
1486 (create_variable_info_for): Likewise.
1488 2006-06-15 Zdenek Dvorak <dvorakz@suse.cz>
1490 * tree-ssa-loop-niter.c (implies_nonnegative_p): New function.
1491 (derive_constant_upper_bound): Derive more precise upper bound in
1492 common cases. Return type changed to double_int.
1493 (record_estimate): Reflect the changed return type of
1494 derive_constant_upper_bound.
1495 * double-int.c (double_int_zext, double_int_sext): Fix.
1497 2006-06-15 Paolo Bonzini <bonzini@gnu.org>
1499 * configure.ac (CFLAGS): Get them from the toplevel or from the
1500 configure invocation.
1501 * configure: Regenerate.
1502 * Makefile.in (CFLAGS): Substitute value provided by configure.
1504 2006-06-14 Mark Mitchell <mark@codesourcery.com>
1507 * c-common.h (c_finish_omp_atomic): Adjust declaration.
1508 * c-omp.c (c_finish_omp_atomic): Return the expression to perform,
1509 rather than calling add_stmt on it.
1510 * c-parser.c (c_parser_omp_atomic): Adjust accordingly.
1512 2006-06-14 Andreas Krebbel <krebbel1@de.ibm.com>
1515 * reload1.c (reload): Remove registers returned by update_eliminables
1516 from used_spill_regs.
1518 2006-06-13 DJ Delorie <dj@redhat.com>
1520 * config/m32c/muldiv.md (mulpsi3): Expect arbitrary constants.
1522 2006-06-13 Carlos O'Donell <carlos@codesourcery.com>
1524 * Makefile.in: Define HTMLS_BUILD, HTMLS_INSTALL,
1525 html__strip_dir, html__mkdir_p. Enhance install-html target.
1526 * configure.ac: AC_SUBST datarootdir, docdir and htmldir.
1527 * configure: Regenerate.
1529 2006-06-13 Fariborz Jahanian <fjahanian@apple.com>
1531 * fold-const.c (fold_cond_expr_with_comparison): Check for
1532 Objective-C++ as language in deciding COND_EXPR transformation.
1534 2006-06-06 J"orn Rennecke <joern.rennecke@st.com>
1537 * config/sh/t-sh (LIB1ASMFUNCS): Add _udiv_qrnnd16
1538 * config/sh/sh.c (print_operand): Add !SHMEDIA functionality to 'M'.
1539 * config/sh/lib1funcs.h (SL, SL1): Define.
1540 * config/sh/lib1funcs.asm (__udiv_qrnnd16): New hidden function.
1541 * longlong.h (__sh__): Define umul_ppmm, udiv_qrnnd and sub_ddmmss.
1542 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): New rule.
1543 (OBJS_Os_4_200): New variable.
1544 ($(T)libgcc-Os-4-200.a): Use it.
1545 * sh.md (udivsi3): For TARGET_DIVIDE_CALL_TABLE, avoid function call
1546 when dividing 1 and/or by 0.
1548 2006-06-13 Roger Sayle <roger@eyesopen.com>
1550 * configure.ac (HAS_MCONTEXT_T_UNDERSCORES): Include <sys/signal.h>
1551 before <ucontext.h> to define sigset_t required by <sys/ucontext.h>.
1552 * configure: Regenerate.
1554 2006-06-13 Jie Zhang <jie.zhang@analog.com>
1556 * config/bfin/bfin.c (bfin_reorg_loops): Only call recog_memoized ()
1557 for real instruction.
1559 2006-06-13 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1562 * haifa-sched.c (check_cfg): Handle special case.
1564 2006-06-13 Eric Botcazou <ebotcazou@adacore.com>
1567 * gimplify.c (declare_tmp_vars): Rename into declare_vars.
1568 Add debug_info parameter. Chain the vars to the BLOCK instead
1569 of the BIND_EXPR if debug info are requested for them.
1570 (pop_gimplify_context): Adjust for above change.
1571 (gimple_add_tmp_var): Likewise.
1572 * tree-gimple.h (declare_tmp_vars): Rename into declare_vars.
1574 * tree-nested.c (convert_nonlocal_reference): Adjust for above change.
1575 (convert_local_reference): Likewise.
1576 (get_local_debug_decl): Set DECL_IGNORED_P on the original variable.
1577 (finalize_nesting_tree_1): Request that debug info be emitted
1578 for debug_var_chain.
1580 2006-06-13 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1582 * haifa-sched.c (unlink_other_notes, unlink_line_notes): Fix the patch
1583 for PR target/27863.
1585 2006-06-13 Richard Guenther <rguenther@suse.de>
1588 * except.c (output_ttype): Expand type with EXPAND_INITIALIZER.
1590 2006-06-13 Richard Guenther <rguenther@suse.de>
1592 PR tree-optimization/27830
1593 * tree-inline.c (copy_body_r): For copying the operand
1594 of an ADDR_EXPR make sure to fold &* afterwards.
1596 2006-06-12 Eric Botcazou <ebotcazou@adacore.com>
1598 * gimplify.c (gimplify_expr): Treat VIEW_CONVERT_EXPR like other
1599 lvalues in the fb_none case with side-effects.
1601 2006-06-12 Kazu Hirata <kazu@codesourcery.com>
1603 * tree-flow.h: Remove the prototype for
1604 compute_phi_arg_on_exit.
1605 * tree-ssa-loop-ivopts.c (protect_loop_closed_ssa_form_use,
1606 protect_loop_closed_ssa_form, compute_phi_arg_on_exit):
1609 2006-06-12 Mark Shinwell <shinwell@codesourcery.com>
1611 * builtins.c (expand_builtin_return_addr): Only use
1612 frame_pointer_rtx when count == 0 and we are expanding
1613 __builtin_return_address.
1615 2006-06-12 Fred Fish <fnf@specifix.com>
1617 * config/mips/mips.c (mips_file_start): Create special section
1618 ".gcc_compiled_longXX" for o64 ABI as well as EABI.
1620 2006-06-11 Eric Christopher <echristo@apple.com>
1623 * stor-layout.c (place_field): Remove check for
1624 remaining_in_alignment when aligning at the end of a run.
1626 2006-06-11 Eric Christopher <echristo@apple.com>
1629 * doc/extend.texi (Structure-Packing Pragmas): Document ms_struct
1632 2006-06-11 Roger Sayle <roger@eyesopen.com>
1635 Revert incorrect fix for PR target/27158
1636 2006-05-08 Roger Sayle <roger@eyesopen.com>
1637 * reload.c (find_reloads_toplev): Only return the simplified SUBREG
1638 of a reg_equiv_constant if the result is a legitimate constant.
1640 2006-06-11 Roger Sayle <roger@eyesopen.com>
1643 * config/rs6000/rs6000.c (const_vector_elt_as_int): New function to
1644 extract a CONST_VECTOR element and interpret it as an integer.
1645 (vspltis_constant): Use const_vector_elt_as_int instead of the
1646 macro CONST_VECTOR_ELT in order to handle FP vector modes.
1647 * config/rs6000/predicates.md (easy_vector_const): Consider
1648 floating point ALTIVEC_VECTOR_MODEs via easy_altivec_constant.
1650 2006-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
1653 * stor-layout.c (update_alignment_for_field): Don't add extra
1654 alignment for packed non-bitfield fields in ms_bitfield_layout_p
1657 2006-06-09 Ralf Corsepius <ralf.corsepius@rtems.org>
1659 * config/mips/t-rtems: Add EL/EB multilib variants.
1661 2006-06-09 Mike Stump <mrs@apple.com>
1663 * c-typeck.c (c_begin_vm_scope): Fix file_scope processing.
1665 2006-06-09 David Daney <ddaney@avtrex.com>
1667 * doc/install.texi: Add binutils version recommendation for mips-*-*.
1669 2006-06-09 Andreas Krebbel <krebbel1@de.ibm.com>
1671 * reload.c (find_reloads): Unset force_reload for 'X' constraint.
1673 2006-06-09 Richard Guenther <rguenther@suse.de>
1675 PR tree-optimization/26998
1676 * tree-vrp.c (extract_range_from_unary_expr): For NEGATE_EXPR
1677 of signed types, only TYPE_MIN_VALUE is special, but for both,
1678 minimum and maximum value. Likewise VR_ANTI_RANGE is special
1679 in this case, as is -fwrapv.
1681 2006-06-08 Mike Stump <mrs@apple.com>
1684 * config/darwin.c (darwin_asm_output_anchor): Disable
1685 -fsection-anchors on darwin for now.
1686 * config/darwin.h (TARGET_ASM_OUTPUT_ANCHOR): Likewise.
1687 * rs6000/rs6000.c (optimization_options): Likewise.
1689 2006-06-08 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1692 * config/i386/i386.c (classify_argument): Skip fields with invalid
1695 2006-06-08 Steven Bosscher <steven@gcc.gnu.org>
1697 * cse.c (flush_hash_table): Use VOIDmode to invalidate a REG.
1698 (cse_insn): Likewise for the stack_pointer_rtx.
1700 2006-06-08 Roger Sayle <roger@eyesopen.com>
1702 * tree-ssa-dom.c (record_conditions): Only record "unordered"
1703 conditions from floating point comparisons.
1705 2006-06-08 Paolo Bonzini <bonzini@gnu.org>
1708 * expmed.c (struct alg_hash_entry): Fix type of field T
1709 to match synth_mult argument.
1710 (NUM_ALG_HASH_ENTRIES): Make it bigger for 64-bit HOST_WIDE_INT.
1712 2006-06-08 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1715 * haifa-sched.c (unlink_other_notes, unlink_line_notes): Update basic
1718 2006-06-08 Richard Guenther <rguenther@suse.de>
1721 * fold-const.c (negate_expr_p): We can negate BIT_NOT_EXPR
1722 only, if overflow is defined and not trapping.
1723 (negate_expr): Likewise.
1725 2006-06-07 Zdenek Dvorak <dvorakz@suse.cz>
1727 PR tree-optimization/27872
1728 * tree-ssa-loop-manip.c (tree_unroll_loop): Set EDGE_IRREDUCIBLE_LOOP
1729 flag on the new exit edge of the unrolled loop.
1731 2006-06-07 Zdenek Dvorak <dvorakz@suse.cz>
1733 PR rtl-optimization/26449
1734 * loop-invariant.c (move_invariant_reg): Fail if force_operand fails.
1736 2006-06-07 Andrew MacLeod <amacleod@redhat.com>
1739 * tree-dfa.c (referenced_vars_dup_list): New. List of duplicate
1740 referenced_variables with matching DECL_UID's.
1741 (find_referenced_vars): Make sure duplicate list is empty to start.
1742 (referenced_var_p): Remove.
1743 (referenced_var_check_and_insert): Renamed from referenced_var_insert.
1744 Check if var is in the list, and add if needed. Update the duplicate
1745 list if a different var is in the list with the same DECL_UID.
1746 (add_referenced_var): Call routine to check and insert.
1747 * tree-ssa.c (delete_tree_ssa): Clear var_ann's on duplicates.
1748 * tree-flow.h (referenced_vars_dup_list): External declaration.
1750 2006-06-07 Fred Fish <fnf@specifix.com>
1752 * config/mips/t-elf (MULTILIB_MATCHES): Combine two entries
1755 2006-06-07 Paolo Bonzini <bonzini@gnu.org>
1758 * reg-stack.c (subst_stack_regs_pat): Reorder resetting of
1759 the imaginary and real parts of a clobbered register.
1760 Emit insn to set the imaginary part.
1762 2006-06-06 Peter Lemieszewski <lemie@us.ibm.com>
1764 * config/s390/t-tpf (LIB2ADDEH): Include unwind-dw2-fde-glibc.c
1765 in lieu of unwind-dw2-fde.c.
1767 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1769 * config/i386/mingw32.h (GOMP_SELF_SPECS): Define.
1771 2006-06-06 Ulrich Weigand <uweigand@de.ibm.com>
1774 * config/rs6000/altivec.md (UNSPEC_VSLW): Remove.
1775 ("altivec_vspltisw_v4sf", "altivec_vslw_v4sf"): Remove.
1776 ("mulv4sf3", "absv4sf3", "negv4sf3"): Adapt users to use
1777 V4SImode temporaries and operations instead.
1779 2006-06-06 Joseph S. Myers <joseph@codesourcery.com>
1781 * config/mips/t-linux64 (tp-bit.c): Append to tp-bit.c, not
1784 2006-06-06 Mike Stump <mrs@apple.com>
1786 * Makefile.in: Rename to htmldir to build_htmldir to avoid
1787 installing during build.
1789 2006-06-06 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1791 * params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): Change default
1793 * doc/invoke.texi (max-sched-extend-regions-iters): Document.
1794 * config/ia64/ia64.c (params.h): New header.
1795 (ia64_optimization_options): New function to adjust parameters.
1796 * config/ia64/ia64-protos.h (ia64_optimization_options): New prototype.
1797 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): New macro.
1798 * config/ia64/t-ia64 (ia64.o): Add dependence from params.h .
1800 2006-06-05 Kazu Hirata <kazu@codesourcery.com>
1802 * stor-layout.c (debug_rli): Fix a typo in a debug message.
1804 2006-06-05 Steve Ellcey <sje@cup.hp.com>
1807 * config/ia64/ia64.c (ia64_select_rtx_section): Check TARGET_NO_SDATA.
1809 2006-06-05 Dorit Nuzman <dorit@il.ibm.com>
1810 Victor Kaplansky <victork@il.ibm.com>
1812 PR tree-optimization/26360
1813 * tree-vectorizer.c (destroy_loop_vec_info): Remove (dead) pattern
1816 2006-06-04 Roger Sayle <roger@eyesopen.com>
1817 Andrew Pinski <pinskia@physics.uc.edu>
1820 * c-common.c (c_common_truthvalue_conversion): Explicitly check
1821 for LABEL_DECL before calling DECL_WEAK.
1824 * c-typeck.c (build_binary_op): Likewise, explicitly check for
1825 LABEL_DECL and PARM_DECL.
1827 2006-06-05 Joseph S. Myers <joseph@codesourcery.com>
1831 * c-decl.c (grokdeclarator): Disallow variably modified types at
1832 file scope. Avoid marking shared array type of constant size as
1835 2006-06-04 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1838 * c-common.c (fold_offsetof_1): Handle static members.
1840 2006-06-04 Eric Christopher <echristo@apple.com>
1842 * stor-layout.c (start_record_layout): Initialize remaining_in_alignment.
1843 (debug_rli): Output value for remaining_in_alignment.
1844 (update_alignment_for_field): Unconditionalize
1845 ms_bitfield_layout_p code. Handle non-bitfield fields. Remove
1846 extra alignment code.
1847 (place_field): Don't realign if ms_bitfield_layout_p. Unconditionalize
1848 ms_bitfield_layout_p code. Rewrite handling of structure fields.
1849 * tree.h (record_layout_info_s): Remove prev_packed.
1850 * doc/extend.texi (ms_struct): Add documentation of format.
1852 2006-06-04 Mark Shinwell <shinwell@codesourcery.com>
1854 * tree.h: Declare folding_initializer.
1855 * builtins.c (fold_builtin_constant_p): Give definite answer
1856 if folding inside an initializer.
1857 * fold-const.c: Define folding_initializer.
1858 (START_FOLD_INIT): Save and then set folding_initializer.
1859 (END_FOLD_INIT): Restore folding_initializer.
1861 2006-06-04 Richard Guenther <rguenther@suse.de>
1863 PR tree-optimization/27039
1864 * fold-const.c (fold_comparison): Handle pointer comparison
1865 again for all comparison codes. Compare offsets in signed
1867 (fold_binary): Move code from here.
1869 2006-06-03 Roger Sayle <roger@eyesopen.com>
1872 * config/i386/i386.c (construct_container): Split static issued_error
1873 flag into issued_sse_arg_error, issued_sse_ret_error and
1874 issued_x87_ret_error. Issue a daignostic if the x86-64 ABI
1875 requires the use of x87 registers and the user explicitly
1876 specified the -mno-80387 command line option.
1878 2006-06-02 Geoffrey Keating <geoffk@apple.com>
1880 * config/rs6000/host-darwin.c (sigaltstack): Protect prototype with
1881 HAVE_DECL_SIGALTSTACK.
1883 (segv_handler): Use MC_FLD.
1884 * configure.ac: Check for a sigaltstack declaration.
1885 Compute HAS_MCONTEXT_T_UNDERSCORES on Darwin.
1886 * configure: Regenerate.
1887 * config.in: Regenerate.
1889 2006-06-03 J"orn Rennecke <joern.rennecke@st.com>
1892 * Makefile.in (stmp-fixinc): Fix typo.
1894 2006-06-02 Roger Sayle <roger@eyesopen.com>
1896 * fold-const.c (fold_unary) <CONJ_EXPR>: Ensure folded expressions
1897 are type correct. Clean-up.
1898 <REALPART_EXPR>: Likewise. Optimize creal(~z) as creal(z).
1899 <IMAGPART_EXPR>: Likewise. Optimize cimag(~z) as -cimag(z).
1901 2006-06-01 DJ Delorie <dj@redhat.com>
1903 * config/v850/v850.h (ASM_OUTPUT_ADDR_DIFF_ELT): Disabled the
1904 shift, as we've disabled the "switch" insn that needs it.
1906 2006-06-01 Per Bothner <bothner@bothner.com>
1908 Suppress extra '#1 <built-in> or '#1 <command line>' on -dD output.
1909 * c-opts.c (finish_options): Use internal line 0 for <command-line>.
1910 * c-ppoutput.c (cb_define): Don't increment line 0.
1912 2006-06-01 Pete Steinmetz <steinmtz@us.ibm.com>
1914 * doc/invoke.texi: Add cpu_type power6.
1915 * config.gcc: Add cpu_type power6.
1916 * config/rs6000/rs6000.c (rs6000_override_options): Alias power6
1917 to power5+ with Altivec.
1918 * config/rs6000/aix52.h (ASM_CPU_SPEC): Add power6.
1919 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add power6.
1921 2006-05-30 Anatoly Sokolov <aesok@post.ru>
1923 * config/avr/avr.h (SET_ASM_OP): Define.
1925 2006-06-01 Kazu Hirata <kazu@codesourcery.com>
1927 * config/bfin/bfin.c: Fix comment typos.
1929 2006-06-01 Paolo Bonzini <bonzini@gnu.org>
1932 * doc/install.texi: Document --enable-bootstrap and
1933 --disable-bootstrap.
1935 2006-06-01 Paolo Bonzini <bonzini@gnu.org>
1937 * doc/install.texi: Document that InfoZIP can replace jar.
1939 2006-05-31 Roger Sayle <roger@eyesopen.com>
1941 * config/i386/i386.c (ix86_expand_fp_absneg_operator): When SSE
1942 isn't available, directly generate the simpler x87 patterns without
1943 the (use (const_int 0)).
1944 * config/i386/i386.md (*negsf2_1): Enable pre-reload if the SSE
1945 implementation isn't available.
1946 (*negdf2_1): Likewise.
1947 (*negxf2_1): XF mode negation is always done using the x87.
1948 (*abssf2_1, *absdf2_1, *absxf2_1): Likewise^3 for fabs.
1950 2006-05-31 Roger Sayle <roger@eyesopen.com>
1952 * builtins.c (fold_builtin_cabs): Delete prototype. Require an
1953 additional FNDECL argument. Optimize cabs(-z) and cabs(~z) as
1955 (fold_builtin_decl) <BUILT_IN_CABS>: Update fold_builtin_cabs call.
1957 2006-05-31 Jie Zhang <jie.zhang@analog.com>
1959 * config/bfin/bfin-protos.h (bfin_hardware_loop): Declare.
1960 * config/bfin/bfin.c (basic-block.h): Include.
1961 (struct machine_function): New.
1962 (bfin_init_machine_status): New.
1963 (override_options): Initialize init_machine_status.
1964 (bfin_hardware_loop): New.
1965 (MAX_LOOP_DEPTH, MAX_LOOP_LENGTH): Define.
1966 (DEF_VEC_P (loop_info)): New.
1967 (DEF_VEC_ALLOC_P (loop_info,heap)): New.
1968 (struct loop_info): New.
1969 (loop_info): New typedef.
1970 (struct loop_work): New.
1971 (loop_work): New typedef.
1972 (DEF_VEC_O (loop_work)): New.
1973 (DEF_VEC_ALLOC_O (loop_work,heap)): New.
1974 (bfin_dump_loops): New.
1975 (bfin_bb_in_loop): New.
1976 (bfin_scan_loop): New.
1977 (bfin_optimize_loop): New.
1978 (bfin_reorg_loops): New.
1979 (bfin_reorg): Use bfin_reorg_loops.
1980 * config/bfin/bfin.h (FIRST_PSEUDO_REGISTER): Adjust for adding
1982 (I_REGNO_P): Simplify.
1983 (DP_REGNO_P, DPREG_P): New macros.
1984 (REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
1985 REG_ALLOC_ORDER): Add LT0, LT1, LC0, LC1, LB0, LB1.
1986 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
1987 Add LT_REGS, LC_REGS, LB_REGS.
1988 (REG_CLASS_FROM_LETTER): Add 't' for LT_REGS, 'k' for LC_REGS,
1990 (REGNO_REG_CLASS): Deal with loop registers.
1991 * config/bfin/bfin.md: Add comment for 't', 'k', 'l' constraint
1993 (REG_LT0, REG_LT1, REG_LC0, REG_LC1, REG_LB0, REG_LB1):
1994 New constants for loop registers.
1995 (UNSPEC_LSETUP_END): New.
1996 (seq_insns): New define_attr. Set it for appropriate insns.
1997 (movsi_insn): Add alternatives for move from/to
1998 loop count registers.
1999 (doloop_end): New define_expand.
2000 (loop_end): New define_insn.
2001 (define_split for bad doloop_end): New.
2002 (lsetup_with_autoinit): New define_insn.
2003 (lsetup_without_autoinit): New define_insn.
2004 (rep_movsi, rep_movhi): Clobber LT1, LC1, LB1.
2005 * config/bfin/predicates.md (lc_register_operand): New.
2006 (lt_register_operand): New.
2007 (lb_register_operand): New.
2008 (nondp_register_operand): New.
2009 (nondp_reg_or_memory_operand): New.
2010 * doc/md.texi: Document Blackfin new 't', 'k', 'l' constraint letters.
2012 2006-05-31 Jie Zhang <jie.zhang@analog.com>
2014 * config/bfin/bfin.c (bfin_delegitimize_address): New.
2015 (TARGET_DELEGITIMIZE_ADDRESS): Define.
2017 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
2019 * Makefile.in (CATALOGS): Add po/ prefix.
2020 * configure: Regenerated.
2022 2006-05-31 Richard Earnshaw <richard.earnshaw@arm.com>
2025 * arm.c (arm_print_operand case 'S'): Validate that the operand is
2026 a shift operand before calling shift_op. Avoid redundant call of
2029 2006-05-30 Naveen.H.S <naveenh@kpitcummins.com>
2030 DJ Delorie <dj@redhat.com>
2032 * config/m32c/m32c.c (m32c_expand_insv): Check that the value
2033 we're inserting is a singlt-bit constant.
2035 2006-05-30 Roger Sayle <roger@eyesopen.com>
2037 * simplify-rtx.c (simplify_binary_operation_1) <LSHIFTRT>: Cast
2038 width to HOST_WIDE_INT to avoid comparison warnings on some targets.
2040 2006-05-30 Roger Sayle <roger@eyesopen.com>
2042 PR tree-optimization/23452
2043 * fold-const.c (fold_mult_zconjz): New subroutine of fold_binary,
2044 to optimize z * conj(z) as realpart(z)^2 + imagpart(z)^2.
2045 (fold_binary) <MULT_EXPR>: Call fold_mult_zconjz for integral
2046 complex values and with -ffast-math for FP complex values.
2048 2006-05-30 Kazu Hirata <kazu@codesourcery.com>
2050 * c-common.h: Remove the prototype for yyparse.
2051 * rtl.h: Remove the prototype for init_loop.
2053 2006-05-30 Andreas Krebbel <krebbel1@de.ibm.com>
2055 * cse.c (validate_canon_reg, cse_insn): Don't change insns without
2058 2006-05-30 Roger Sayle <roger@eyesopen.com>
2060 * simplify-rtx.c (simplify_binary_operation): Unfactor the shift
2062 <LSHIFTRT>: Optimize (lshiftrt (clz X) C) as (eq X 0) where C is
2063 log2(GET_MODE_BITSIZE(X)) on targets with the appropriate semantics.
2065 2006-05-30 Dirk Mueller <dmueller@suse.de>
2068 * c-common.c (convert_and_check): Only track TREE_CONSTANT_OVERFLOW
2069 for CONSTANT_CLASS_P expresisons.
2071 2006-05-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2074 * c-typeck.c (c_expr_sizeof_type): Handle invalid types.
2076 2006-05-30 Zdenek Dvorak <dvorakz@suse.cz>
2078 PR tree-optimization/27779
2079 * tree-data-ref.c (analyze_siv_subscript_cst_affine): Use
2080 initial_condition instead of CHREC_LEFT.
2082 2006-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
2084 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Fix type of begin_label.
2085 * config/m32r/initfini.c (__do_global_dtors, __do_global_ctors):
2086 Make prototypes ISO C90.
2088 2006-05-30 Mircea Namolaru <namolaru@il.ibm.com>
2089 Leehod Baruch <leehod.baruch@weizmann.ac.il>
2091 * see.c (see_analyze_one_def): Correct check.
2092 (see_get_extension_data): Check if extension is parallel.
2093 (see_get_extension_reg): Likewise.
2095 2006-05-30 Uros Bizjak <uros@kss-loka.si>
2098 * config/i386/i386.c (ix86_expand_int_vcond): Force cop0
2099 into register for (code == GTU).
2101 2006-05-29 Roger Sayle <roger@eyesopen.com>
2103 PR tree-optimization/24964
2104 * simplify-rtx.c (simplify_binary_operation_1): Add function comment.
2105 <MULT>: Minor clean-up. Don't convert x*-1.0 into -x if we honor
2106 signaling NaNs. Optimize -x*-x as x*x for all float modes, and
2107 abs(x)*abs(x) as x*x for scalar floating point modes.
2109 2006-05-29 Sebastian Pop <pop@cri.ensmp.fr>
2112 * lambda-code.c (perfect_nestify): Don't copy statements
2113 in the inner loop: move them to the inner loop header.
2115 2006-05-29 Diego Novillo <dnovillo@redhat.com>
2118 * c-tree.texi: Document OpenMP directives and clauses.
2120 2006-05-29 Kazu Hirata <kazu@codesourcery.com>
2122 * varasm.c (globalize_decl): Fix indentation.
2124 2006-05-29 Diego Novillo <dnovillo@redhat.com>
2127 * doc/passes.texi: Add documentation for pass_vrp, pass_ipa_pta,
2128 pass_fre, pass_store_ccp, pass_copy_prop,
2129 pass_store_copy_prop, pass_merge_phi, pass_nrv,
2130 pass_return_slot, pass_object_size, pass_lim,
2131 pass_linear_transform, pass_empty_loop, pass_complete_unroll,
2132 pass_loop_prefetch and pass_stdarg.
2134 2005-05-29 Bernd Schmidt <bernd.schmidt@analog.com>
2136 * config/bfin/bfin.opt (mfdpic): New option.
2137 * config/bfin/t-bfin-elf (EXTRA_PARTS): Add crtbeginS.o and crtendS.o.
2138 (EXTRA_MULTILIB_PARTS): Likewise.
2139 (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS): Use -fpic.
2140 (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Build one extra -mfdpic
2142 * config/bfin/elf.h (STARTFILE_SPEC): Don't link in crt0.o if -shared.
2143 (CRT_CALL_STATIC_FUNCTION): New.
2144 * config/bfin/uclinux.h (STARTFILE_SPEC): Don't link in crt0.o if
2146 (CRT_CALL_STATIC_FUNCTION): New.
2147 * config/bfin/bfin.c (legitimize_pic_address): Now static. Handle
2149 (n_pregs_to_save): PIC register doesn't need to be saved with FD-PIC.
2150 (print_operand): Handle UNSPEC_MOVE_FDPIC and UNSPEC_FUNCDESC_GOT17M4.
2151 (initialize_trampoline): Changed to handle FD-PIC code generation.
2152 (expand_move): If TARGET_FDPIC, use emit_pic_move as needed.
2153 (bfin_expand_call): Generate FD-PIC calls if TARGET_FDPIC.
2154 (override_options): Disallow -mid-shared-library -mfdpic combination.
2155 Can't do unaligned ops if FD-PIC.
2156 Turn off flag_pic if trying to generate non-id-shared-library
2157 non-fdpic code, since it's not supported.
2158 (bfin_assemble_integer): New function.
2159 (TARGET_ASM_INTEGER): Define.
2160 * config/bfin/crti.s (__init, __fini): Save P3 on the stack if
2162 * config/bfin/crtn.s: Restore them.
2163 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __BFIN_FDPIC__
2165 (DRIVER_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
2166 LINK_GCC_C_SEQUENCE_SPEC, ASM_SPEC, LINK_SPEC): New macros.
2167 (FDPIC_FPTR_REGNO, FDPIC_REGNO, OUR_FDPIC_REG): New macros.
2168 (TRAMPOLINE_SIZE, TRAMPOLINE_TEMPLATE): Adjust for FD-PIC.
2169 (CONDITIONAL_REGISTER_USAGE): If TARGET_FDPIC, FDPIC_REGNO is
2171 (enum reg_class, REG_CLASS_CONTENTS, REG_CLASS_NAMES): Add
2172 FDPIC_REGS and FDPIC_FPTR_REGS.
2173 (REG_CLASS_FROM_LETTER): Use 'Z' and 'Y' for them.
2174 * config/bfin/bfin.md (UNSPEC_MOVE_FDPIC, UNSPEC_FUNCDESC_GOT17M4,
2175 UNSPEC_VOLATILE_LOAD_FUNCDESC): New constants.
2176 (load_funcdescsi): New pattern.
2177 (call_symbol_fdpic, sibcall_symbol_fdpic, call_value_symbol_fdpic,
2178 sibcall_value_symbol_fdpic, call_insn_fdpic, sibcall_insn_fdpic,
2179 call_value_insn_fdpic, sibcall_value_insn_fdpic): New patterns.
2181 2006-05-29 Kazu Hirata <kazu@codesourcery.com>
2183 * gcse.c, rtlanal.c: Remove obsolete comments associated with
2186 * config/bfin/bfin.h (PARM_BOUNDRY, STACK_BOUNDRY): Remove.
2188 * tree-flow.h: Remove the prototype for add_type_alias.
2189 * tree-ssa-alias.c (add_type_alias): Remove.
2191 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
2193 * cfgcleanup.c, cfgexpand.c, cgraphunit.c, config/arm/arm.c,
2194 config/fr30/fr30.md, config/i386/i386-interix.h,
2195 config/i386/i386.c, config/i386/i386.md, config/sh/superh.h,
2196 config/sh/superh64.h, config/v850/v850.c, df-core.c,
2197 df-problems.c, df.h, except.c, final.c, haifa-sched.c,
2198 lambda-code.c, libgcc2.h, omp-low.c, optabs.c, predict.c,
2199 reload.c, tree-flow.h, tree-outof-ssa.c, tree-ssa-dce.c,
2200 tree-ssa-pre.c, tree-vect-transform.c: Fix comment typos.
2201 Follow spelling conventions.
2202 * doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix typos.
2203 Follow spelling conventions.
2205 2006-05-27 Richard Guenther <rguenther@suse.de>
2208 * fold-const.c (fold_plusminus_mult_expr): Use fold_convert
2209 to produce a constant of value 1 of generic type.
2211 2006-05-27 Dirk Mueller <dmueller@suse.de>
2213 * cgraphunit.c (decide_is_function_needed): Fix wrong
2216 2006-05-26 Ulrich Weigand <uweigand@de.ibm.com>
2218 PR rtl-optimization/27661
2219 * reload.c (find_reloads): When reloading a VOIDmode constant
2220 as address due to an EXTRA_MEMORY_CONSTRAINT or 'o' constraint,
2221 use Pmode as mode of the reload register.
2223 2006-05-26 Eric Botcazou <ebotcazou@adacore.com>
2225 * doc/invoke.texi (Optimize Options): Document that -funit-at-a-time
2226 is enabled at -O and above.
2228 2006-05-26 Steven Bosscher <steven@gcc.gnu.org>
2231 * config/alpha/alpha.c (alpha_does_function_need_gp): Skip jump
2234 2006-05-25 Mark Mitchell <mark@codesourcery.com>
2237 * gimplify.c (gimplify_decl_expr): Do not call gimple_add_tmp_var
2238 for anonymous variables explicitly declared by front ends.
2240 2006-05-25 Eric Botcazou <ebotcazou@adacore.com>
2242 * tree-ssa-structalias.h (PTR_IS_REF_ALL): New macro.
2243 (struct alias_info): Add new field ref_all_symbol_mem_tag.
2244 * tree-ssa-alias.c (compute_may_aliases): If the program contains
2245 ref-all pointers, run a finalization pass for them.
2246 (compute_flow_insensitive_aliasing): Skip ref-all pointers.
2247 (finalize_ref_all_pointers): New function.
2248 (is_escape_site): Return ESCAPE_BAD_CAST for conversion from a
2249 regular pointer type to a ref-all pointer type.
2250 (get_tmt_for): Return the special memory tag for ref-all pointers.
2252 2006-05-25 Richard Guenther <rguenther@suse.de>
2255 * fold-const.c (fold_binary): Do not look at the stripped
2256 op0 for (a OP c1) OP c2 to a OP (c1+c2) shift optimization.
2258 2006-05-25 Eric Botcazou <ebotcazou@adacore.com>
2260 * tree-vrp.c (extract_range_from_assert): Set the range to VARYING
2261 for LT and GT if the computed range is effectively empty.
2263 2006-05-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2266 * pa/pa-modes.def: Use mips_single_format, mips_double_format and
2267 mips_quad_format formats instead of ieee_single_format,
2268 ieee_double_format and ieee_quad_format formats, respectively.
2270 2006-05-24 Zdenek Dvorak <dvorakz@suse.cz>
2272 PR tree-optimization/27639
2273 PR tree-optimization/26719
2274 * tree-vrp.c (adjust_range_with_scev): Use scev_direction and adjust
2275 call to scev_probably_wraps_p.
2276 * tree-ssa-loop-niter.c (compare_trees, convert_step_widening,
2277 used_in_pointer_arithmetic_p, convert_step): Removed.
2278 (nowrap_type_p): New function.
2279 (scev_probably_wraps_p): Rewritten.
2280 * tree-scalar-evolution.c (instantiate_parameters_1): Do not call
2281 chrec_convert if chrec_convert_aggressive might have been used.
2282 * tree-chrec.c (convert_affine_scev, chrec_convert_1,
2283 scev_direction): New functions.
2284 (chrec_convert): Changed to a wrapper over chrec_convert_1.
2285 * tree-ssa-loop-ivopts.c (idx_find_step): Use convert_affine_scev
2286 instead of convert_step.
2287 * tree-flow.h (scev_probably_wraps_p): Declaration changed.
2288 (convert_step): Declaration removed.
2289 (convert_affine_scev, nowrap_type_p, scev_direction): Declare.
2291 2006-05-23 Kenneth Zadeck <zadeck@naturalbridge.com>
2293 * df-core.c: Added to header comments.
2294 * df.h (df_ru_bb_info, df_rd_bb_info, df_lr_bb_info,
2295 df_ur_bb_info, df_urec_bb_info): Added comments.
2296 * df-problems (df_ref_bitmap, ru, rd, lr, ur,
2297 urec, ri problems): Fixed header comments.
2298 (df_ru_transfer_function): Fixed in-out set dyslexia when copying
2299 code from df_rd_transfer_function.
2301 2006-05-23 Richard Sandiford <richard@codesourcery.com>
2303 * libgcc2.c (LIBGCC2_MAX_UNITS_PER_WORD): New macro.
2304 (LIBGCC2_UNITS_PER_WORD): Use LIBGCC2_MAX_UNITS_PER_WORD rather than
2305 MIN_UNITS_PER_WORD to set the default. Also use it in the guard.
2307 2006-05-23 Joseph Myers <joseph@codesourcery.com>
2309 * expr.c (undefined_operand_subword_p): New.
2310 (emit_move_multi_word): Do not generate move from undefined bits
2311 of a paradoxical subreg.
2313 2006-05-23 Richard Sandiford <richard@codesourcery.com>
2315 PR rtl-optimization/27736
2316 * combine.c (replaced_rhs_value): New variable.
2317 (combine_instructions): Set it.
2318 (distribute_notes): When distributing a note in replaced_rhs_insn,
2319 check whether the value was used in replaced_rhs_value.
2321 2006-05-23 Andrew MacLeod <amacleod@redhat.com>
2324 * tree-ssa-loop-im.c (determine_invariantness_stmt): Use
2325 add_referenced_var instead of add_referenced_tmp_var.
2326 * tree-complex.c (create_one_component_var): Use add_referenced_var.
2327 * tree-ssa-loop-manip.c (create_iv, tree_unroll_loop): Use
2329 * tree-tailcall.c (adjust_accumulator_values, adjust_return_value,
2330 tree_optimize_tail_calls_1): Use add_referenced_var.
2331 * tree-ssa-loop-ivopts.c (create_new_iv): Use add_referenced_var.
2332 * tree-ssa-alias.c (create_memory_tag, create_global_var, create_sft):
2333 Use add_referenced_var.
2334 * tree-if-conv.c (ifc_temp_var): Use add_referenced_var.
2335 * gimplify.c (force_gimple_operand): Use add_referenced_var.
2336 * tree-ssa-phiopt.c (conditional_replacement, abs_replacement):
2337 Use add_referenced_var.
2338 * tree-dfa.c (struct walk_state): Remove.
2339 (find_referenced_vars): Remove walk state and vars_found hash table.
2340 (make_rename_temp): Use add_referenced_var.
2341 (find_vars_r): Pass less parameters to add_referenced_var.
2342 (referenced_var_p): New. Is var in referenced_var hash table.
2343 (referenced_var_insert): Assert var isn't already in hash table.
2344 (add_referenced_var): Don't need walk_state parameter. Add var if it
2345 isn't already in the hash table.
2346 (add_referenced_tmp_var): Remove.
2347 (find_new_referenced_vars_1): Use add_referenced_var.
2348 * tree-ssa-pre.c (create_expression_by_pieces,
2349 insert_into_preds_of_block, insert_extra_phis, realify_fake_stores):
2350 Use add_referenced_var.
2351 * tree-vect-patterns.c (vect_pattern_recog_1): Use add_referenced_var.
2352 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
2353 lambda_loopnest_to_gcc_loopnest, perfect_nestify): Use
2355 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
2356 vect_create_data_ref_ptr, vect_create_destination_var,
2357 vect_init_vector, vect_build_loop_niters,
2358 vect_generate_tmps_on_preheader, vect_update_ivs_after_vectorizer,
2359 vect_gen_niters_for_prolog_loop, vect_create_cond_for_align_checks):
2360 Use add_referenced_var.
2361 * tree-outof-ssa.c (create_temp): Use add_referenced_var.
2362 * tree-flow.h (add_referenced_tmp_var): Remove prototype
2363 (add_referenced_var): Add prototype.
2364 * tree-ssa-structalias.c (get_constraint_for,
2365 intra_create_variable_infos): Use add_referenced_var.
2367 2006-05-23 Alexandre Oliva <aoliva@redhat.com>
2369 * simplify-rtx.c (simplify_subreg): Adjust REG_OFFSET for
2370 big-endian paradoxical subregs.
2371 * var-tracking.c (struct micro_operation_def): Document that,
2372 for modify micro operations, insn is the subsequent instruction.
2373 (var_reg_delete_and_set, var_mem_delete_and_set): Split into...
2374 (var_reg_set, var_mem_set): ... new functions.
2375 (add_stores): Record subsequent insn.
2376 (compute_bb_dataflow): Use new functions for MO_USE.
2377 (emit_notes_in_bb): Use new functions for MO_USE. Emit use
2378 notes after the insn, and modify notes before the insn known
2379 to be the subsequent one.
2380 (vt_initialize): Invert sorting of MO_CLOBBERs and MO_SETs.
2382 2006-05-23 Kazu Hirata <kazu@codesourcery.com>
2385 * config/i386/i386.c (ix86_expand_builtin): Use
2386 gen_sse3_monitor64 for TARGET_64BIT.
2388 2006-05-22 Kenneth Zadeck <zadeck@naturalbridge.com>
2390 PR rtl-optimization/26375
2391 PR rtl-optimization/26855
2392 * df-problems (df_ru_bb_local_compute_process_def): Removed update
2394 (df_ru_bb_local_compute): Reversed statements and removed bogus
2395 comment explaining why they should be in wrong order.
2396 (df_ru_dump, df_rd_dump): Enhanced debug info.
2397 * modulo-sched.c (sms_schedule, tree_opt_pass pass_sms): Enhanced
2399 * ddg.c (add_deps_for_def): Converted use of reaching defs to
2400 reaching uses and fixed space problem.
2402 2006-05-23 Jan Hubicka <jh@suse.cz>
2404 * cgraphunit.c (decide_is_function_needed): Also nested functions
2405 and functions declared inline can be optimized out at -O0.
2407 2006-05-22 Gerald Pfeifer <gerald@pfeifer.com>
2409 * doc/install.texi (Configuration): Remove reference to CrossGCC
2413 2006-05-22 Kazu Hirata <kazu@codesourcery.com>
2416 * config/i386/i386.c (ix86_expand_branch): Jump to simple if
2417 ix86_compare_emitted is non-NULL.
2419 2006-05-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2422 * stmt.c (expand_asm_operands): Skip asm statement with erroneous
2425 2006-05-22 Richard Sandiford <richard@codesourcery.com>
2427 PR rtl-optimization/25514
2428 * combine.c (replaced_rhs_insn): New variable.
2429 (combine_instructions): Set replaced_rhs_insn when trying to replace
2430 a SET_SRC with a REG_EQUAL note.
2431 (distribute_notes): Use replaced_rhs_insn when determining the live
2432 range of a REG_DEAD register.
2434 2006-18-05 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
2435 Anatoly Sokolov <aesok@post.ru>
2437 * config/avr/avr.c (avr_mcu_types): Add support for attiny261,
2438 attiny461, attiny861, attiny25, attiny45, attiny85, attiny24,
2439 attiny44, attiny84, at90pwm2, at90pwm3, atmega165p, atmega169p,
2440 atmega164p, atmega324p, atmega644p, atmega644, atmega329,
2441 atmega3290, atmega649, atmega6490, atmega406, atmega640,
2442 atmega1280, atmega1281, at90can32, at90can64, at90usb646,
2443 at90usb647, at90usb1286 and at90usb1287 devices.
2444 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
2445 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
2447 2006-05-22 Richard Sandiford <richard@codesourcery.com>
2449 * mklibgcc.in (lib2funcs): Remove _floatdidf from initial assignment.
2451 2006-05-22 Richard Guenther <rguenther@suse.de>
2454 2006-01-31 Richard Guenther <rguenther@suse.de>
2455 Paolo Bonzini <bonzini@gnu.org>
2457 * doc/install.texi (--disable-libgcc-math): Document.
2459 2006-05-22 Richard Guenther <rguenther@suse.de>
2462 2006-01-31 Richard Guenther <rguenther@suse.de>
2464 * doc/invoke.texi (-msselibm): Document.
2465 * target.h (expand_library_builtin): New target hook.
2466 * builtins.c (expand_builtin): Use expand_library_builtin.
2467 (default_expand_library_builtin): New function.
2468 * gcc.c (LINK_GCC_MATH_SPEC): Define.
2469 (LINK_COMMAND_SPEC): Handle %(link_gcc_math).
2470 (link_gcc_math_spec): Declare.
2471 (static_specs): Add link_gcc_math_spec.
2472 * expr.h (default_expand_library_builtin): Declare.
2473 * target-def.h (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
2474 (TARGET_INITIALIZER): Add TARGET_EXPAND_LIBRARY_BUILTIN.
2475 * config/i386/i386.h: Provide LINK_GCC_MATH_SPEC.
2476 * config/i386/i386.opt (msselibm): New target option.
2477 * config/i386/i386.c (ix86_builtin_function_variants): New array.
2478 (ix86_init_sse_abi_builtins): New function.
2479 (ix86_expand_library_builtin): Likewise.
2480 (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
2481 (override_options): Handle error conditions wrt -msselibm.
2482 (ix86_builtins): Add function codes for SSE2 ABI builtins.
2483 (ix86_init_builtins): Call ix86_init_sse_abi_builtins.
2484 * doc/extend.texi (__builtin_sse2_*): Document new target specific
2487 2006-05-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2490 * c-common.c (self_promoting_args_p): Skip erroneous args.
2493 * c-decl.c (finish_struct): Skip erroneous fields.
2495 2006-05-22 Nick Clifton <nickc@redhat.com>
2497 * config/cris/cris.opt (march): Remove VarExists attribute.
2498 (max-stackframe=): Likewise.
2500 2006-05-22 Kazu Hirata <kazu@codesourcery.com>
2502 * doc/rtl.texi: Fix a typo.
2503 * see.c: Fix comment typos.
2505 * tree-ssa-structalias.h (alias_info): Remove num_references.
2507 2006-05-21 Mike Stump <mrs@apple.com>
2509 * config/darwin-c.c (BAD): Conditionalize on OPT_Wpragmas.
2511 (darwin_pragma_options): Use BAD instead.
2512 (darwin_pragma_unused): Likewise.
2513 (darwin_pragma_ms_struct): Likewise.
2515 2006-05-21 David Edelsohn <edelsohn@gnu.org>
2517 * config/rs6000/rs6000.md (floatsitf2): Remove constraints.
2519 2006-05-21 Kazu Hirata <kazu@codesourcery.com>
2521 PR rtl-optimization/27671
2522 * simplify-rtx.c (simplify_relational_operation_1): Fix
2523 simplifications of (eq/ne (xor x y) y) and
2524 (eq/ne (xor x y) x).
2526 PR tree-optimization/26622.
2527 * fold-const.c (fold_ternary) <COND_EXPR>: Call fold_convert
2530 2006-05-21 Bernhard Fischer <aldot@gcc.gnu.org>
2532 * tree-cfg.c: Prune whitespace.
2533 (debug_tree_cfg): Point to correct header containing the
2536 2006-05-21 Bernhard Fischer <aldot@gcc.gnu.org>
2539 * cgraphunit.c (verify_cgraph_node): Typo in error message.
2541 2006-05-20 Andrew Pinski <pinskia@physics.uc.edu>
2544 * cgraphunit.c (cgraph_optimize): Don't run ipa passes if error
2545 or sorry count is non zero.
2547 2006-05-20 Andreas Schwab <schwab@suse.de>
2549 * config/pa/pa-linux.h (STRING_ASM_OP): Prepend and append a tab.
2551 2006-05-19 Daniel Berlin <dberlin@dberlin.org>
2552 Kenneth Zadeck <zadeck@naturalbridge.com>
2554 PR rtl-optimization/26855
2556 * df-scan.c (mw_reg_pool, mw_link_pool): New allocation pools for
2558 (df_scan_alloc): Added code to properly handle multiword hard
2559 registers and add all_blocks parameter.
2560 (df_scan_free_internal, df_insn_refs_delete, df_ref_record): Added
2561 code to properly handle multiword hard registers.
2562 (df_rescan_blocks): Added code to remove deleted blocks from
2564 (df_ref_create_structure, df_ref_record): Added code to properly
2566 (df_ref_record_1): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER
2567 and set DF_REF_PARTIAL.
2568 (df_defs_record): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER.
2569 (df_uses_record): Added DF_REF_PARTIAL for subreg.
2570 (df_scan_add_problem): Added flags parameter.
2571 (df_ref_create_structure): Changed switching structure.
2572 (df_bb_refs_record): Fixed case where duplicate artificial refs
2573 were created. Changed location of flags.
2574 (df_record_entry_block_defs): Added code to make stack pointer
2575 live in entry block. Refined cases where frame pointer is needed.
2576 Changed location of flags.
2577 (df_record_exit_block_uses, df_insn_refs_record): Changed location of flags.
2578 (df_set_state): Removed function.
2579 (df_grow_reg_info, df_reg_chain_unlink, df_ref_remove,
2580 df_insn_create_insn_record, df_insn_refs_delete,
2581 df_ref_create_structure): Formatting changes.
2582 * df-core.c (df_mvs_dump, df_set_flags, df_clear_flags,
2583 df_delete_basic_block): New function.
2584 (df_init): Changed location of flags.
2585 (df_add_problem): Added flags parameter and the way flags are
2587 (df_insn_uid_debug, df_ref_debug, debug_df_defno, debug_df_ref,
2588 debug_df_chain): Improved debugging output.
2589 (df_insn_debug, df_insn_uid_debug): Added multiword reg support.
2590 (df_refs_chain_dump): Removed df parameter.
2591 (df_iterative_dataflow): Added consistency check.
2592 (df_prune_to_subcfg): Made public.
2593 (df_analyze_problem): Added blocks_to_init parameter and made
2595 (df_ref_record, df_bb_refs_record, df_mark_reg,
2596 df_record_exit_block_uses): Whitespace changes.
2597 (df_dump): Whitespace changes.
2598 * df.h: Some reordering to remove forward references.
2599 (df_ref_flags.DF_REF_MW_HARDREG, DF_REF_PARTIAL,
2600 DF_REF_MUST_CLOBBER, DF_REF_MAY_CLOBBER): New fields.
2601 (df_ref_flags.DF_REF_CLOBBER): Deleted field.
2602 (dataflow.flags): New field.
2603 (df.flag): Deleted field.
2604 (df_alloc_function): Added additional bitmap parameter.
2605 (df_dependent_problem_function): New type.
2606 (df_problem.changeable_flags): New field.
2607 (df_ref_flags.DF_REF_DIES_AFTER_THIS_USE, DF_SCAN_INITIAL,
2608 DF_SCAN_GLOBAL, DF_SCAN_POST_ALLOC, df_state): Removed.
2609 (df_mw_hardreg): New struct.
2610 (DF_INSN_UID_MWS): New macro.
2611 (df_refs_chain_dump, df_ref_debug, df_chain_dump): Removed df
2613 (df_add_problem, df_ru_add_problem, df_rd_add_problem,
2614 df_lr_add_problem, df_ur_add_problem, df_urec_add_problem,
2615 df_ri_add_problem, df_scan_add_problem): Added flags parameter.
2616 (df_set_state): Removed function.
2617 (df_set_flags, df_clear_flags, df_delete_basic_block) New functions.
2618 * df-problems.c (df_chain_dump): Removed df parameter.
2619 (df_ru_alloc, df_rd_alloc, df_lr_alloc, df_ur_alloc,
2620 df_urec_alloc, df_chain_alloc, df_ri_alloc): Added all blocks
2622 (df_ru_alloc, df_rd_alloc): Now resets all blocks.
2623 (df_rd_bb_local_compute_process_def, df_ur_bb_local_compute,
2624 df_chain_create_bb, df_create_unused_note, df_ri_bb_compute):
2625 Split DF_REF_CLOBBER into DF_REF_MAY_CLOBBER and
2626 DF_REF_MUST_CLOBBER cases.
2627 (df_ru_bb_local_compute_process_def,
2628 df_rd_bb_local_compute_process_def, df_lr_bb_local_compute,
2629 df_lr_bb_local_compute, df_ur_bb_local_compute,
2630 df_chain_create_bb): Made subreg aware.
2631 (df_ru_bb_local_compute, df_rd_bb_local_compute,
2632 df_lr_bb_local_compute, df_lr_bb_local_compute,
2633 df_chain_create_bb): Cleanup to use proper macros.
2634 (df_ur_local_finalize, df_urec_local_finalize): Removed unnecessary
2635 code to fixup bitvectors.
2636 (df_ri_alloc): Cleared lifetime.
2637 (df_ignore_stack_reg, df_kill_notes, df_set_notes_for_mw,
2638 df_create_unused_note): New function.
2639 (df_ri_bb_compute, df_ri_compute): Added code to create/update
2640 REG_DEAD and REG_UNUSED notes as well as register information.
2641 (df_ru_dump, df_rd_dump, df_lr_dump, df_ur_dump, df_urec_dump,
2642 df_chains_dump): Fixed crash if problem was never run.
2643 (df_ru_add_problem, df_rd_add_problem, df_lr_add_problem,
2644 df_ur_add_problem, df_urec_add_problem, df_chain_add_problem,
2645 df_ri_add_problem): Processes flags in uniform manner.
2646 (df_ru_alloc, df_ru_local_compute, df_ru_confluence_n, df_ru_free,
2647 df_ru_dump, df_rd_local_compute, df_rd_confluence_n, df_rd_free,
2648 df_rd_dump, df_urec_free_bb_info): Formatting changes.
2649 (df_ru_free_bb_info, df_ru_bb_local_compute, df_ru_dump,
2650 df_rd_free_bb_info, df_rd_bb_local_compute_process_def,
2651 df_rd_bb_local_compute, df_rd_dump, df_lr_free_bb_info,
2652 df_lr_bb_local_compute, df_lr_local_compute, df_ur_free_bb_info,
2653 df_ur_dump, df_urec_free_bb_info, df_urec_dump,
2654 df_chain_create_bb, df_ri_bb_compute): Whitespace changes.
2655 * modulo-sched.c (sms_schedule): Added flag parameter to calls.
2656 * see.c (see_initialize_data): Ditto.
2657 * final.c (rest_of_clean_state) Added regstack_completed.
2658 * rtl.h (regstack_completed): Ditto.
2659 * reg-stack.c (regstack_completed): Ditto.
2661 2006-05-19 Mike Stump <mrs@apple.com>
2663 * c-tree.h (default_conversion): Remove.
2664 * c-common.h (default_conversion): Add.
2666 2006-05-19 Zdenek Dvorak <dvorakz@suse.cz>
2668 * tree-vrp.c (valid_value_p): New function.
2669 (adjust_range_with_scev): Fail if the value of bound is not
2672 2006-05-19 Richard Sandiford <richard@codesourcery.com>
2674 * config/mips/linux-unwind.h: Include <asm/unistd.h>
2675 (mips_fallback_frame_state): Use syscall numbers to determine
2676 the appropriate li instruction for the current ABI. Only use
2677 __NR_sigreturn for o32.
2679 2006-05-19 Nicolas Setton <setton@adacore.com>
2681 * langhooks.h (struct lang_hooks): Add dwarf_name language hook.
2682 * langhooks.c (lhd_dwarf_name): New function.
2683 * langhooks-def.h (lhd_dwarf_name): Declare.
2684 (LANG_HOOKS_DWARF_NAME): New macro, defaults to lhd_dwarf_name.
2685 * dwarf2out.c (dwarf2_name): Use the dwarf_name language hook.
2686 * ada/misc.c (gnat_dwarf_name): New function.
2687 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
2689 2006-05-19 Richard Sandiford <richard@codesourcery.com>
2691 * libgcc2.c (MIN_UNITS_PER_WORD): Move default definition from
2693 (LIBGCC2_UNITS_PER_WORD): Provide default definition, using old
2694 MIN_UNITS_PER_WORD logic from libgcc2.h. Do nothing if
2695 LIBGCC2_UNITS_PER_WORD > MIN_UNITS_PER_WORD.
2696 * libgcc2.h (MIN_UNITS_PER_WORD): Remove definition from here.
2697 Use LIBGCC2_UNITS_PER_WORD rather than MIN_UNITS_PER_WORD to
2698 determine the size of Wtype, etc.
2699 * mklibgcc.in (LIB2_SIDITI_CONV_FUNCS): New argument.
2700 (swfloatfuncs): New variable.
2701 (dwfloatfuncs): Likewise.
2702 (lib2funcs): Remove floating-point conversion functions from
2703 initial assignment. Use LIB2_SIDITI_CONV_FUNCS to determine
2704 the set of conversion routines needed. Allow entries to specify
2705 an object name, filename and word size. Update users accordingly.
2706 * Makefile.in (libgcc.mk): Pass LIB2_SIDITI_CONV_FUNCS.
2707 * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Define.
2711 2006-02-08 Roger Sayle <roger@eyesopen.com>
2714 * config/fixtfdi.c: New libgcc source file.
2715 * config/fixunstfdi.c: New source file.
2716 * config/floatditf.c: New source file.
2717 * config/floatunditf.c: New souce file.
2718 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Include the new source
2719 files above instead of config/mips/_tilib.c.
2720 * config/mips/t-linux64 (LIB2FUNCS_EXTRA): Likewise.
2722 2006-05-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2724 * pa/t-hpux-shlib (SHLIB_LINK): Remove `-lc'.
2725 * pa/pa-hpux11.h (LIB_SPEC): Update comment.
2727 2006-05-18 Mike Stump <mrs@apple.com>
2729 Fix up vla, vm and [*] sematics.
2735 * c-tree.h (struct c_arg_info): Add had_vla_unspec.
2736 (c_vla_unspec_p): Add.
2737 (c_vla_type_p): Add.
2738 * c-decl.c (struct c_scope): Add had_vla_unspec.
2739 (build_array_declarator): Add support for [*].
2740 (grokdeclarator): Likewise.
2741 (grokparms): Likewise.
2742 (get_parm_info): Likewise.
2743 * c-objc-common.c (c_vla_unspec_p): Likewise.
2744 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Likewise.
2745 * c-parser.c (c_parser_typeof_specifier): Evaluate arguments to
2746 typeof when argument is a variably modified type not inside sizeof or alignof.
2747 (c_parser_direct_declarator_inner): Propagate errors.
2748 (c_parser_sizeof_expression): Add support for [*].
2749 (c_parser_parms_declarator): Initialize had_vla_unspec.
2750 (c_parser_parms_list_declarator): Likewise.
2751 * c-typeck.c (c_vla_type_p): Add.
2752 (composite_type): Add support for vla compositing.
2753 (comptypes_internal): Add support for vla compatibility.
2754 (c_expr_sizeof_expr): Evaluate vla arguments.
2755 * tree.c (variably_modified_type_p): Update comment for [*].
2757 2006-05-18 Michael Matz <matz@suse.de>
2760 * config.host: Make assignments to host_xmake_file cumulative.
2761 * config.host (*-darwin*): Test $host, not $target.
2763 2006-05-12 Stuart Hastings <stuart@apple.com>
2765 * config/i386/i386.opt (-mstackrealign): New flag.
2766 * config/i386/i386.c (force_align_arg_pointer): New attribute.
2767 (ix86_handle_cconv_attribute): Emit error when
2768 force_align_arg_pointer attribute collides with too many regparms.
2769 (ix86_function_regparm): Limit regparms when used with
2770 force_align_arg_pointer attribute. (ix86_internal_arg_pointer):
2771 Support stack-realigning prologue in non-main functions. Emit
2772 warning for nested functions under -mstackrealign, emit error for
2773 nested functions with force_align_arg_pointer attribute.
2774 * doc/extend.texi (force_align_arg_pointer): Document it.
2775 * doc/invoke.texi (-mstackrealign): Document it.
2777 2006-05-17 Kazu Hirata <kazu@codesourcery.com>
2779 PR rtl-optimization/27477
2780 * combine.c (try_combine): Don't split a parallel consisting
2781 of two sets into two individual sets if both sets reference
2784 2006-05-17 H.J. Lu <hongjiu.lu@intel.com>
2786 * config/arm/arm.opt (target_fpe_name): Remove VarExists.
2787 * config/rs6000/rs6000.opt (TARGET_NO_FP_IN_TOC): Likewise.
2789 * doc/options.texi (VarExists): Updated.
2791 2006-05-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2793 * unwind-dw2.c: Add declarations for uw_update_context and
2795 * pa/hpux-unwind.h (pa_fallback_frame_state): When an export stub is
2796 detected, advance frame state and context once to skip over stub.
2798 2006-05-17 Sebastian Pop <pop@cri.ensmp.fr>
2802 * tree-loop-linear.c (linear_transform_loops): Don't test perfect_nest_p.
2803 Call rewrite_into_loop_closed_ssa only when something changed.
2804 * lambda.h (gcc_loopnest_to_lambda_loopnest): Update declaration.
2805 * lambda-code.c (can_convert_to_perfect_nest): Declared.
2806 (gcc_loopnest_to_lambda_loopnest): Removed need_perfect_nest parameter.
2807 Test for perfect_nest_p here. Fix formating.
2808 (replace_uses_equiv_to_x_with_y): Fix formating.
2809 (stmt_uses_op): Removed.
2810 (can_convert_to_perfect_nest): Removed loopivs parameter.
2811 Complete the test by checking the scalar dependences.
2812 (perfect_nestify): Remove the test for can_convert_to_perfect_nest.
2815 2005-05-17 Bernd Schmidt <bernd.schmidt@analog.com>
2818 From Dan Kegel <dank@kegel.com>:
2819 * Makefile.in: Strip "dir/../" combinations from SYSTEM_INCLUDE_DIR.
2821 2006-05-17 Eric Botcazou <ebotcazou@adacore.com>
2823 * tree.c (variably_modified_type_p) <ARRAY_TYPE>: Return true
2824 if the element type is variably modified without recursing.
2826 2006-05-17 Sebastian Pop <pop@cri.ensmp.fr>
2829 * tree-loop-linear.c (try_interchange_loops): Test for
2830 no data dependences.
2832 2006-05-17 Zdenek Dvorak <dvorakz@suse.cz>
2834 PR tree-optimization/27548
2835 * tree-scalar-evolution.c (scev_const_prop): Do not prolong life
2836 range of ssa names that appear on abnormal edges.
2837 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Export.
2838 * tree-flow.h (contains_abnormal_ssa_name_p): Declare.
2840 2005-05-17 Bernd Schmidt <bernd.schmidt@analog.com>
2843 * expr.c (safe_from_p): Handle CONSTRUCTOR again.
2845 2006-05-17 Jakub Jelinek <jakub@redhat.com>
2848 * tree.h (OMP_PARALLEL_COMBINED): Define.
2849 * gimplify.c (struct gimplify_omp_ctx): Add is_combined_parallel field.
2850 (new_omp_context): Add is_combined_parallel argument.
2851 (gimplify_scan_omp_clauses): Add in_combined_parallel argument, adjust
2852 new_omp_context caller.
2853 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
2854 Adjust gimplify_scan_omp_clauses callers.
2855 (omp_is_private): Issue errors if iteration variable is firstprivate
2856 or reduction in the current context.
2857 * c-parser.c (c_parser_omp_parallel): Set OMP_PARALLEL_COMBINED
2858 on combined parallel workshare constructs.
2860 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
2862 * Makefile.in (GCC_OBJS): Replace options.o with gcc-options.o.
2863 (gcc-options.o): New rule.
2865 * optc-gen.awk: Protect variables for gcc-options.o with
2866 #ifdef GCC_DRIVER/#endif.
2868 2006-05-16 Daniel Berlin <dberlin@dberlin.org>
2870 Fix PR tree-optimization/27373
2871 * tree-ssa-forwprop.c: (forward_propagate_addr_expr_1): Add argument.
2872 (forward_propagate_addr_expr): Update call.
2874 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
2876 * doc/options.texi: Move the Negative option.
2878 2006-05-16 Richard Guenther <rguenther@suse.de>
2880 PR tree-optimization/22303
2881 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle reads
2883 (evaluate_stmt): Fall back to fold_const_aggregate_ref, if
2884 ccp_fold did not simplify the statement.
2886 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
2889 * Makefile.in (GCC_OBJS): New.
2890 (OBJS-common): Add opts-common.o.
2891 (xgcc$(exeext)): Replace gcc.o with $(GCC_OBJS).
2892 (cpp$(exeext)): Likewise.
2893 (gcc.o): Also depend on opts.h.
2894 (opts-common.o): New.
2896 * common.opt (gcoff): Add Negative(gdwarf-2).
2897 (gdwarf-2): Add Negative(gstabs).
2898 (gstabs): Add Negative(gstabs+).
2899 (gstabs+): Add Negative(gvms).
2900 (gvms): Add Negative(gxcoff).
2901 (gxcoff): Add Negative(gxcoff+).
2902 (gxcoff+): Add Negative(gcoff).
2903 * config/i386/i386.opt (m32): Add Negative(m64).
2904 (m64): Add Negative(m32).
2906 * doc/options.texi: Document the Negative option.
2908 * gcc.c: Include "opts.h".
2909 (main): Call prune_options after expandargv.
2911 * optc-gen.awk: Generate common declarations for all flag
2912 variables in options.c. Output the neg_index field.
2914 * opts.c (find_opt): Moved to ...
2915 * opts-common.c: Here. New file.
2917 * opts.h (cl_option): Add a neg_index field.
2919 (prune_options): Likewise.
2921 2006-05-16 Jakub Jelinek <jakub@redhat.com>
2924 * omp-low.c (expand_omp_parallel): Don't assert
2925 .OMP_DATA_I = &.OMP_DATA_O is the first statement in the block,
2926 instead search for it.
2929 * gimplify.c (gimplify_omp_for): Remove assertion that iteration var
2932 2006-05-16 Andreas Schwab <schwab@suse.de>
2934 * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Add missing @end
2937 2006-05-15 Roger Sayle <roger@eyesopen.com>
2940 * config/i386/i386.c (legitimate_constant_p) <CONST_DOUBLE>: TImode
2941 integer constants other than zero are only legitimate on TARGET_64BIT.
2942 <CONST_VECTOR> Only zero vectors are legitimate.
2943 (ix86_cannot_force_const_mem): Integral and vector constants can
2944 always be put in the constant pool.
2946 2006-05-16 DJ Delorie <dj@redhat.com>
2948 * crtstuff.c (__dso_handle): Set section from
2949 TARGET_LBIGCC_SDATA_SECTION if defined.
2950 * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Document.
2951 * config/mips/mips.h (TARGET_LIBGCC_SDATA_SECTION): Define.
2953 2006-05-16 Danny Smith <dannysmith@users.sourceforge.net>
2956 * config.host (i[34567]86-*-mingw*): Append i386/x-mingw32 to
2959 2006-05-16 Ben Elliston <bje@au.ibm.com>
2961 * tree-cfg.c (split_edge_bb_loc): Remove unused variable `src'.
2963 2006-05-15 Per Bothner <per@bothner.com>
2965 * tree.c: (last_annotated_node): Use source_locus typedef.
2966 This permits bootstrapping with --enable-mapped-location.
2968 2006-05-15 Zdenek Dvorak <dvorakz@suse.cz>
2970 PR tree-optimization/26830
2971 * tree-into-ssa.c (struct ssa_name_info): Add age field.
2972 (info_for_ssa_name, current_info_for_ssa_name_age,
2973 blocks_to_update): New variables.
2974 (get_ssa_name_ann): Use info_for_ssa_name instead of SSA_NAME_AUX.
2975 (clear_ssa_name_info, initialize_flags_in_bb,
2976 mark_block_for_update): New functions.
2977 (mark_def_sites, rewrite_stmt): Assert that blocks_to_update is NULL.
2978 (insert_phi_nodes_for, mark_use_interesting, prepare_block_for_update,
2979 prepare_def_site_for): Use mark_block_for_update.
2980 (mark_def_interesting): Assert that the processed block is marked in
2981 blocks_to_update. Do not take blocks argument.
2982 (prepare_use_sites_for, prepare_names_to_update): Do not take blocks
2984 (rewrite_update_init_block, rewrite_update_stmt): Only process
2985 blocks with statements to rewrite.
2986 (delete_update_ssa): Do not clear SSA_NAME_AUX.
2987 (update_ssa): Initialize and free blocks_to_update. Do not
2988 clear flags on statements. Do not use blocks bitmap.
2989 * tree.h (SSA_NAME_AUX): Removed.
2990 (struct tree_ssa_name): Removed aux field.
2991 * print-tree.c (print_node): Do not print SSA_NAME_AUX.
2993 2006-05-15 Richard Guenther <rguenther@suse.de>
2995 PR tree-optimization/27603
2996 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
2997 Do computations in original type.
2999 2006-05-15 Mircea Namolaru <namolaru@il.ibm.com>
3001 * see.c: Code style changes such as redundant paranthesis,
3002 redundant intialization of local variables etc.
3003 (see_main): Declared now as static.
3004 * doc/invoke.texi: Update that -fsee is not enabled by
3007 2006-05-15 Jakub Jelinek <jakub@redhat.com>
3009 * omp-low.c (check_omp_nesting_restrictions): New function.
3010 (scan_omp_1): Call it.
3013 * omp-low.c (build_outer_var_ref): If VAR is reference in orphaned
3014 construct, return *VAR.
3016 2006-05-14 Kaz Kojima <kkojima@gcc.gnu.org>
3018 PR rtl-optimization/27406
3019 * bt-load.c (migrate_btr_def): Skip the block having abnormal
3022 2006-05-14 Roger Sayle <roger@eyesopen.com>
3024 PR rtl-optimization/27538
3025 * combine.c (expand_compound_operation): Call gen_lowpart
3026 before calling simplify_shift_const.
3028 2006-05-14 Roger Sayle <roger@eyesopen.com>
3030 PR rtl-optimization/22563
3031 * expmed.c (store_fixed_bit_field): When using AND and IOR to store
3032 a fixed width bitfield, always force the intermediates into psuedos.
3034 2006-05-14 Bernhard Fischer <aldot@gcc.gnu.org>
3037 * mkconfig.sh: Use operator = instead of == for test.
3039 2006-05-13 Nick Clifton <nickc@redhat.com>
3041 * dwarf2out.c (dbx_reg_number): Check return value from
3042 LEAF_REG_REMAP and only use it if it is valid.
3043 (multiple_reg_loc_descriptor): Likewise.
3045 2006-05-13 Richard Guenther <rguenther@suse.de>
3047 * config.host <i[34567]86-*-cygwin*>: Append i386/x-cygwin to
3050 2006-05-13 Steven Bosscher <stevenb.gcc@gmail.com>
3052 * df-core.c (df_bb_regno_last_use_find): Do not look for dataflow
3053 information attached to non-INSNs such as NOTEs.
3054 (df_bb_regno_first_def_find, df_bb_regno_last_def_find): Likewise.
3056 2006-05-12 Andreas Krebbel <krebbel1@de.ibm.com>
3058 * config/s390/s390.c (s390_const_ok_for_constraint_p): Disallow -4G for
3060 * config/s390/s390.md: Adjust comment describing On constraint.
3062 2006-05-11 Jan Hubicka <jh@suse.cz>
3064 * cgraphunit.c (decide_is_function_needed): Don't force always_inline
3065 to be output at -O0.
3067 2006-05-11 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3070 * fold-const.c (size_binop): Move sanity check for arguments to
3071 the beginning of the function.
3074 * fold-const.c (tree_expr_nonnegative_p): Return early on invalid
3077 2006-05-11 Richard Guenther <rguenther@suse.de>
3080 * fold-const.c (fold_unary): Handle intermediate conversion
3081 to a pointer type like intermediate conversion to an integer
3082 type in folding of (T1)(T2)var to var.
3083 Match the code to the comment in the final conversion for
3084 (T1)(T2)var to (T1)var regarding to type precision. Rather
3085 than disallow T1 being of pointer type, assert that both T1
3086 and var are of pointer type or not. Make sure not to fall
3087 over the frontends lazyness wrt array to pointer decay though.
3089 2006-05-10 Richard Earnshaw <rearnsha@arm.com>
3091 * arm.c (arm_struct_value_rtx): Delete.
3092 (TARGET_STRUCT_VALUE_RTX): Use the default definition.
3093 (arm_init_cumulative_args): Always initialize nregs to zero.
3095 2006-05-10 Richard Guenther <rguenther@suse.de>
3097 PR tree-optimization/27532
3098 * tree-object-size.c (plus_expr_object_size): Fix typo.
3100 2006-05-10 Kazu Hirata <kazu@codesourcery.com>
3103 * config/m68k/m68k.md (ashrdi_const32, ashrdi_const32_mem,
3104 ashrdi_const, ashrdi3): Use a scratch register.
3106 2006-05-10 Richard Guenther <rguenther@suse.de>
3108 PR tree-optimization/27302
3109 * fold-const.c (operand_equal_p): For two comparisons,
3110 try comparison of one comparison code swapped if that yields
3113 2006-05-10 Ben Elliston <bje@au.ibm.com>
3115 * tree-pretty-print.c (pretty_print_string): No need to handle
3116 '\0' as a special character.
3118 * tree.h: Include "hashtab.h".
3119 (iterative_hash_expr): Use hashval_t in its prototype.
3120 * Makefile.in (TREE_H): Add $(HASHTAB_H).
3122 2006-05-09 Steve Ellcey <sje@cup.hp.com>
3125 * config.gcc (hppa[12]*-*-hpux10*): Set gas to yes.
3126 (hppa*64*-*-hpux11*): Ditto.
3127 (hppa[12]*-*-hpux11*): Ditto.
3129 2006-05-09 David Edelsohn <edelsohn@gnu.org>
3132 * config/rs6000/aix41.h (TARGET_64BIT): Define.
3134 2006-05-09 Michael Matz <matz@suse.de>
3136 * config.host (<i[34567]86-*-*, x86_64-*-*>): Set
3137 host_extra_gcc_objs and host_xmake_file.
3138 (<*-*-linux*>): Don't overwrite host_xmake_file.
3139 * gcc.c (static_spec_functions): Add EXTRA_SPEC_FUNCTIONS.
3140 * config/i386/i386.h (EXTRA_SPEC_FUNCTIONS): Define.
3141 (host_detect_local_cpu): Declare.
3142 (CC1_CPU_SPEC): Add -march=native and -mtune=native cases.
3143 * config/i386/i386.c (override_options): Handle -mtune=native
3145 * config/i386/x-i386: New file.
3146 * config/i386/driver-i386.c: New file.
3147 * doc/invoke.texi (<i386 and x86-64 Options>): Describe
3150 2006-05-09 Dirk Mueller <dmueller@suse.de>
3151 Richard Guenther <rguenther@suse.de>
3154 * fold-const.c (fold_read_from_constant_string): Relax check
3155 for matching types to matching modes.
3157 2006-05-09 Zdenek Dvorak <dvorakz@suse.cz>
3159 PR rtl-optimization/27335
3160 * loop-unroll.c (peel_loops_completely): Use loops->parray to walk the
3163 2006-05-08 Chao-ying Fu <fu@mips.com>
3164 Richard Sandiford <richard@codesourcery.com>
3166 * config/mips/mips-ps-3d.md (scc_ps, s<code>_ps): New patterns.
3167 (vcondv2sf, sminv2sf3, smaxv2sf3): Likewise.
3168 * config/mips/mips.md (UNSPEC_SCC): New constant.
3169 * config/mips/mips-protos.h (mips_expand_vcondv2sf): Declare.
3170 * config/mips/mips.c (mips_reverse_fp_cond_p): New function.
3171 (mips_emit_compare): Use it.
3172 (mips_expand_vcondv2sf): New function.
3174 2006-05-08 Daniel Berlin <dberlin@dberlin.org>
3176 Fix PR tree-optimization/27093
3177 * tree-ssa-alias.c (recalculate_used_alone): Mark variables for
3178 renaming when they become not-used_alone.
3180 2006-05-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3182 * hpux-unwind.h (pa_fallback_frame_state): Handle return parameter
3183 relocation and relocation stubs.
3185 2006-05-08 Eric Christopher <echristo@apple.com>
3187 * unwind-dw2-fde-darwin.c (examine_objects): Only check data
3190 2006-05-08 Jan Hubicka <jh@suse.cz>
3193 * cgraphunit.c (decide_is_function_needed): When not optimizing even
3194 unused static functions are needed.
3196 2006-05-08 Roger Sayle <roger@eyesopen.com>
3199 * reload.c (find_reloads_toplev): Only return the simplified SUBREG
3200 of a reg_equiv_constant if the result is a legitimate constant.
3202 2006-05-08 Uros Bizjak <uros@kss-loka.si>
3205 * config/i386/i386.c (ix86_rtx_costs) [FLOAT_EXTEND]: For
3206 standard 80387 constants, raise the cost to prevent
3207 compress_float_constant() to generate load from memory.
3209 2006-05-08 Kazu Hirata <kazu@codesourcery.com>
3211 * config/arm/constraints.md (c): Fix a typo.
3213 * see.c, tree-flow-inline.h, tree-phinodes.c: Fix comment
3216 2006-05-07 H.J. Lu <hongjiu.lu@intel.com>
3219 * config/i386/pmmintrin.h (_mm_monitor): Remove macro. Use
3221 (_mm_mwait): Likewise.
3223 * config/i386/sse.md (sse3_mwait): Replace "mwait\t%0, %1" with
3225 (sse3_monitor): Make it 32bit only.
3226 (sse3_monitor64): New. 64bit monitor.
3228 2006-05-07 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3231 * config/i386/i386.c (classify_argument): Skip fields with invalid
3234 2006-05-07 Richard Guenther <rguenther@suse.de>
3236 PR tree-optimization/27409
3237 * tree-ssa-structalias.c (get_constraint_for_component_ref):
3238 Do not try to find zero-sized subvars.
3240 2006-05-07 Richard Guenther <rguenther@suse.de>
3242 PR tree-optimization/27136
3243 * tree-ssa-loop-niter.c (get_val_for): Correct function
3244 comment, assert requirements.
3245 (loop_niter_by_eval): Stop processing if the iterated
3246 value did not simplify.
3248 2006-05-07 Mircea Namolaru <namolaru@il.ibm.com>
3250 * opts.c (flag_see): remove its setting at -O3.
3252 2006-05-07 Richard Earnshaw <rearnsha@arm.com>
3254 * genpeep.c (main): Make insn-peep.c depend on flags.h.
3255 * arm/constraints.md: New file.
3256 * arm.h (REG_CLASS_FROM_LETTER_P): Delete.
3257 (CONST_OK_FOR_ARM_LETTER, CONST_OK_FOR_THUMB_LETTER)
3258 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_ARM_LETTER)
3259 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT_STR_ARM)
3260 (CONSTRAINT_LEN, EXTRA_CONSTRAINT_THUMB, EXTRA_CONSTRAINT_STR)
3261 (EXTRA_MEMORY_CONSTRAINT): Likewise.
3262 * arm.md: Include constraints.md.
3263 (thumb_movsi_insn): Use satisfies_constraint_J.
3264 (movhi, movqi): Use satisfies_constraint_I.
3266 2006-04-29 Anatoly Sokolov <aesok@post.ru>
3268 * config/avr/avr.h (CRT_BINUTILS_SPECS): Fixed crt* file name
3269 for atmeg a645 device.
3271 2006-05-06 Richard Guenther <rguenther@suse.de>
3273 PR tree-optimization/27151
3274 * tree-vect-transform.c (vectorizable_condition): Punt on
3275 values that have a different type than the condition.
3277 2006-05-03 Aldy Hernandez <aldyh@redhat.com>
3280 * c-parser.c (c_parser_cast_expression): Only insert casts into
3281 hash table if pointer.
3282 * function.c (used_types_insert_helper): Rename from
3284 (used_types_insert): Call used_types_insert_helper.
3285 * function.h (used_types_insert): Accept only one argument.
3287 2006-05-05 David Edelsohn <edesohn@gnu.org>
3289 * config/rs6000/rs6000.md: Mark all "X" constraints for clobbered
3290 scratch with output modifier.
3292 2006-05-04 David Edelsohn <edelsohn@gnu.org>
3295 * config/rs6000/rs6000.md (stmsi_power): Mark clobber constraint
3296 with output modifier.
3298 2006-05-04 Richard Sandiford <richard@codesourcery.com>
3301 * config/mips/mips.c (mips_symbolic_address_p): Return true
3302 for SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL, SYMBOL_TPREL,
3303 SYMBOL_GOTTPREL, and SYMBOL_TLS.
3305 2006-05-04 Richard Guenther <rguenther@suse.de>
3307 PR tree-optimization/14287
3308 PR tree-optimization/14844
3309 PR tree-optimization/19792
3310 PR tree-optimization/21608
3311 PR tree-optimization/27090
3312 * tree-ssa-pre.c (try_combine_conversion): New function.
3313 (compute_avail): After constructing the value-handle
3314 expression, use try_combine_conversion to combine NOP_EXPRs
3315 with previous value-handle expressions and use the result if it
3318 2006-05-04 Joseph S. Myers <joseph@codesourcery.com>
3320 * config/mips/linux64.h (DWARF_OFFSET_SIZE): Remove.
3322 2006-05-04 Jan Hubicka <jh@suse.cz>
3325 * cgraphunit.c (verify_cgraph_node): Fix cgraph_hash testing.
3327 2006-05-04 Bernd Schmidt <bernd.schmidt@analog.com>
3329 * config/bfin/predicates.md (const01_rtx): Tell generator programs
3330 that this only matches CONST_INTs. All users changed to VOIDmode
3333 * config/bfin/bfin.c: Include "optabs.h".
3334 (bfin_rtx_costs): Some costs for vector operations, to allow combine
3336 (enum bfin_builtins): Add a number of fractional and vector builtins.
3337 (bfin_init_builtins): Likewise.
3338 (struct builtin_description, bdesc_2arg, bdesc_1arg): New.
3339 (safe_vector_operand, bfin_expand_binop_builtin,
3340 bfin_expand_unop_builtin): New functions.
3341 (bfin_expand_builtin): Handle the new builtins.
3342 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
3345 2006-05-04 Leehod Baruch <leehod@il.ibm.com>
3348 * Makefile.in (OBJS-common): Add see.o.
3349 (see.o): Add dependencies.
3350 * common.opt (fsee): New flag for the see optimization was added.
3351 * opts.c (flag_see): Initialized.
3352 * passes.c (init_optimization_passes, pass_see): New pass.
3353 * rtl.h (see_main): Declaration as extern.
3354 * timevar.def (TV_SEE): New.
3355 * tree-pass.h (pass_see): Declaration as extern.
3356 * invoke.texi (-fsee): Document.
3357 * recog.c (validate_simplify_insn): New function.
3358 * recog.h (validate_simplify_insn): Declaration as extern.
3359 * df-problems.c (df_chain_dump): Check for NULL.
3361 2006-05-04 Kenneth Zadeck <zadeck@naturalbridge.com>
3362 Daniel Berlin <dberlin@dberlin.org>
3364 * cfgrtl.c (insert_insn_bb_end_new): New function.
3365 * basic-block.h (insert_insn_bb_end_new): Declaration as extern.
3367 2006-05-04 Leehod Baruch <leehod.baruch@weizmann.ac.il>
3369 * df.h (struct web_entry): Moved from web.c.
3370 (union_defs): Declaration as extern.
3371 (unionfind_root): Likewise.
3372 (unionfind_union): Likewise.
3373 * web.c (struct web_entry): Moved to df.h.
3374 (unionfind_root): Remove static declaration.
3375 (unionfind_union): Likewise.
3376 (union_defs): Likewise and generalize to use callback function.
3377 (web_main): Update arguments for union_defs function call.
3379 2006-05-04 Richard Guenther <rguenther@suse.de>
3381 PR tree-optimization/26447
3382 * tree-ssa-pre.c (realify_fake_stores): For necessary loads
3383 produce SSA_NAME copies before the store stmt to avoid
3384 breaking exception handling.
3386 2006-05-04 Jakub Jelinek <jakub@redhat.com>
3389 * gimplify.c (omp_is_private): If var is shared in some outer context,
3390 return false instead of true. Stop searching on parallel context
3393 2006-05-03 Alexandre Oliva <aoliva@redhat.com>
3396 * coverage.c: Use get_gcov_unsigned_t() instead of
3397 unsigned_type_node all over.
3399 2006-05-02 Andrew MacLeod <amacleod@redhat.com>
3401 PR tree-optimization/27381
3402 * tree-phinodes.c (remove_phi_arg_num): When moving a phi argument,
3403 maintain the same immediate_use links.
3404 * tree-ssa-operands.c (dump_immediate_uses_for): Show iteration marker
3405 node rather than segfaulting.
3407 2006-05-03 Jakub Jelinek <jakub@redhat.com>
3410 * gimplify.c (gimplify_scan_omp_clauses): Compare OMP_CLAUSE_CODE
3411 rather than TREE_CODE to OMP_CLAUSE_REDUCTION. Set also GOVD_SEEN
3412 bit for OMP_CLAUSE_REDUCTION_PLACEHOLDER.
3414 2006-05-02 Daniel Berlin <dberlin@dberlin.org>
3416 Fix PR tree-optimization/26626
3417 * tree-ssa-structalias.c (compute_points_to_sets): For now, solve
3419 * tree-ssa-operands.c (access_can_touch_variable): Allow
3420 typecasting through union pointers.
3422 2006-05-02 Jakub Jelinek <jakub@redhat.com>
3425 * omp-low.c (maybe_lookup_decl_in_outer_ctx): New function.
3426 (build_outer_var_ref): Use maybe_lookup_decl_in_outer_ctx
3427 to find if var will be a global variable even in the nested context.
3428 (omp_copy_decl): Only check for global variable at the end, it might
3429 be overridden in outer contexts.
3430 (scan_sharing_clauses): For global variables don't create a field.
3431 (lower_rec_input_clauses): Do nothing for global shared variables.
3432 Emit a barrier at the end of ILIST if there were any decls in both
3433 firstprivate and lastprivate clauses.
3434 (lower_send_clauses): Do nothing for global variables except for
3437 2006-05-02 Zdenek Dvorak <dvorakz@suse.cz>
3439 * tree.c (unsigned_type_for, signed_type_for): Make sure a type
3440 of the correct signedness is returned.
3442 2006-05-02 Jeff Law <law@redhat.com>
3444 PR tree-optimization/27364
3445 * tree-vrp.c (vrp_int_const_binop): Fix detection of overflow from
3446 multiply expressions.
3448 2006-05-02 Tom Tromey <tromey@redhat.com>
3450 * tree-flow-inline.h (op_iter_init_phiuse): Fixed typo.
3452 2006-05-02 Kazu Hirata <kazu@codesourcery.com>
3455 * arm.c (arm_output_mi_thunk): Use pc-relative addressing when
3456 -mthumb -fPIC are used.
3458 2006-05-02 Stanislaw Skowronek <skylark@linux-mips.org>
3459 Joshua Kinard <kumba@gentoo.org>
3462 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Avoid 32-bit moves
3463 with 64-bit pointers.
3465 2006-05-02 Paul Brook <paul@codesourcery.com>
3467 * config/arm/arm.c (add_minipool_forward_ref): Check if insn
3469 (create_fix_barrier): Check that a suitable barrier location is
3471 (arm_reorg): Include ftmp->address in allowable range of addresses.
3473 2006-05-02 David Billinghurst <David.Billinghurst@riotinto.com>
3476 * ada/env.c (__gnat_clearenv): Use unsetenv() to clear environment
3479 2006-05-02 Jakub Jelinek <jakub@redhat.com>
3482 * gimplify.c (gimplify_scan_omp_clauses): Handle INDIRECT_REF
3483 around RESULT_DECL for result passed by reference.
3484 (gimplify_expr): Call omp_notice_variable when RESULT_DECL is seen.
3485 * omp-low.c (use_pointer_for_field): Don't look at
3486 DECL_HAS_VALUE_EXPR_P for RESULT_DECLs.
3487 (scan_omp_1): Call remap_decl on RESULT_DECLs.
3488 (lower_rec_input_clauses): Don't allocate VLA memory for the second
3489 time or var for passing by reference for
3490 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses. Allow creation of
3491 TREE_ADDRESSABLE variables when passing by reference.
3493 * omp-low.c (dump_omp_region): Fix output formatting.
3496 * omp-low.c (remove_exit_barrier): Handle NULL exit_bb.
3497 (expand_omp_parallel): Likewise.
3498 * tree-cfg.c (move_sese_region_to_fn): Likewise.
3501 * omp-low.c (lower_omp_sections): Call maybe_catch_exception
3502 on statement list containing also constructors and destructors.
3503 (lower_omp_single, lower_omp_for, lower_omp_parallel): Likewise.
3506 * except.c (duplicate_eh_regions): Fix clearing of