1. 16 Feb, 2006 15 commits
  2. 15 Feb, 2006 25 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
    • tree.h (struct tree_omp_clause): Use OMP_CLAUSE_CODE rather than TREE_CODE as… · fb57dc0b
      tree.h (struct tree_omp_clause): Use OMP_CLAUSE_CODE rather than TREE_CODE as index into omp_clause_num_ops array.
      
      	* tree.h (struct tree_omp_clause): Use OMP_CLAUSE_CODE rather
      	than TREE_CODE as index into omp_clause_num_ops array.
      
      From-SVN: r111115
      Jakub Jelinek committed
    • re PR rtl-optimization/26184 (memory leaks in swing modulo scheduling function) · f4daf7e4
      2006-02-15  Uttam Pawar  <uttamp@us.ibm.com>
      
              PR rtl-optimization/26184
              * modulo-sched.c (generate_reg_moves): Free bitmap vector
              uses_of_defs.
              * modulo-sched.c (sms_schedule): Free g_arr pointer.
              * modulo-sched.c (sms_schedule_by_order): Free bitmap pointers
              must_precede, must_follow and tobe_scheduled.
      
              PR other/26147
              * opts.c (common_handle_option): Free new_option pointer.
              * df-core.c (df_analyze): Free postorder pointer.
      
      From-SVN: r111114
      Uttam Pawar committed
    • Makefile.in: Fix the examples about the use of stamps · f7ca46d6
      
      	* gcc/Makefile.in: Fix the examples about the use of stamps
      
      M    gcc/ChangeLog
      M    gcc/Makefile.in
      
      From-SVN: r111113
      Rafael Espindola committed
    • check.c: Update copyright years. · 8f320bb0
      	* check.c: Update copyright years.
      
      From-SVN: r111110
      Tobias Schlüter committed
    • re PR middle-end/22275 (bitfield layout change) · d1a701eb
              PR middle-end/22275
      
              * stor-layout.c (layout_decl): Zero-width bitfields aren't
              influenced by maximum_field_alignment or DECL_PACKED.
              (update_alignment_for_field): Ditto.
              (place_field): Ditto.
              * doc/extend.texi (<#pragma pack>, <Type Attributes>): Document
              this behaviour.
      
      From-SVN: r111109
      Michael Matz committed
    • check.c (gfc_check_minloc_maxloc, [...]): Don't call dim_range_check on… · b98e3159
      check.c (gfc_check_minloc_maxloc, [...]): Don't call dim_range_check on not-present optional dim argument.
      
      	* check.c (gfc_check_minloc_maxloc, check_reduction): Don't call
      	dim_range_check on not-present optional dim argument.
      
      From-SVN: r111108
      Tobias Schlüter committed
    • Resync · cc26ad97
      From-SVN: r111107
      Arnaud Charlet committed
    • (Eval_Relational_Op): Use new Is_Known_Null flag to deal with case · 7a3f77d2
      	of null = null, now known true.
      
      From-SVN: r111106
      Arnaud Charlet committed
    • Add section for gnatcheck. · 51c40324
              Add documentation for restriction No_Dispatching_Calls
              Add documentation for pragma Ada_2005
              Remove mention of obsolete pragma Propagate_Exceptions
      
      From-SVN: r111105
      Arnaud Charlet committed
    • gnat_ugn.texi: Remove limitations with sparc m64 support. · 7e3d710b
      2006-02-13  Arnaud Charlet  <charlet@adacore.com>
      	    Ben Brosgol  <brosgol@adacore.com>
      	    Robert Dewar  <dewar@adacore.com>
      
      	* gnat_ugn.texi: Remove limitations with sparc m64 support.
      	Document that gnatbind -M option is for cross environments only.
      	Added description of using gnatmem to trace gnat rtl allocs and deallocs
      	Add note on use of $ to label implicit run time calls
      	Add documentation for -gnatyI (check mode IN)
      	Updated chapter on compatibility with HP Ada
      	VMS-oriented edits.
      	Ran spell and corrected errors
      	Add documentation for gnatbind -d and rework documentation of -D
      	at the same time.
      	Add subprogram/data elimination section.
      	Minor editing of annex A.
      	Add section for gnatcheck.
      	Add documentation for restriction No_Dispatching_Calls
      	Add documentation for pragma Ada_2005
      	Remove mention of obsolete pragma Propagate_Exceptions
      	Document that pragma Unreferenced can appear after DO in ACCEPT
      	Clarify Pure_Function for library level units
      	Mention Max/Min in connection with No_Implicit_Conditionals
      	No_Wide_Characters restriction is no longer partition-wide
      	Add a nice example for Universal_Literal_String attribute
      	Document that pragma No_Return can take multiple arguments
      
      	* ug_words: Added entry for gnatcheck
      
      	* g-ctrl_c.ads (Install_Handler): Enhance comments
      
      	* g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
      
      	* g-trasym.ads: Add documentation on how to do off line symbolic
      	traceback computation.
      
      	* s-fatgen.adb: Add comments for Unaligned_Valid
      
      	* stand.ads: Fix typo in comment
      
      From-SVN: r111104
      Arnaud Charlet committed
    • tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1. · 7dc56b36
      2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
      	(PPC VxWorks): Likewise.
      	(Generic unwinder): Define FORCE_CALL to 0 if not already defined.
      	(forced_callee): Make non-inlinable and non-pure.
      	(__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
      
      From-SVN: r111103
      Eric Botcazou committed
    • s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value · 405b3ed4
      2006-02-13  Robert Dewar  <dewar@adacore.com>
      
      	* s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
      
      From-SVN: r111102
      Robert Dewar committed
    • s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of Scan_Unsigned... · bfe7c10c
      2006-02-13  Bob Duff  <duff@adacore.com>
      
      	* s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
      	Scan_Unsigned, so we do not scan leading blanks and sign twice.
      	Integer'Value("- 5") and Integer'Value("-+5") now correctly
      	raise Constraint_Error.
      
      	* s-vallli.adb (Scan_Long_Long_Integer): Call
      	Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
      	do not scan leading blanks and sign twice.
      	Integer'Value("- 5") and Integer'Value("-+5") now correctly
      	raise Constraint_Error.
      
      	* s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
      	Scan_Long_Long_Unsigned): Split out most of the processing from
      	Scan_Long_Long_Unsigned out into
      	Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
      	This prevents scanning leading blanks and sign twice.
      	Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
      	See RM-3.5(44).
      
      	* s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
      	out most of the processing from Scan_Unsigned out into
      	Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
      	This prevents scanning leading blanks and sign twice.
      
      	* s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
      	use with Modular'Value attribute.
      	(Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
      	attribute.
      
      From-SVN: r111101
      Bob Duff committed
    • s-stausa.adb (Initialize_Analyzer): fixed error in assignment of task name. · 744ab580
      2006-02-13  Quentin Ochem  <ochem@adacore.com>
      
      	* s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
      	task name.
      
      From-SVN: r111100
      Quentin Ochem committed
    • sprint.adb (Write_Itype): Preserve Sloc of declaration... · 62b80eaf
      2006-02-13  Ed Schonberg  <schonberg@adacore.com>
      	    Robert Dewar  <dewar@adacore.com>
      
      	* sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
      	preserve the source unit where the itype is declared, and prevent a
      	backend abort.
      	(Note_Implicit_Run_Time_Call): New procedure
      	(Write_Itype): Handle missing cases (E_Class_Wide_Type and
      	E_Subprogram_Type)
      
      	* sprint.ads: Document use of $ for implicit run time routine call
      
      From-SVN: r111099
      Ed Schonberg committed
    • sinput-d.adb (Write_Line): Update the Source_Index_Table after each line. · b8e51f72
      2006-02-13  Thomas Quinot  <quinot@adacore.com>
      
      	* sinput-d.adb (Write_Line): Update the Source_Index_Table after each
      	line. This is necessary to allow In_Extended_Main_Unit to provide
      	correct results for itypes while writing out expanded source.
      	(Close_File): No need to update the source_index_table here since it's
      	now done for each line.
      
      From-SVN: r111098
      Thomas Quinot committed
    • sem_warn.adb (Check_One_Unit): If the unit appears in a limited_with clause... · 04568369
      2006-02-13  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_warn.adb (Check_One_Unit): If the unit appears in a limited_with
      	clause, use the limited view to determine whether any entity from it
      	is referenced.
      
      From-SVN: r111097
      Ed Schonberg committed
    • sem_type.adb (Write_Overloads): Improve display of candidate interpretations. · 4e73070a
      2006-02-13  Ed Schonberg  <schonberg@adacore.com>
      	    Javier Miranda  <miranda@adacore.com>
      
      	* sem_type.adb (Write_Overloads): Improve display of candidate
      	interpretations.
      	(Add_One_Interp): Do not add to the list of interpretations aliased
      	entities corresponding with an abstract interface type that is an
      	immediate ancestor of a tagged type; otherwise we have a dummy
      	conflict between this entity and the aliased entity.
      	(Disambiguate): The predefined equality on universal_access is not
      	usable if there is a user-defined equality with the proper signature,
      	declared in the same declarative part as the designated type.
      	(Find_Unique_Type): The universal_access equality operator defined under
      	AI-230 does not cover pool specific access types.
      	(Covers): If one of the types is a generic actual subtype, check whether
      	it matches the partial view of the other type.
      
      From-SVN: r111096
      Ed Schonberg committed
    • sem_elab.adb (Same_Elaboration_Scope): A package that is a compilation unit is… · 3640a4e7
      sem_elab.adb (Same_Elaboration_Scope): A package that is a compilation unit is an elaboration scope.
      
      2006-02-13  Ed Schonberg  <schonberg@adacore.com>
      	    Robert Dewar  <dewar@adacore.com>
      
      	* sem_elab.adb (Same_Elaboration_Scope): A package that is a
      	compilation unit is an elaboration scope.
      	(Add_Task_Proc): Add '\' in 2-line warning message.
      	(Activate_All_Desirable): Deal with case of unit with'ed by parent
      
      From-SVN: r111095
      Ed Schonberg committed
    • sem_ch9.adb (Analyze_Protected_Type, [...]): Check that if this is the… · d97d1726
      sem_ch9.adb (Analyze_Protected_Type, [...]): Check that if this is the full-declaration associated with a private...
      
      2006-02-13  Javier Miranda  <miranda@adacore.com>
      
      	* sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
      	if this is the full-declaration associated with a private declaration
      	that implement interfaces, then the private type declaration must be
      	limited.
      	(Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
      	as aliased. The use of the 'access attribute is not available for such
      	object (for this purpose the object should be explicitly marked as
      	aliased, but being an anonymous type this is not possible).
      
      From-SVN: r111094
      Javier Miranda committed
    • sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about redundant use clauses. · cdc8c54c
      2006-02-13  Bob Duff  <duff@adacore.com>
      
      	* sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
      	redundant use clauses.
      	In particular, if the scope of two use clauses overlaps, but one is not
      	entirely included in the other, we should not warn.  This can happen
      	with nested packages.
      	(Analyze_Subprogram_Renaming): Protect the compiler against previously
      	reported errors. The bug was reported when the compiler was built
      	with assertions enabled.
      	(Find_Type): If the node is a 'Class reference and the prefix is a
      	synchronized type without a corresponding record, return the type
      	itself.
      
      From-SVN: r111093
      Bob Duff committed