1. 17 Feb, 2006 17 commits
    • sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram instantiation... · 9af38f0c
      2006-02-17  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
      	instantiation, the corresponding entity is the related_instance of the
      	wrapper package created for the instance.
      
      From-SVN: r111191
      Ed Schonberg committed
    • Makefile.in: Use VMS64 specialized versions of several units in Interfaces.C hierarchy to be... · f58291a1
      2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
      
      	* Makefile.in: Use VMS64 specialized versions of several units in
      	Interfaces.C hierarchy to be compatible with HP C default size choices.
      	Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
      
      From-SVN: r111190
      Vasiliy Fofanov committed
    • init.c (facility_resignal_table): new array · 721a4f13
      2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
      
      	* init.c (facility_resignal_table): new array
      	(__gnat_default_resignal_p): enhance default predicate to resignal if
      	VMS condition has one of the predefined facility codes.
      
      From-SVN: r111189
      Vasiliy Fofanov committed
    • g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD, then we… · 0e3e1f15
      g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD, then we close To if it is valid.
      
      2006-02-17  Robert Dewar  <dewar@adacore.com>
      
      	* g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
      	then we close To if it is valid.
      
      From-SVN: r111188
      Robert Dewar committed
    • freeze.adb (Statically_Discriminated_Components): Return false if the bounds of… · 7f9747c6
      freeze.adb (Statically_Discriminated_Components): Return false if the bounds of the type of the discriminant are not static...
      
      2006-02-17  Ed Schonberg  <schonberg@adacore.com>
      
      	* freeze.adb (Statically_Discriminated_Components): Return false if
      	the bounds of the type of the discriminant are not static expressions.
      
      	* sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
      	the bounds of the discriminant type are not static.
      
      From-SVN: r111187
      Ed Schonberg committed
    • exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity must be materialized when... · faad2f7e
      2006-02-17  Ed Schonberg  <schonberg@adacore.com>
      
      	* exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
      	must be materialized when the renamed expression is an explicit
      	dereference.
      
      From-SVN: r111186
      Ed Schonberg committed
    • exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed through an… · f82944b7
      exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed through an access to class-wide interface...
      
      2006-02-17  Javier Miranda  <miranda@adacore.com>
      	    Robert Dewar  <dewar@adacore.com>
      
      	* exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
      	through an access to class-wide interface we force the displacement of
      	the pointer to the allocated object to reference the corresponding
      	secondary dispatch table.
      	(Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
      	if Long_Shifts are supported on the target, even if 64 bit divides
      	are not supported (configurable run time mode).
      	(Expand_N_Type_Conversion): Do validity check if validity checks on
      	operands are enabled.
      	(Expand_N_Qualified_Expression): Do validity check if validity checks
      	on operands are enabled.
      
      From-SVN: r111185
      Javier Miranda committed
    • s-taprop-irix.adb, [...] (Set_False, [...]): Add Abort_Defer/Undefer pairs to… · 72774950
      s-taprop-irix.adb, [...] (Set_False, [...]): Add Abort_Defer/Undefer pairs to avoid the possibility of a task being aborted...
      
      2006-02-17  Jose Ruiz  <ruiz@adacore.com>
      
      	* s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb, 
      	s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
      	s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb, 
      	s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
      	Abort_Defer/Undefer pairs to avoid the possibility of a task being
      	aborted while owning a lock.
      
      From-SVN: r111184
      Jose Ruiz committed
    • re PR ada/26315 (ACATS failures c43208b c85006a c85006d cd92001) · aea625dd
      2006-02-17  Eric Botcazou  <botcazou@adacore.com>
      
      	PR ada/26315
      
      	* utils2.c (find_common_type): If both input types are BLKmode and
      	have the same constant size, keep using the first one.
      
      	* bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
      
      	* decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
      
      	* misc.c (gnat_handle_option): New case for -Woverlength-strings.
      
      From-SVN: r111183
      Eric Botcazou committed
    • sem_ch4.adb (Find_Boolean_Types): If one of the operands is an aggregate... · 69e6a03e
      2006-02-17  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
      	aggregate, check the interpretations of the other operand to find one
      	that may be a boolean array.
      	(Analyze_Selected_Component): Fix flow-of-control typo in case where
      	the prefix is a private extension.
      
      From-SVN: r111182
      Ed Schonberg committed
    • stacktrace.cc (GetStackTraceElements): Call… · 24ca2a96
      stacktrace.cc (GetStackTraceElements): Call gnu::gcj::runtime::NameFinder::removeUnknown() to determine if...
      
      2006-02-16  Andrew Haley  <aph@redhat.com>
      
              * stacktrace.cc (GetStackTraceElements): Call
              gnu::gcj::runtime::NameFinder::removeUnknown() to determine if
              non-Java frames should be removed from a printed stack trace.
              Pass methodName to getLineNumberForFrame().
              (getLineNumberForFrame): Set method_name from info.dli_sname.
              * gnu/gcj/runtime/NameFinder.java (removeUnknown): New method.
              (remove_unknown): New variable.
              * include/java-stack.h (_Jv_StackTrace::getLineNumberForFrame):
              Add methodName arg.
      
      From-SVN: r111181
      Andrew Haley committed
    • trans-common.c: Include rtl.h earlier. · 25f2dfd3
      gcc/fortran/
      	* trans-common.c: Include rtl.h earlier.
      	* trans-decl.c: Likewise.
      
      From-SVN: r111178
      Richard Sandiford committed
    • re PR libstdc++/26250 (stringbuf::overflow() fails to set egptr() same as epptr()) · 10d9600d
      2006-02-17  Paolo Carlini  <pcarlini@suse.de>
      	    Howard Hinnant  <hhinnant@apple.com>
      
      	PR libstdc++/26250
      	* include/bits/sstream.tcc (basic_stringbuf<>::overflow): Tweak
      	to leave epgtr() just past the new write position, as per the
      	relevant bits of 27.7.1.3/8 (not changed by DR 432).
      	* testsuite/27_io/basic_stringbuf/overflow/char/26250.cc: New.
      	* testsuite/27_io/basic_stringbuf/overflow/wchar_t/26250.cc: Same.
      
      	* docs/html/ext/howto.html: Add entries for DR 169 and DR 432.
      
      	* include/std/std_sstream.h (basic_stringbuf<>::_M_sync): Move out
      	of line...
      	* include/bits/sstream.tcc: ... here.
      
      Co-Authored-By: Howard Hinnant <hhinnant@apple.com>
      
      From-SVN: r111177
      Paolo Carlini committed
    • tree-vrp.c (set_value_range_to_nonnegative): New function. · b16caf72
      
      	* tree-vrp.c (set_value_range_to_nonnegative): New function.
      	(vrp_expr_computes_nonnegative, ssa_name_nonnegative_p): Likewise.
      	(ssa_name_nonzero_p): Likewise.
      	(get_value_range): Return NULL if VRP is not running.
      	(extract_range_from_expr): Fallback to tree_expr_XXX_p if
      	VRP routines do not discover a range.
      	(vrp_finalize): Clear VR_VALUE to indicate VRP is not running.
      	* tree.h (ssa_name_nonzero_p, ssa_name_nonnegative_p): Prototype.
      	* fold-const.c (tree_expr_nonzero_p): For SSA_NAMEs, query VRP.
      	(tree_expr_nonnegative_p): Similarly.
      	* tree-ssa-dom.c (nonzero_vars, nonzero_vars_stack): Remove.
      	(restore_nonzero_vars_to_original_value): Remove.
      	(unsafe_associative_fp_binop): Remove.
      	(tree_ssa_dominator_optimize): Remove initialization and
      	finalization of nonzero_vars and nonzero_vars_stack.
      	(dom_opt_initialize_block): No longer push marker on
      	nonzero_vars_stack.
      	(dom_opt_finalize_block): No longer call
      	restore_nonzero_vars_to_original_value.
      	(record_equivalences_from_phis): No longer look for
      	nonzero PHI arguments.
      	(cprop_into_successor_phis): No longer propagate nonzero
      	property into PHI arguments.  Lose unused argument.  Caller
      	updated.
      	(record_equivalences_from_stmt): No longer record nonzero
      	values for SSA_NAMEs.
      	(lookup_avail_expr): No longer use nonzero_vars.
      
      	* gcc.dg/tree-ssa/vrp24.c: Update expected output.
      	* gcc.dg/tree-ssa/vrp26.c: New test.
      
      From-SVN: r111175
      Jeff Law committed
    • stor-layout.c (set_sizetype): Set TYPE_MAX_VALUE properly for sizetype when sizetype is unsigned. · 7f18f917
              * stor-layout.c (set_sizetype): Set TYPE_MAX_VALUE properly
              for sizetype when sizetype is unsigned.
      
      From-SVN: r111170
      Jeff Law committed
    • Daily bump. · b18b991a
      From-SVN: r111168
      GCC Administrator committed
    • re PR target/25603 (Miscompiled FORTRAN program) · d0236c3b
      2006-02-16  Denis Nagorny <denis_nagorny@linux.intel.com>
      
      	PR rtl-optimization/25603
      	* reload.c (reg_inc_found_and_valid_p): New. Check REG_INC note.
      	(regno_clobbered_p): Use it. Reusing SETS argument for REG_INC case.
      	* reload1.c (choose_reload_regs): Added call of regno_clobbered_p 
      	with new meaning of SETS.
      
      From-SVN: r111162
      Denis Nagorny committed
  2. 16 Feb, 2006 19 commits
  3. 15 Feb, 2006 4 commits
    • Add a little whitespace · 943261d7
      From-SVN: r111121
      Daniel Berlin committed
    • tree.c (init_ttree): Add STRUCT_FIELD_TAG handling. · 3c0b6c43
      2006-02-15 Daniel Berlin  <dberlin@dberlin.org>
      
      	* tree.c (init_ttree): Add STRUCT_FIELD_TAG handling.
      	(tree_code_size): Ditto.
      	* tree.h (struct tree_memory_tag): Remove parent_var.
      	(struct tree_struct_field_tag): New.
      	(SFT_OFFSET): New.
      	(SFT_SIZE): New.
      	(union tree_node): Add sft member.
      	* tree-ssa-alias.c (get_tmt_for): Don't handle TYPE_READONLY
      	specially here.
      	(create_sft): Add size and offset argument, set SFT_OFFSET and
      	SFT_SIZE.
      	(create_overlap_variables_for): Update for SFT_OFFSET/SFT_SIZE.
      	* treestruct.def: Add TS_STRUCT_FIELD_TAG.
      	* tree-flow-inline.h (get_subvar_at): Update for
      	SFT_OFFSET/SFT_SIZE.
      	(var_can_have_subvars): Ditto.
      	(overlap_subvar): Ditto.
      	* print-tree.c (print_node): Print out interesting things for
      	SFT's.
      	* tree-flow.h (struct subvar): Remove offset and size members.
      	* tree-ssa-operands.c (get_expr_operands): Update for
      	get_indirect_ref_operands changes.
      	(get_indirect_ref_operands): Call add_virtual_operand instead of
      	add_stmt_operand.  Only recurse on base var if requested.
      	(access_can_touch_variable): New function.
      	(add_stmt_operand): Split virtual operand handling into ...
      	(add_virtual_operand): Here.  Add offset, size, and for_clobber
      	arguments.  Prune alias sets.
      	(add_call_clobber_ops): Call add_virtual_operand.
      
      From-SVN: r111120
      Daniel Berlin committed
    • re PR fortran/26054 (Gratuitous warning about Fortran 2003 features w/o -std=...) · cce283c7
      2006-02-15  Toon Moene  <toon@moene.indiv.nluug.nl>
      
      	PR fortran/26054
      	* fortran/options.c: Do not warn for Fortran 2003 features
      	by default.
      	* testsuite/gfortran.dg/enum_8.f90: Remove check for warning.
      	* testsuite/gfortran.dg/iomsg_1.f90: Ditto.
      	* testsuite/gfortran.dg/enum_1.f90: Ditto.
      	* testsuite/gfortran.dg/enum_9.f90: Ditto.
      	* testsuite/gfortran.dg/enum_2.f90: Ditto.
      	* testsuite/gfortran.dg/enum_10.f90: Ditto.
      	* testsuite/gfortran.dg/enum_3.f90: Ditto.
      	* testsuite/gfortran.dg/flush_1.f90: Ditto.
      	* testsuite/gfortran.dg/enum_4.f90: Ditto.
      	* testsuite/gfortran.dg/array_constructor_1.f90: Ditto.
      	* testsuite/gfortran.dg/enum_5.f90: Ditto.
      	* testsuite/gfortran.dg/enum_6.f90: Ditto.
      	* testsuite/gfortran.dg/enum_7.f90: Ditto.
      
      From-SVN: r111117
      Toon Moene committed
    • re PR middle-end/26300 (ICE in trunc_int_for_mode) · 01ea23f3
      	PR middle-end/26300
      	* combine.c (make_extraction): Bail out if ORIG_POS is negative.
      
      	* gcc.c-torture/compile/20060215-1.c: New test.
      
      From-SVN: r111116
      Jakub Jelinek committed