1. 22 Aug, 2008 14 commits
    • exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate with a… · 597d7158
      exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate with a range is transformed into a positional...
      
      2008-08-22  Gary Dismukes  <dismukes@adacore.com>
      
      	* exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate
      	with a range is transformed into a positional aggregate, any copied
      	component literals should be marked Is_Static_Expression.
      
      	* sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as
      	not being known at at compile time when Configurable_Run_Time_Mode is
      	true.
      
      From-SVN: r139442
      Gary Dismukes committed
    • init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX, Solaris,… · 5f0085c7
      init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX, Solaris, FreeBSD, VxWorks and PowerPC/Linux.
      
      2008-08-22  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX,
      	Solaris, FreeBSD, VxWorks and PowerPC/Linux.  For x86{-64}/Linux,
      	do not adjust the PC anymore.
      	(__gnat_error_handler): Do not call __gnat_adjust_context_for_raise
      	on AIX, HP-UX, Solaris, FreeBSD and VxWorks.
      
      	* raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo
      	instead of _Unwind_GetIP.
      
      From-SVN: r139441
      Eric Botcazou committed
    • gnat_ugn.texi: Change the description of gnatcheck default rule settings. · f934798c
      2008-08-22  Sergey Rybin  <rybin@adacore.com>
      
      	* gnat_ugn.texi: Change the description of gnatcheck default rule
      	settings.
      
      From-SVN: r139440
      Sergey Rybin committed
    • sem_ch8.adb: Minor reformatting Minor code reorganization (introduce subprogram to factor... · 7ca139d3
      2008-08-22  Thomas Quinot  <quinot@adacore.com>
      
      	* sem_ch8.adb: Minor reformatting
      	Minor code reorganization (introduce subprogram to factor duplicated
      	code).
      
      From-SVN: r139439
      Thomas Quinot committed
    • gfortran.h (in_prefix): Removed from this header. · 3df684e2
      2008-08-22  Daniel Kraft  <d@domob.eu>
      
      	* gfortran.h (in_prefix): Removed from this header.
      	* match.h (gfc_matching_prefix): Moved and renamed from `in_prefix'.
      	* decl.c (in_prefix): Removed from here.
      	(gfc_match_prefix): Use new name of `gfc_matching_prefix'.
      	* symbol.c (gfc_check_symbol_typed): Ditto.
      	* expr.c (check_typed_ns): New helper variable.
      	(expr_check_typed_help): New helper method.
      	(gfc_expr_check_typed): Rewrote to use gfc_traverse_expr to do the
      	work, fixing a minor problem.
      	* match.c (gfc_matching_prefix): New variable.
      
      From-SVN: r139435
      Daniel Kraft committed
    • exp_attr.adb (Expand_N_Attribute_Reference): In case of access attributes add… · 0d4aed99
      exp_attr.adb (Expand_N_Attribute_Reference): In case of access attributes add missing support to handle designated types...
      
      2008-08-22  Javier Miranda  <miranda@adacore.com>
      
      	* exp_attr.adb (Expand_N_Attribute_Reference): In case of access
      	attributes add missing support to handle designated types that come
      	from the limited view.
      
      	* exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion.
      
      From-SVN: r139432
      Arnaud Charlet committed
    • vms_data.ads: Add entry for new gnatcheck -mNNN option · b66cb572
      2008-08-22  Sergey Rybin  <rybin@adacore.com>
      
      	* vms_data.ads: Add entry for new gnatcheck -mNNN option
      
      	* gnat_ugn.texi: Add description for gnatcheck option '-m'
      
      From-SVN: r139431
      Sergey Rybin committed
    • sem_ch8.adb (Use_One_Type): when checking which of two use_type clauses in… · 3ea52b2e
      sem_ch8.adb (Use_One_Type): when checking which of two use_type clauses in related units is redundant...
      
      2008-08-22  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch8.adb (Use_One_Type): when checking which of two use_type
      	clauses in related units is redundant, if one of the units is a package
      	instantiation, use its instance_spec to determine which unit is the
      	ancestor of the other.
      
      From-SVN: r139430
      Ed Schonberg committed
    • make.adb (Check.File_Not_A_Source_Of): New Boolean function · 5d41bf55
      2008-08-22  Vincent Celier  <celier@adacore.com>
      
      	* make.adb (Check.File_Not_A_Source_Of): New Boolean function
      	(Check): Check if the file names registered in the ALI file for the
      	spec, the body and each of the subunits are the ones expected.
      
      From-SVN: r139429
      Arnaud Charlet committed
    • g-catiio.adb: Code cleanup. · 2147ba0c
      2008-08-22  Robert Dewar  <dewar@adacore.com>
      
      	* g-catiio.adb: Code cleanup.
      
      From-SVN: r139428
      Robert Dewar committed
    • gnat_ugn.texi: Update the gnatcheck subsection for metric rules acoording to the latest... · 846f6f7a
      2008-08-22  Sergey Rybin  <rybin@adacore.com>
      
      	* gnat_ugn.texi: Update the gnatcheck subsection for metric rules
      	acoording to the latest changes in the metric rule interface
      
      From-SVN: r139427
      Sergey Rybin committed
    • * c-ppoutput.c (init_pp_output): Initialize src_line to 1. · 1a456b49
      From-SVN: r139426
      Nathan Sidwell committed
    • re PR fortran/32095 (Accepts invalid character(len(a)),dimension(1) :: a) · f37e928c
      2008-08-22  Daniel Kraft  <d@domob.eu>
      
      	PR fortran/32095
      	PR fortran/34228
      	* gfortran.h (in_prefix): New global.
      	(gfc_check_symbol_typed), (gfc_check_expr_typed): New methods.
      	* array.c (match_array_element_spec): Check that bounds-expressions
      	don't have symbols not-yet-typed in them.
      	* decl.c (var_element): Check that variable used is already typed.
      	(char_len_param_value): Check that expression does not contain
      	not-yet-typed symbols.
      	(in_prefix): New global.
      	(gfc_match_prefix): Record using `in_prefix' if we're at the moment
      	parsing a prefix or not.
      	* expr.c (gfc_expr_check_typed): New method.
      	* parse.c (verify_st_order): New argument to disable error output.
      	(check_function_result_typed): New helper method.
      	(parse_spec): Check that the function-result declaration, if given in
      	a prefix, contains no not-yet-typed symbols when the IMPLICIT rules are
      	parsed.
      	* symbol.c (gfc_check_symbol_typed): Check that a symbol already has
      	a type associated to it, otherwise use the IMPLICIT rules or signal
      	an error.
      
      2008-08-22  Daniel Kraft  <d@domob.eu>
      
      	PR fortran/32095
      	PR fortran/34228
      	* gfortran.dg/used_before_typed_1.f90: New test.
      	* gfortran.dg/used_before_typed_2.f90: New test.
      	* gfortran.dg/used_before_typed_3.f90: New test.
      	* gfortran.dg/array_constructor_26.f03: Add -std=gnu to not enable
      	legacy-behaviour for the new check.
      	* gfortran.dg/array_constructor_27.f03: Ditto.
      	* gfortran.dg/blockdata_4.f90: Ditto.
      	* gfortran.dg/bound_2.f90: Reordered declarations to satisfy the check.
      	* gfortran.dg/result_in_spec_1.f90: Ditto.
      	* gfortran.dg/argument_checking_7.f90: Adapted expected error messages.
      
      From-SVN: r139425
      Daniel Kraft committed
    • Daily bump. · 6b738732
      From-SVN: r139421
      GCC Administrator committed
  2. 21 Aug, 2008 21 commits
  3. 20 Aug, 2008 5 commits
    • re PR middle-end/179 (-Wuninitialized missing warning with &var) · 87fe2bd0
      2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
      
      	PR middle-end/179
      	* tree-ssa.c (warn_uninit): Do not warn for variables that can be
      	initialized outside the current module.
      	(warn_uninitialized_var): Ignore left-hand side when walking the
      	trees. Ignore address expressions. Examine VUSE operands in gimple
      	statements with a variable declaration on the right-hand side.
      testsuite/
      	* gcc.dg/uninit-6.c (make_something): Remove XFAIL.
      	* gcc.dg/uninit-6-O0.c (make_something): Remove XFAIL.
      	* gcc.dg/uninit-B.c (baz): Remove XFAIL.
      	* gcc.dg/uninit-B-2.c: New.
      	* gcc.dg/uninit-B-O0-2.c: New.
      	* gcc.dg/uninit-pr19430-O0.c: New.
      	* gcc.dg/uninit-pr19430.c: New.
      	* gcc.dg/uninit-pr19430-2.c: New.
      
      From-SVN: r139347
      Manuel López-Ibáñez committed
    • re PR bootstrap/37155 (Revision 139207 failed to bootstrap on Linux/ia64) · 7735154d
      	PR bootstrap/37155
      	Fixed by revision 139338.
      
      From-SVN: r139343
      H.J. Lu committed
    • 2008-08-20 Paolo Carlini <paolo.carlini@oracle.com> · c532afbf
      	* Fix last ChangeLog entry.
      
      From-SVN: r139341
      Paolo Carlini committed
    • PR libstdc++/33979 (partial) · 5e44d591
      2008-08-20  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR libstdc++/33979 (partial)
      	* include/bits/postypes.h (u16streampos, u32streampos): Add.
      	* include/bits/char_traits.h (char_traits<char16_t>,
      	char_traits<char32_t>): Add.
      	* include/bits/stringfwd.h (u16string, u32string): Add.
      	* include/ext/vstring_fwd.h: Add typedefs for char16_t/char32_t.
      	* testsuite/21_strings/char_traits/requirements/char32_t/typedefs.cc:
      	New.
      	* testsuite/21_strings/char_traits/requirements/
      	explicit_instantiation/short/1.cc: Likewise.
      	* testsuite/21_strings/char_traits/requirements/
      	explicit_instantiation/char32_t/1.cc: Likewise.
      	* testsuite/21_strings/char_traits/requirements/
      	explicit_instantiation/wchar_t/1.cc: Likewise.
      	* testsuite/21_strings/char_traits/requirements/
      	explicit_instantiation/char16_t/1.cc: Likewise.
      	* testsuite/21_strings/char_traits/requirements/
      	explicit_instantiation/char/1.cc: Likewise.
      	* testsuite/21_strings/char_traits/requirements/char16_t/typedefs.cc:
      	Likewise.
      	* testsuite/21_strings/basic_string/requirements/
      	explicit_instantiation/char32_t/1.cc: Likewise.
      	* testsuite/21_strings/basic_string/requirements/
      	explicit_instantiation/wchar_t/1.cc: Likewise.
      	* testsuite/21_strings/basic_string/requirements/
      	explicit_instantiation/char16_t/1.cc: Likewise.
      	* testsuite/21_strings/basic_string/requirements/
      	explicit_instantiation/char/1.cc: Likewise.
      	* testsuite/21_strings/headers/string/types_std_c++0x.cc: Likewise.
      	* testsuite/ext/vstring/requirements/explicit_instantiation/
      	char32_t/1.cc: Likewise.
      	* testsuite/ext/vstring/requirements/explicit_instantiation/
      	char16_t/1.cc: Likewise.
      
      From-SVN: r139339
      Paolo Carlini committed
    • rtlanal.c (subreg_offset_representable_p): Revert last change. · 05cee290
      gcc/
      	* rtlanal.c (subreg_offset_representable_p): Revert last change.
      
      From-SVN: r139338
      Richard Sandiford committed