[Bug fortran/24866] internal compiler error

2006-08-20 Thread patchapp at dberlin dot org


--- Comment #9 from patchapp at dberlin dot org  2006-08-20 06:01 ---
Subject: Bug number PR24866

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-08/msg00711.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24866



[Bug fortran/25077] No error on attempt to redefine intrinsic assigments

2006-08-20 Thread patchapp at dberlin dot org


--- Comment #3 from patchapp at dberlin dot org  2006-08-20 06:05 ---
Subject: Bug number PR25077

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-08/msg00712.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25077



[Bug c++/28505] [4.0/4.1/4.2 regression] ICE with invalid constructors

2006-08-20 Thread patchapp at dberlin dot org


--- Comment #2 from patchapp at dberlin dot org  2006-08-20 07:00 ---
Subject: Bug number PR c++/28505

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-08/msg00714.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28505



[Bug c++/28741] [4.2 regression] ICE with static member in invalid template class

2006-08-20 Thread patchapp at dberlin dot org


--- Comment #2 from patchapp at dberlin dot org  2006-08-20 07:00 ---
Subject: Bug number PR c++/28741

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-08/msg00715.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28741



[Bug fortran/25077] No error on attempt to redefine intrinsic assigments

2006-08-20 Thread patchapp at dberlin dot org


--- Comment #4 from patchapp at dberlin dot org  2006-08-20 07:32 ---
Subject: Bug number PR25077

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-08/msg00716.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25077



[Bug c++/26269] [4.0/4.1/4.2 regression] Declaring a variable too late yields bogus error message

2006-08-20 Thread patchapp at dberlin dot org


--- Comment #5 from patchapp at dberlin dot org  2006-08-20 07:33 ---
Subject: Bug number PR c++/26269

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-08/msg00710.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26269



[Bug c/27953] ICE with invalid function definitions

2006-08-20 Thread patchapp at dberlin dot org


--- Comment #1 from patchapp at dberlin dot org  2006-08-20 07:33 ---
Subject: Bug number PR c/27953

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-08/msg00708.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27953



[Bug tree-optimization/24888] duplication of local variables after versioning/inlining

2006-08-20 Thread patchapp at dberlin dot org


--- Comment #8 from patchapp at dberlin dot org  2006-08-20 07:35 ---
Subject: Bug number PR tree-optimization/24888

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-08/msg00717.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24888



[Bug fortran/24866] internal compiler error

2006-08-20 Thread patchapp at dberlin dot org


--- Comment #10 from patchapp at dberlin dot org  2006-08-20 07:45 ---
Subject: Bug number PR24866

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-08/msg00719.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24866



[Bug fortran/28630] ICE due to a module function returning a derived type

2006-08-20 Thread pault at gcc dot gnu dot org


--- Comment #5 from pault at gcc dot gnu dot org  2006-08-20 08:21 ---
Subject: Bug 28630

Author: pault
Date: Sun Aug 20 08:20:26 2006
New Revision: 116269

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=116269
Log:
2006-08-20 Paul Thomas [EMAIL PROTECTED]

PR fortran/28601
PR fortran/28630
* gfortran.h : Eliminate gfc_dt_list structure and reference
to it in gfc_namespace.
* resolve.c (resolve_fl_derived): Remove the building of the
list of derived types for the current namespace.
* symbol.c (find_renamed_type): New function to find renamed
derived types by symbol name rather than symtree name.
(gfc_use_derived): Search parent namespace for identical
derived type and use it, even if local version is complete,
except in interface bodies. Ensure that renamed derived types
are found by call to find_renamed_type. Recurse for derived
type components.
(gfc_free_dt_list): Remove.
(gfc_free_namespace): Remove call to previous.
* trans-types.c (copy_dt_decls_ifequal): Remove.
(gfc_get_derived_type): Remove all the paraphenalia for
association of derived types, including calls to previous.
* match.c (gfc_match_allocate): Call gfc_use_derived to
associate any derived types that are being allocated.

PR fortran/20886
* resolve.c (resolve_actual_arglist): The passing of
a generic procedure name as an actual argument is an
error.

PR fortran/28735
* resolve.c (resolve_variable): Check for a symtree before
resolving references.

PR fortran/28762
* primary.c (match_variable): Return MATCH_NO if the symbol
is that of the program.

PR fortran/28425
* trans-expr.c (gfc_trans_subcomponent_assign): Translate
derived type component expressions other than another derived
type constructor.

PR fortran/28496
* expr.c (find_array_section): Correct errors in
the handling of a missing start value for the
index triplet in an array reference.

PR fortran/18111
* trans-decl.c (gfc_build_dummy_array_decl): Before resetting
reference to backend_decl, set it DECL_ARTIFICIAL.
(gfc_get_symbol_decl): Likewise for original dummy decl, when
a copy is made of an array.
(create_function_arglist): Likewise for the _entry paramter
in entry_masters.
(build_entry_thunks): Likewise for dummies in entry thunks.

PR fortran/28771
* decl.c (add_init_expr_to_sym): Remove setting of charlen for
an initializer of an assumed charlen variable.

PR fortran/28660
* trans-decl.c (generate_expr_decls): New function.
(generate_dependency_declarations): New function.
(generate_local_decl): Call previous if not either a dummy or
a declaration in an entry master.

2006-08-20 Paul Thomas [EMAIL PROTECTED]

PR fortran/28630
* gfortran.dg/used_types_2.f90: New test.

PR fortran/28601
* gfortran.dg/used_types_3.f90: New test.

PR fortran/20886
* gfortran.dg/generic_actual_arg.f90: New test.

PR fortran/28735
* gfortran.dg/module_private_array_refs_1.f90: New test.

PR fortran/28762
* gfortran.dg/program_name_1.f90: New test.

PR fortran/28425
* gfortran.dg/derived_constructor_comps_1.f90: New test.

PR fortran/28496
* gfortran.dg/array_initializer_2.f90: New test.

PR fortran/18111
* gfortran.dg/unused_artificial_dummies_1.f90: New test. 

PR fortran/28771
* gfortran.dg/assumed_charlen_in_main.f90: New test.

PR fortran/28660
* gfortran.dg/dependent_decls_1.f90: New test.

Added:
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/array_initializer_2.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/assumed_charlen_in_main.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/dependent_decls_1.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/derived_constructor_comps_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/generic_actual_arg.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/module_private_array_refs_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/program_name_1.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/unused_artificial_dummies_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/used_types_2.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/used_types_3.f90
Modified:
branches/gcc-4_1-branch/gcc/fortran/ChangeLog
branches/gcc-4_1-branch/gcc/fortran/decl.c
branches/gcc-4_1-branch/gcc/fortran/expr.c
branches/gcc-4_1-branch/gcc/fortran/gfortran.h
branches/gcc-4_1-branch/gcc/fortran/match.c
branches/gcc-4_1-branch/gcc/fortran/primary.c

[Bug fortran/28735] Crash in resolve.c - related to contents of .mod

2006-08-20 Thread pault at gcc dot gnu dot org


--- Comment #11 from pault at gcc dot gnu dot org  2006-08-20 08:21 ---
Subject: Bug 28735

Author: pault
Date: Sun Aug 20 08:20:26 2006
New Revision: 116269

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=116269
Log:
2006-08-20 Paul Thomas [EMAIL PROTECTED]

PR fortran/28601
PR fortran/28630
* gfortran.h : Eliminate gfc_dt_list structure and reference
to it in gfc_namespace.
* resolve.c (resolve_fl_derived): Remove the building of the
list of derived types for the current namespace.
* symbol.c (find_renamed_type): New function to find renamed
derived types by symbol name rather than symtree name.
(gfc_use_derived): Search parent namespace for identical
derived type and use it, even if local version is complete,
except in interface bodies. Ensure that renamed derived types
are found by call to find_renamed_type. Recurse for derived
type components.
(gfc_free_dt_list): Remove.
(gfc_free_namespace): Remove call to previous.
* trans-types.c (copy_dt_decls_ifequal): Remove.
(gfc_get_derived_type): Remove all the paraphenalia for
association of derived types, including calls to previous.
* match.c (gfc_match_allocate): Call gfc_use_derived to
associate any derived types that are being allocated.

PR fortran/20886
* resolve.c (resolve_actual_arglist): The passing of
a generic procedure name as an actual argument is an
error.

PR fortran/28735
* resolve.c (resolve_variable): Check for a symtree before
resolving references.

PR fortran/28762
* primary.c (match_variable): Return MATCH_NO if the symbol
is that of the program.

PR fortran/28425
* trans-expr.c (gfc_trans_subcomponent_assign): Translate
derived type component expressions other than another derived
type constructor.

PR fortran/28496
* expr.c (find_array_section): Correct errors in
the handling of a missing start value for the
index triplet in an array reference.

PR fortran/18111
* trans-decl.c (gfc_build_dummy_array_decl): Before resetting
reference to backend_decl, set it DECL_ARTIFICIAL.
(gfc_get_symbol_decl): Likewise for original dummy decl, when
a copy is made of an array.
(create_function_arglist): Likewise for the _entry paramter
in entry_masters.
(build_entry_thunks): Likewise for dummies in entry thunks.

PR fortran/28771
* decl.c (add_init_expr_to_sym): Remove setting of charlen for
an initializer of an assumed charlen variable.

PR fortran/28660
* trans-decl.c (generate_expr_decls): New function.
(generate_dependency_declarations): New function.
(generate_local_decl): Call previous if not either a dummy or
a declaration in an entry master.

2006-08-20 Paul Thomas [EMAIL PROTECTED]

PR fortran/28630
* gfortran.dg/used_types_2.f90: New test.

PR fortran/28601
* gfortran.dg/used_types_3.f90: New test.

PR fortran/20886
* gfortran.dg/generic_actual_arg.f90: New test.

PR fortran/28735
* gfortran.dg/module_private_array_refs_1.f90: New test.

PR fortran/28762
* gfortran.dg/program_name_1.f90: New test.

PR fortran/28425
* gfortran.dg/derived_constructor_comps_1.f90: New test.

PR fortran/28496
* gfortran.dg/array_initializer_2.f90: New test.

PR fortran/18111
* gfortran.dg/unused_artificial_dummies_1.f90: New test. 

PR fortran/28771
* gfortran.dg/assumed_charlen_in_main.f90: New test.

PR fortran/28660
* gfortran.dg/dependent_decls_1.f90: New test.

Added:
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/array_initializer_2.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/assumed_charlen_in_main.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/dependent_decls_1.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/derived_constructor_comps_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/generic_actual_arg.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/module_private_array_refs_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/program_name_1.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/unused_artificial_dummies_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/used_types_2.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/used_types_3.f90
Modified:
branches/gcc-4_1-branch/gcc/fortran/ChangeLog
branches/gcc-4_1-branch/gcc/fortran/decl.c
branches/gcc-4_1-branch/gcc/fortran/expr.c
branches/gcc-4_1-branch/gcc/fortran/gfortran.h
branches/gcc-4_1-branch/gcc/fortran/match.c
branches/gcc-4_1-branch/gcc/fortran/primary.c

[Bug fortran/28601] ICE on reexport of renamed type

2006-08-20 Thread pault at gcc dot gnu dot org


--- Comment #3 from pault at gcc dot gnu dot org  2006-08-20 08:20 ---
Subject: Bug 28601

Author: pault
Date: Sun Aug 20 08:20:26 2006
New Revision: 116269

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=116269
Log:
2006-08-20 Paul Thomas [EMAIL PROTECTED]

PR fortran/28601
PR fortran/28630
* gfortran.h : Eliminate gfc_dt_list structure and reference
to it in gfc_namespace.
* resolve.c (resolve_fl_derived): Remove the building of the
list of derived types for the current namespace.
* symbol.c (find_renamed_type): New function to find renamed
derived types by symbol name rather than symtree name.
(gfc_use_derived): Search parent namespace for identical
derived type and use it, even if local version is complete,
except in interface bodies. Ensure that renamed derived types
are found by call to find_renamed_type. Recurse for derived
type components.
(gfc_free_dt_list): Remove.
(gfc_free_namespace): Remove call to previous.
* trans-types.c (copy_dt_decls_ifequal): Remove.
(gfc_get_derived_type): Remove all the paraphenalia for
association of derived types, including calls to previous.
* match.c (gfc_match_allocate): Call gfc_use_derived to
associate any derived types that are being allocated.

PR fortran/20886
* resolve.c (resolve_actual_arglist): The passing of
a generic procedure name as an actual argument is an
error.

PR fortran/28735
* resolve.c (resolve_variable): Check for a symtree before
resolving references.

PR fortran/28762
* primary.c (match_variable): Return MATCH_NO if the symbol
is that of the program.

PR fortran/28425
* trans-expr.c (gfc_trans_subcomponent_assign): Translate
derived type component expressions other than another derived
type constructor.

PR fortran/28496
* expr.c (find_array_section): Correct errors in
the handling of a missing start value for the
index triplet in an array reference.

PR fortran/18111
* trans-decl.c (gfc_build_dummy_array_decl): Before resetting
reference to backend_decl, set it DECL_ARTIFICIAL.
(gfc_get_symbol_decl): Likewise for original dummy decl, when
a copy is made of an array.
(create_function_arglist): Likewise for the _entry paramter
in entry_masters.
(build_entry_thunks): Likewise for dummies in entry thunks.

PR fortran/28771
* decl.c (add_init_expr_to_sym): Remove setting of charlen for
an initializer of an assumed charlen variable.

PR fortran/28660
* trans-decl.c (generate_expr_decls): New function.
(generate_dependency_declarations): New function.
(generate_local_decl): Call previous if not either a dummy or
a declaration in an entry master.

2006-08-20 Paul Thomas [EMAIL PROTECTED]

PR fortran/28630
* gfortran.dg/used_types_2.f90: New test.

PR fortran/28601
* gfortran.dg/used_types_3.f90: New test.

PR fortran/20886
* gfortran.dg/generic_actual_arg.f90: New test.

PR fortran/28735
* gfortran.dg/module_private_array_refs_1.f90: New test.

PR fortran/28762
* gfortran.dg/program_name_1.f90: New test.

PR fortran/28425
* gfortran.dg/derived_constructor_comps_1.f90: New test.

PR fortran/28496
* gfortran.dg/array_initializer_2.f90: New test.

PR fortran/18111
* gfortran.dg/unused_artificial_dummies_1.f90: New test. 

PR fortran/28771
* gfortran.dg/assumed_charlen_in_main.f90: New test.

PR fortran/28660
* gfortran.dg/dependent_decls_1.f90: New test.

Added:
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/array_initializer_2.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/assumed_charlen_in_main.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/dependent_decls_1.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/derived_constructor_comps_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/generic_actual_arg.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/module_private_array_refs_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/program_name_1.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/unused_artificial_dummies_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/used_types_2.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/used_types_3.f90
Modified:
branches/gcc-4_1-branch/gcc/fortran/ChangeLog
branches/gcc-4_1-branch/gcc/fortran/decl.c
branches/gcc-4_1-branch/gcc/fortran/expr.c
branches/gcc-4_1-branch/gcc/fortran/gfortran.h
branches/gcc-4_1-branch/gcc/fortran/match.c
branches/gcc-4_1-branch/gcc/fortran/primary.c

[Bug fortran/20886] passing generic name as dummy argument

2006-08-20 Thread pault at gcc dot gnu dot org


--- Comment #4 from pault at gcc dot gnu dot org  2006-08-20 08:21 ---
Subject: Bug 20886

Author: pault
Date: Sun Aug 20 08:20:26 2006
New Revision: 116269

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=116269
Log:
2006-08-20 Paul Thomas [EMAIL PROTECTED]

PR fortran/28601
PR fortran/28630
* gfortran.h : Eliminate gfc_dt_list structure and reference
to it in gfc_namespace.
* resolve.c (resolve_fl_derived): Remove the building of the
list of derived types for the current namespace.
* symbol.c (find_renamed_type): New function to find renamed
derived types by symbol name rather than symtree name.
(gfc_use_derived): Search parent namespace for identical
derived type and use it, even if local version is complete,
except in interface bodies. Ensure that renamed derived types
are found by call to find_renamed_type. Recurse for derived
type components.
(gfc_free_dt_list): Remove.
(gfc_free_namespace): Remove call to previous.
* trans-types.c (copy_dt_decls_ifequal): Remove.
(gfc_get_derived_type): Remove all the paraphenalia for
association of derived types, including calls to previous.
* match.c (gfc_match_allocate): Call gfc_use_derived to
associate any derived types that are being allocated.

PR fortran/20886
* resolve.c (resolve_actual_arglist): The passing of
a generic procedure name as an actual argument is an
error.

PR fortran/28735
* resolve.c (resolve_variable): Check for a symtree before
resolving references.

PR fortran/28762
* primary.c (match_variable): Return MATCH_NO if the symbol
is that of the program.

PR fortran/28425
* trans-expr.c (gfc_trans_subcomponent_assign): Translate
derived type component expressions other than another derived
type constructor.

PR fortran/28496
* expr.c (find_array_section): Correct errors in
the handling of a missing start value for the
index triplet in an array reference.

PR fortran/18111
* trans-decl.c (gfc_build_dummy_array_decl): Before resetting
reference to backend_decl, set it DECL_ARTIFICIAL.
(gfc_get_symbol_decl): Likewise for original dummy decl, when
a copy is made of an array.
(create_function_arglist): Likewise for the _entry paramter
in entry_masters.
(build_entry_thunks): Likewise for dummies in entry thunks.

PR fortran/28771
* decl.c (add_init_expr_to_sym): Remove setting of charlen for
an initializer of an assumed charlen variable.

PR fortran/28660
* trans-decl.c (generate_expr_decls): New function.
(generate_dependency_declarations): New function.
(generate_local_decl): Call previous if not either a dummy or
a declaration in an entry master.

2006-08-20 Paul Thomas [EMAIL PROTECTED]

PR fortran/28630
* gfortran.dg/used_types_2.f90: New test.

PR fortran/28601
* gfortran.dg/used_types_3.f90: New test.

PR fortran/20886
* gfortran.dg/generic_actual_arg.f90: New test.

PR fortran/28735
* gfortran.dg/module_private_array_refs_1.f90: New test.

PR fortran/28762
* gfortran.dg/program_name_1.f90: New test.

PR fortran/28425
* gfortran.dg/derived_constructor_comps_1.f90: New test.

PR fortran/28496
* gfortran.dg/array_initializer_2.f90: New test.

PR fortran/18111
* gfortran.dg/unused_artificial_dummies_1.f90: New test. 

PR fortran/28771
* gfortran.dg/assumed_charlen_in_main.f90: New test.

PR fortran/28660
* gfortran.dg/dependent_decls_1.f90: New test.

Added:
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/array_initializer_2.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/assumed_charlen_in_main.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/dependent_decls_1.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/derived_constructor_comps_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/generic_actual_arg.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/module_private_array_refs_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/program_name_1.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/unused_artificial_dummies_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/used_types_2.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/used_types_3.f90
Modified:
branches/gcc-4_1-branch/gcc/fortran/ChangeLog
branches/gcc-4_1-branch/gcc/fortran/decl.c
branches/gcc-4_1-branch/gcc/fortran/expr.c
branches/gcc-4_1-branch/gcc/fortran/gfortran.h
branches/gcc-4_1-branch/gcc/fortran/match.c
branches/gcc-4_1-branch/gcc/fortran/primary.c

[Bug fortran/28762] program name 'write' causes compiler crash on if statements containing write commands.

2006-08-20 Thread pault at gcc dot gnu dot org


--- Comment #4 from pault at gcc dot gnu dot org  2006-08-20 08:21 ---
Subject: Bug 28762

Author: pault
Date: Sun Aug 20 08:20:26 2006
New Revision: 116269

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=116269
Log:
2006-08-20 Paul Thomas [EMAIL PROTECTED]

PR fortran/28601
PR fortran/28630
* gfortran.h : Eliminate gfc_dt_list structure and reference
to it in gfc_namespace.
* resolve.c (resolve_fl_derived): Remove the building of the
list of derived types for the current namespace.
* symbol.c (find_renamed_type): New function to find renamed
derived types by symbol name rather than symtree name.
(gfc_use_derived): Search parent namespace for identical
derived type and use it, even if local version is complete,
except in interface bodies. Ensure that renamed derived types
are found by call to find_renamed_type. Recurse for derived
type components.
(gfc_free_dt_list): Remove.
(gfc_free_namespace): Remove call to previous.
* trans-types.c (copy_dt_decls_ifequal): Remove.
(gfc_get_derived_type): Remove all the paraphenalia for
association of derived types, including calls to previous.
* match.c (gfc_match_allocate): Call gfc_use_derived to
associate any derived types that are being allocated.

PR fortran/20886
* resolve.c (resolve_actual_arglist): The passing of
a generic procedure name as an actual argument is an
error.

PR fortran/28735
* resolve.c (resolve_variable): Check for a symtree before
resolving references.

PR fortran/28762
* primary.c (match_variable): Return MATCH_NO if the symbol
is that of the program.

PR fortran/28425
* trans-expr.c (gfc_trans_subcomponent_assign): Translate
derived type component expressions other than another derived
type constructor.

PR fortran/28496
* expr.c (find_array_section): Correct errors in
the handling of a missing start value for the
index triplet in an array reference.

PR fortran/18111
* trans-decl.c (gfc_build_dummy_array_decl): Before resetting
reference to backend_decl, set it DECL_ARTIFICIAL.
(gfc_get_symbol_decl): Likewise for original dummy decl, when
a copy is made of an array.
(create_function_arglist): Likewise for the _entry paramter
in entry_masters.
(build_entry_thunks): Likewise for dummies in entry thunks.

PR fortran/28771
* decl.c (add_init_expr_to_sym): Remove setting of charlen for
an initializer of an assumed charlen variable.

PR fortran/28660
* trans-decl.c (generate_expr_decls): New function.
(generate_dependency_declarations): New function.
(generate_local_decl): Call previous if not either a dummy or
a declaration in an entry master.

2006-08-20 Paul Thomas [EMAIL PROTECTED]

PR fortran/28630
* gfortran.dg/used_types_2.f90: New test.

PR fortran/28601
* gfortran.dg/used_types_3.f90: New test.

PR fortran/20886
* gfortran.dg/generic_actual_arg.f90: New test.

PR fortran/28735
* gfortran.dg/module_private_array_refs_1.f90: New test.

PR fortran/28762
* gfortran.dg/program_name_1.f90: New test.

PR fortran/28425
* gfortran.dg/derived_constructor_comps_1.f90: New test.

PR fortran/28496
* gfortran.dg/array_initializer_2.f90: New test.

PR fortran/18111
* gfortran.dg/unused_artificial_dummies_1.f90: New test. 

PR fortran/28771
* gfortran.dg/assumed_charlen_in_main.f90: New test.

PR fortran/28660
* gfortran.dg/dependent_decls_1.f90: New test.

Added:
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/array_initializer_2.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/assumed_charlen_in_main.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/dependent_decls_1.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/derived_constructor_comps_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/generic_actual_arg.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/module_private_array_refs_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/program_name_1.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/unused_artificial_dummies_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/used_types_2.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/used_types_3.f90
Modified:
branches/gcc-4_1-branch/gcc/fortran/ChangeLog
branches/gcc-4_1-branch/gcc/fortran/decl.c
branches/gcc-4_1-branch/gcc/fortran/expr.c
branches/gcc-4_1-branch/gcc/fortran/gfortran.h
branches/gcc-4_1-branch/gcc/fortran/match.c
branches/gcc-4_1-branch/gcc/fortran/primary.c

[Bug fortran/28771] gfortran accepts invalid variable definition

2006-08-20 Thread pault at gcc dot gnu dot org


--- Comment #4 from pault at gcc dot gnu dot org  2006-08-20 08:21 ---
Subject: Bug 28771

Author: pault
Date: Sun Aug 20 08:20:26 2006
New Revision: 116269

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=116269
Log:
2006-08-20 Paul Thomas [EMAIL PROTECTED]

PR fortran/28601
PR fortran/28630
* gfortran.h : Eliminate gfc_dt_list structure and reference
to it in gfc_namespace.
* resolve.c (resolve_fl_derived): Remove the building of the
list of derived types for the current namespace.
* symbol.c (find_renamed_type): New function to find renamed
derived types by symbol name rather than symtree name.
(gfc_use_derived): Search parent namespace for identical
derived type and use it, even if local version is complete,
except in interface bodies. Ensure that renamed derived types
are found by call to find_renamed_type. Recurse for derived
type components.
(gfc_free_dt_list): Remove.
(gfc_free_namespace): Remove call to previous.
* trans-types.c (copy_dt_decls_ifequal): Remove.
(gfc_get_derived_type): Remove all the paraphenalia for
association of derived types, including calls to previous.
* match.c (gfc_match_allocate): Call gfc_use_derived to
associate any derived types that are being allocated.

PR fortran/20886
* resolve.c (resolve_actual_arglist): The passing of
a generic procedure name as an actual argument is an
error.

PR fortran/28735
* resolve.c (resolve_variable): Check for a symtree before
resolving references.

PR fortran/28762
* primary.c (match_variable): Return MATCH_NO if the symbol
is that of the program.

PR fortran/28425
* trans-expr.c (gfc_trans_subcomponent_assign): Translate
derived type component expressions other than another derived
type constructor.

PR fortran/28496
* expr.c (find_array_section): Correct errors in
the handling of a missing start value for the
index triplet in an array reference.

PR fortran/18111
* trans-decl.c (gfc_build_dummy_array_decl): Before resetting
reference to backend_decl, set it DECL_ARTIFICIAL.
(gfc_get_symbol_decl): Likewise for original dummy decl, when
a copy is made of an array.
(create_function_arglist): Likewise for the _entry paramter
in entry_masters.
(build_entry_thunks): Likewise for dummies in entry thunks.

PR fortran/28771
* decl.c (add_init_expr_to_sym): Remove setting of charlen for
an initializer of an assumed charlen variable.

PR fortran/28660
* trans-decl.c (generate_expr_decls): New function.
(generate_dependency_declarations): New function.
(generate_local_decl): Call previous if not either a dummy or
a declaration in an entry master.

2006-08-20 Paul Thomas [EMAIL PROTECTED]

PR fortran/28630
* gfortran.dg/used_types_2.f90: New test.

PR fortran/28601
* gfortran.dg/used_types_3.f90: New test.

PR fortran/20886
* gfortran.dg/generic_actual_arg.f90: New test.

PR fortran/28735
* gfortran.dg/module_private_array_refs_1.f90: New test.

PR fortran/28762
* gfortran.dg/program_name_1.f90: New test.

PR fortran/28425
* gfortran.dg/derived_constructor_comps_1.f90: New test.

PR fortran/28496
* gfortran.dg/array_initializer_2.f90: New test.

PR fortran/18111
* gfortran.dg/unused_artificial_dummies_1.f90: New test. 

PR fortran/28771
* gfortran.dg/assumed_charlen_in_main.f90: New test.

PR fortran/28660
* gfortran.dg/dependent_decls_1.f90: New test.

Added:
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/array_initializer_2.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/assumed_charlen_in_main.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/dependent_decls_1.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/derived_constructor_comps_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/generic_actual_arg.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/module_private_array_refs_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/program_name_1.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/unused_artificial_dummies_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/used_types_2.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/used_types_3.f90
Modified:
branches/gcc-4_1-branch/gcc/fortran/ChangeLog
branches/gcc-4_1-branch/gcc/fortran/decl.c
branches/gcc-4_1-branch/gcc/fortran/expr.c
branches/gcc-4_1-branch/gcc/fortran/gfortran.h
branches/gcc-4_1-branch/gcc/fortran/match.c
branches/gcc-4_1-branch/gcc/fortran/primary.c

[Bug fortran/28425] Derived type initialization via a derived type is broken

2006-08-20 Thread pault at gcc dot gnu dot org


--- Comment #5 from pault at gcc dot gnu dot org  2006-08-20 08:21 ---
Subject: Bug 28425

Author: pault
Date: Sun Aug 20 08:20:26 2006
New Revision: 116269

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=116269
Log:
2006-08-20 Paul Thomas [EMAIL PROTECTED]

PR fortran/28601
PR fortran/28630
* gfortran.h : Eliminate gfc_dt_list structure and reference
to it in gfc_namespace.
* resolve.c (resolve_fl_derived): Remove the building of the
list of derived types for the current namespace.
* symbol.c (find_renamed_type): New function to find renamed
derived types by symbol name rather than symtree name.
(gfc_use_derived): Search parent namespace for identical
derived type and use it, even if local version is complete,
except in interface bodies. Ensure that renamed derived types
are found by call to find_renamed_type. Recurse for derived
type components.
(gfc_free_dt_list): Remove.
(gfc_free_namespace): Remove call to previous.
* trans-types.c (copy_dt_decls_ifequal): Remove.
(gfc_get_derived_type): Remove all the paraphenalia for
association of derived types, including calls to previous.
* match.c (gfc_match_allocate): Call gfc_use_derived to
associate any derived types that are being allocated.

PR fortran/20886
* resolve.c (resolve_actual_arglist): The passing of
a generic procedure name as an actual argument is an
error.

PR fortran/28735
* resolve.c (resolve_variable): Check for a symtree before
resolving references.

PR fortran/28762
* primary.c (match_variable): Return MATCH_NO if the symbol
is that of the program.

PR fortran/28425
* trans-expr.c (gfc_trans_subcomponent_assign): Translate
derived type component expressions other than another derived
type constructor.

PR fortran/28496
* expr.c (find_array_section): Correct errors in
the handling of a missing start value for the
index triplet in an array reference.

PR fortran/18111
* trans-decl.c (gfc_build_dummy_array_decl): Before resetting
reference to backend_decl, set it DECL_ARTIFICIAL.
(gfc_get_symbol_decl): Likewise for original dummy decl, when
a copy is made of an array.
(create_function_arglist): Likewise for the _entry paramter
in entry_masters.
(build_entry_thunks): Likewise for dummies in entry thunks.

PR fortran/28771
* decl.c (add_init_expr_to_sym): Remove setting of charlen for
an initializer of an assumed charlen variable.

PR fortran/28660
* trans-decl.c (generate_expr_decls): New function.
(generate_dependency_declarations): New function.
(generate_local_decl): Call previous if not either a dummy or
a declaration in an entry master.

2006-08-20 Paul Thomas [EMAIL PROTECTED]

PR fortran/28630
* gfortran.dg/used_types_2.f90: New test.

PR fortran/28601
* gfortran.dg/used_types_3.f90: New test.

PR fortran/20886
* gfortran.dg/generic_actual_arg.f90: New test.

PR fortran/28735
* gfortran.dg/module_private_array_refs_1.f90: New test.

PR fortran/28762
* gfortran.dg/program_name_1.f90: New test.

PR fortran/28425
* gfortran.dg/derived_constructor_comps_1.f90: New test.

PR fortran/28496
* gfortran.dg/array_initializer_2.f90: New test.

PR fortran/18111
* gfortran.dg/unused_artificial_dummies_1.f90: New test. 

PR fortran/28771
* gfortran.dg/assumed_charlen_in_main.f90: New test.

PR fortran/28660
* gfortran.dg/dependent_decls_1.f90: New test.

Added:
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/array_initializer_2.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/assumed_charlen_in_main.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/dependent_decls_1.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/derived_constructor_comps_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/generic_actual_arg.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/module_private_array_refs_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/program_name_1.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/unused_artificial_dummies_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/used_types_2.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/used_types_3.f90
Modified:
branches/gcc-4_1-branch/gcc/fortran/ChangeLog
branches/gcc-4_1-branch/gcc/fortran/decl.c
branches/gcc-4_1-branch/gcc/fortran/expr.c
branches/gcc-4_1-branch/gcc/fortran/gfortran.h
branches/gcc-4_1-branch/gcc/fortran/match.c
branches/gcc-4_1-branch/gcc/fortran/primary.c

[Bug fortran/18111] spurious warnings with -W -Wunused

2006-08-20 Thread pault at gcc dot gnu dot org


--- Comment #19 from pault at gcc dot gnu dot org  2006-08-20 08:21 ---
Subject: Bug 18111

Author: pault
Date: Sun Aug 20 08:20:26 2006
New Revision: 116269

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=116269
Log:
2006-08-20 Paul Thomas [EMAIL PROTECTED]

PR fortran/28601
PR fortran/28630
* gfortran.h : Eliminate gfc_dt_list structure and reference
to it in gfc_namespace.
* resolve.c (resolve_fl_derived): Remove the building of the
list of derived types for the current namespace.
* symbol.c (find_renamed_type): New function to find renamed
derived types by symbol name rather than symtree name.
(gfc_use_derived): Search parent namespace for identical
derived type and use it, even if local version is complete,
except in interface bodies. Ensure that renamed derived types
are found by call to find_renamed_type. Recurse for derived
type components.
(gfc_free_dt_list): Remove.
(gfc_free_namespace): Remove call to previous.
* trans-types.c (copy_dt_decls_ifequal): Remove.
(gfc_get_derived_type): Remove all the paraphenalia for
association of derived types, including calls to previous.
* match.c (gfc_match_allocate): Call gfc_use_derived to
associate any derived types that are being allocated.

PR fortran/20886
* resolve.c (resolve_actual_arglist): The passing of
a generic procedure name as an actual argument is an
error.

PR fortran/28735
* resolve.c (resolve_variable): Check for a symtree before
resolving references.

PR fortran/28762
* primary.c (match_variable): Return MATCH_NO if the symbol
is that of the program.

PR fortran/28425
* trans-expr.c (gfc_trans_subcomponent_assign): Translate
derived type component expressions other than another derived
type constructor.

PR fortran/28496
* expr.c (find_array_section): Correct errors in
the handling of a missing start value for the
index triplet in an array reference.

PR fortran/18111
* trans-decl.c (gfc_build_dummy_array_decl): Before resetting
reference to backend_decl, set it DECL_ARTIFICIAL.
(gfc_get_symbol_decl): Likewise for original dummy decl, when
a copy is made of an array.
(create_function_arglist): Likewise for the _entry paramter
in entry_masters.
(build_entry_thunks): Likewise for dummies in entry thunks.

PR fortran/28771
* decl.c (add_init_expr_to_sym): Remove setting of charlen for
an initializer of an assumed charlen variable.

PR fortran/28660
* trans-decl.c (generate_expr_decls): New function.
(generate_dependency_declarations): New function.
(generate_local_decl): Call previous if not either a dummy or
a declaration in an entry master.

2006-08-20 Paul Thomas [EMAIL PROTECTED]

PR fortran/28630
* gfortran.dg/used_types_2.f90: New test.

PR fortran/28601
* gfortran.dg/used_types_3.f90: New test.

PR fortran/20886
* gfortran.dg/generic_actual_arg.f90: New test.

PR fortran/28735
* gfortran.dg/module_private_array_refs_1.f90: New test.

PR fortran/28762
* gfortran.dg/program_name_1.f90: New test.

PR fortran/28425
* gfortran.dg/derived_constructor_comps_1.f90: New test.

PR fortran/28496
* gfortran.dg/array_initializer_2.f90: New test.

PR fortran/18111
* gfortran.dg/unused_artificial_dummies_1.f90: New test. 

PR fortran/28771
* gfortran.dg/assumed_charlen_in_main.f90: New test.

PR fortran/28660
* gfortran.dg/dependent_decls_1.f90: New test.

Added:
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/array_initializer_2.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/assumed_charlen_in_main.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/dependent_decls_1.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/derived_constructor_comps_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/generic_actual_arg.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/module_private_array_refs_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/program_name_1.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/unused_artificial_dummies_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/used_types_2.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/used_types_3.f90
Modified:
branches/gcc-4_1-branch/gcc/fortran/ChangeLog
branches/gcc-4_1-branch/gcc/fortran/decl.c
branches/gcc-4_1-branch/gcc/fortran/expr.c
branches/gcc-4_1-branch/gcc/fortran/gfortran.h
branches/gcc-4_1-branch/gcc/fortran/match.c
branches/gcc-4_1-branch/gcc/fortran/primary.c

[Bug fortran/28496] Error during array initialization

2006-08-20 Thread pault at gcc dot gnu dot org


--- Comment #7 from pault at gcc dot gnu dot org  2006-08-20 08:21 ---
Subject: Bug 28496

Author: pault
Date: Sun Aug 20 08:20:26 2006
New Revision: 116269

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=116269
Log:
2006-08-20 Paul Thomas [EMAIL PROTECTED]

PR fortran/28601
PR fortran/28630
* gfortran.h : Eliminate gfc_dt_list structure and reference
to it in gfc_namespace.
* resolve.c (resolve_fl_derived): Remove the building of the
list of derived types for the current namespace.
* symbol.c (find_renamed_type): New function to find renamed
derived types by symbol name rather than symtree name.
(gfc_use_derived): Search parent namespace for identical
derived type and use it, even if local version is complete,
except in interface bodies. Ensure that renamed derived types
are found by call to find_renamed_type. Recurse for derived
type components.
(gfc_free_dt_list): Remove.
(gfc_free_namespace): Remove call to previous.
* trans-types.c (copy_dt_decls_ifequal): Remove.
(gfc_get_derived_type): Remove all the paraphenalia for
association of derived types, including calls to previous.
* match.c (gfc_match_allocate): Call gfc_use_derived to
associate any derived types that are being allocated.

PR fortran/20886
* resolve.c (resolve_actual_arglist): The passing of
a generic procedure name as an actual argument is an
error.

PR fortran/28735
* resolve.c (resolve_variable): Check for a symtree before
resolving references.

PR fortran/28762
* primary.c (match_variable): Return MATCH_NO if the symbol
is that of the program.

PR fortran/28425
* trans-expr.c (gfc_trans_subcomponent_assign): Translate
derived type component expressions other than another derived
type constructor.

PR fortran/28496
* expr.c (find_array_section): Correct errors in
the handling of a missing start value for the
index triplet in an array reference.

PR fortran/18111
* trans-decl.c (gfc_build_dummy_array_decl): Before resetting
reference to backend_decl, set it DECL_ARTIFICIAL.
(gfc_get_symbol_decl): Likewise for original dummy decl, when
a copy is made of an array.
(create_function_arglist): Likewise for the _entry paramter
in entry_masters.
(build_entry_thunks): Likewise for dummies in entry thunks.

PR fortran/28771
* decl.c (add_init_expr_to_sym): Remove setting of charlen for
an initializer of an assumed charlen variable.

PR fortran/28660
* trans-decl.c (generate_expr_decls): New function.
(generate_dependency_declarations): New function.
(generate_local_decl): Call previous if not either a dummy or
a declaration in an entry master.

2006-08-20 Paul Thomas [EMAIL PROTECTED]

PR fortran/28630
* gfortran.dg/used_types_2.f90: New test.

PR fortran/28601
* gfortran.dg/used_types_3.f90: New test.

PR fortran/20886
* gfortran.dg/generic_actual_arg.f90: New test.

PR fortran/28735
* gfortran.dg/module_private_array_refs_1.f90: New test.

PR fortran/28762
* gfortran.dg/program_name_1.f90: New test.

PR fortran/28425
* gfortran.dg/derived_constructor_comps_1.f90: New test.

PR fortran/28496
* gfortran.dg/array_initializer_2.f90: New test.

PR fortran/18111
* gfortran.dg/unused_artificial_dummies_1.f90: New test. 

PR fortran/28771
* gfortran.dg/assumed_charlen_in_main.f90: New test.

PR fortran/28660
* gfortran.dg/dependent_decls_1.f90: New test.

Added:
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/array_initializer_2.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/assumed_charlen_in_main.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/dependent_decls_1.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/derived_constructor_comps_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/generic_actual_arg.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/module_private_array_refs_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/program_name_1.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/unused_artificial_dummies_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/used_types_2.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/used_types_3.f90
Modified:
branches/gcc-4_1-branch/gcc/fortran/ChangeLog
branches/gcc-4_1-branch/gcc/fortran/decl.c
branches/gcc-4_1-branch/gcc/fortran/expr.c
branches/gcc-4_1-branch/gcc/fortran/gfortran.h
branches/gcc-4_1-branch/gcc/fortran/match.c
branches/gcc-4_1-branch/gcc/fortran/primary.c

[Bug fortran/28660] Spurious warning: 'ubound.6' is used uninitialized in this function

2006-08-20 Thread pault at gcc dot gnu dot org


--- Comment #10 from pault at gcc dot gnu dot org  2006-08-20 08:21 ---
Subject: Bug 28660

Author: pault
Date: Sun Aug 20 08:20:26 2006
New Revision: 116269

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=116269
Log:
2006-08-20 Paul Thomas [EMAIL PROTECTED]

PR fortran/28601
PR fortran/28630
* gfortran.h : Eliminate gfc_dt_list structure and reference
to it in gfc_namespace.
* resolve.c (resolve_fl_derived): Remove the building of the
list of derived types for the current namespace.
* symbol.c (find_renamed_type): New function to find renamed
derived types by symbol name rather than symtree name.
(gfc_use_derived): Search parent namespace for identical
derived type and use it, even if local version is complete,
except in interface bodies. Ensure that renamed derived types
are found by call to find_renamed_type. Recurse for derived
type components.
(gfc_free_dt_list): Remove.
(gfc_free_namespace): Remove call to previous.
* trans-types.c (copy_dt_decls_ifequal): Remove.
(gfc_get_derived_type): Remove all the paraphenalia for
association of derived types, including calls to previous.
* match.c (gfc_match_allocate): Call gfc_use_derived to
associate any derived types that are being allocated.

PR fortran/20886
* resolve.c (resolve_actual_arglist): The passing of
a generic procedure name as an actual argument is an
error.

PR fortran/28735
* resolve.c (resolve_variable): Check for a symtree before
resolving references.

PR fortran/28762
* primary.c (match_variable): Return MATCH_NO if the symbol
is that of the program.

PR fortran/28425
* trans-expr.c (gfc_trans_subcomponent_assign): Translate
derived type component expressions other than another derived
type constructor.

PR fortran/28496
* expr.c (find_array_section): Correct errors in
the handling of a missing start value for the
index triplet in an array reference.

PR fortran/18111
* trans-decl.c (gfc_build_dummy_array_decl): Before resetting
reference to backend_decl, set it DECL_ARTIFICIAL.
(gfc_get_symbol_decl): Likewise for original dummy decl, when
a copy is made of an array.
(create_function_arglist): Likewise for the _entry paramter
in entry_masters.
(build_entry_thunks): Likewise for dummies in entry thunks.

PR fortran/28771
* decl.c (add_init_expr_to_sym): Remove setting of charlen for
an initializer of an assumed charlen variable.

PR fortran/28660
* trans-decl.c (generate_expr_decls): New function.
(generate_dependency_declarations): New function.
(generate_local_decl): Call previous if not either a dummy or
a declaration in an entry master.

2006-08-20 Paul Thomas [EMAIL PROTECTED]

PR fortran/28630
* gfortran.dg/used_types_2.f90: New test.

PR fortran/28601
* gfortran.dg/used_types_3.f90: New test.

PR fortran/20886
* gfortran.dg/generic_actual_arg.f90: New test.

PR fortran/28735
* gfortran.dg/module_private_array_refs_1.f90: New test.

PR fortran/28762
* gfortran.dg/program_name_1.f90: New test.

PR fortran/28425
* gfortran.dg/derived_constructor_comps_1.f90: New test.

PR fortran/28496
* gfortran.dg/array_initializer_2.f90: New test.

PR fortran/18111
* gfortran.dg/unused_artificial_dummies_1.f90: New test. 

PR fortran/28771
* gfortran.dg/assumed_charlen_in_main.f90: New test.

PR fortran/28660
* gfortran.dg/dependent_decls_1.f90: New test.

Added:
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/array_initializer_2.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/assumed_charlen_in_main.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/dependent_decls_1.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/derived_constructor_comps_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/generic_actual_arg.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/module_private_array_refs_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/program_name_1.f90
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/unused_artificial_dummies_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/used_types_2.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/used_types_3.f90
Modified:
branches/gcc-4_1-branch/gcc/fortran/ChangeLog
branches/gcc-4_1-branch/gcc/fortran/decl.c
branches/gcc-4_1-branch/gcc/fortran/expr.c
branches/gcc-4_1-branch/gcc/fortran/gfortran.h
branches/gcc-4_1-branch/gcc/fortran/match.c
branches/gcc-4_1-branch/gcc/fortran/primary.c

[Bug middle-end/28648] [4.2 regression] ICE with invalid dllimport attribute

2006-08-20 Thread dannysmith at gcc dot gnu dot org


--- Comment #2 from dannysmith at gcc dot gnu dot org  2006-08-20 08:46 
---
Subject: Bug 28648

Author: dannysmith
Date: Sun Aug 20 08:46:13 2006
New Revision: 116270

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=116270
Log:
PR target/28648 c:
* tree.c (handle_dll_attribute): Return early if not a
var or function decl.

testsuite
* gcc.dg/attr-invalid.c: Add tests for invalid dllimport.


Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/attr-invalid.c
trunk/gcc/tree.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28648



[Bug middle-end/28648] [4.2 regression] ICE with invalid dllimport attribute

2006-08-20 Thread dannysmith at users dot sourceforge dot net


--- Comment #3 from dannysmith at users dot sourceforge dot net  2006-08-20 
08:48 ---
Fixed on trunk.


-- 

dannysmith at users dot sourceforge dot net changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28648



[Bug c++/28782] New: Internal compiler error on compiling SpiderMonkey project

2006-08-20 Thread yair at finjan dot com
Step to reproduce:
1) Download SpiderMonkey sources from:
ftp://ftp.mozilla.org/pub/mozilla.org/js/js-1.5.tar.gz
2) Build the stand alone version, by typing: 'Make -f Makefile.ref'.


Output:
...
...
...
gcc -o Linux_All_DBG.OBJ/jscpucfg.o -c -Wall -Wno-format -DGCC_OPT_BUG -g
-DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R
-DX86_LINUX  -DDEBUG -DDEBUG_root -DEDITLINE -ILinux_All_DBG.OBJ  jscpucfg.c
jscpucfg.c:376: internal compiler error: in dwarf2out_finish, at
dwarf2out.c:14117
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see URL:file:///usr/share/doc/gcc-4.1/README.Bugs.
Preprocessed source stored into /tmp/ccrKDiYn.out file, please attach this to
your bugreport.
make[1]: *** [Linux_All_DBG.OBJ/jscpucfg.o] Error 1
make[1]: Leaving directory `/spiderMonkey/js/src'


-- 
   Summary: Internal compiler error on compiling SpiderMonkey
project
   Product: gcc
   Version: 4.1.2
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: yair at finjan dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28782



[Bug c++/28782] Internal compiler error on compiling SpiderMonkey project

2006-08-20 Thread yair at finjan dot com


-- 

yair at finjan dot com changed:

   What|Removed |Added

   Severity|normal  |critical


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28782



[Bug c++/28783] New: Probably a typof() extension problem

2006-08-20 Thread v dot haisman at sh dot cvut dot cz
The attached test case has been reported to fail to compile in [EMAIL PROTECTED]
channel. I am not even sure if it is valid or not, but since its author didn't
seem to report it and it is an ICE across all compilers I have, I report it
instead of the author.

The problem looks like this:

$ g++-4.1 -save-temps -fpreprocessed -c -o bind.o bind.ii
bind.cxx:36: internal compiler error: in write_type, at cp/mangle.c:1651
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.

It is the same with GCC 3.4.4, just on different line in mangle.c.

It fails on both Cygwin and FreeBSD. The attached preprocessed source is from
Cygwin. I tried to reduce it a bit but I didn't manage to do so, at least not
too much. For completeness, I attach also the original source.


-- 
   Summary: Probably a typof() extension problem
   Product: gcc
   Version: 4.1.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: v dot haisman at sh dot cvut dot cz
 GCC build triplet: *-*-*
  GCC host triplet: *-*-*
GCC target triplet: *-*-*


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28783



[Bug c++/28783] Probably a typof() extension problem

2006-08-20 Thread v dot haisman at sh dot cvut dot cz


--- Comment #1 from v dot haisman at sh dot cvut dot cz  2006-08-20 09:00 
---
Created an attachment (id=12101)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12101action=view)
Original test case


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28783



[Bug c++/28783] Probably a typof() extension problem

2006-08-20 Thread v dot haisman at sh dot cvut dot cz


--- Comment #2 from v dot haisman at sh dot cvut dot cz  2006-08-20 09:02 
---
Created an attachment (id=12102)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12102action=view)
Very lightly reduced preprocessed source.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28783



[Bug c++/28783] Probably a typof() extension problem

2006-08-20 Thread rguenth at gcc dot gnu dot org


--- Comment #3 from rguenth at gcc dot gnu dot org  2006-08-20 09:08 ---
Happens with 3.4, 4.0, 4.1 and mainline, reducing.


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

  Known to fail|3.4.4 4.1.1 |3.4.6 4.0.3 4.1.2 4.2.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28783



[Bug c++/28782] Internal compiler error on compiling SpiderMonkey project

2006-08-20 Thread rguenth at gcc dot gnu dot org


--- Comment #1 from rguenth at gcc dot gnu dot org  2006-08-20 09:14 ---


*** This bug has been marked as a duplicate of 26881 ***


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28782



[Bug debug/26881] [4.1/4.2 Regression] internal compiler error in dwarf2out_finish

2006-08-20 Thread rguenth at gcc dot gnu dot org


--- Comment #17 from rguenth at gcc dot gnu dot org  2006-08-20 09:14 
---
*** Bug 28782 has been marked as a duplicate of this bug. ***


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||yair at finjan dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26881



[Bug fortran/25828] [f2003] ACCESS='STREAM' io support

2006-08-20 Thread jb at gcc dot gnu dot org


--- Comment #10 from jb at gcc dot gnu dot org  2006-08-20 09:22 ---
Subject: Bug 25828

Author: jb
Date: Sun Aug 20 09:22:04 2006
New Revision: 116271

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=116271
Log:
2006-08-20  Janne Blomqvist  [EMAIL PROTECTED]

PR fortran/25828
* gfortran.texi: Mention STREAM I/O among supported F2003
features.


Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/gfortran.texi


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25828



[Bug bootstrap/28784] New: [4.2 regression] Bootstrap comparison failure

2006-08-20 Thread schwab at suse dot de
Since about 3 weeks bootstrap is failing due to comparison failure on
java/decl.o (no other object file is affected).  It first started with r115810,
then went away with r115850, but reoccurred with r115851.  Since then it
reoccurred often but irregularily.  Bootstrap is currently failing for three
days now.
When running the compilation command for java/decl.o manually the resulting
object file is identical to the stage2 object file, which means that there is
an environmental dependency in the generated code.  Bootstrapping with
--enable-checking=all didn't show any error, the comparison failure remained.


-- 
   Summary: [4.2 regression] Bootstrap comparison failure
   Product: gcc
   Version: 4.2.0
Status: UNCONFIRMED
  Keywords: build
  Severity: normal
  Priority: P3
 Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: schwab at suse dot de
GCC target triplet: ia64-suse-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28784



[Bug bootstrap/28784] [4.2 regression] Bootstrap comparison failure

2006-08-20 Thread schwab at suse dot de


--- Comment #1 from schwab at suse dot de  2006-08-20 09:36 ---
Created an attachment (id=12103)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12103action=view)
Diff of objdump -d output


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28784



[Bug c/28744] externally_visible attribute not effective with prior declaration of symbol.

2006-08-20 Thread hubicka at ucw dot cz


--- Comment #11 from hubicka at ucw dot cz  2006-08-20 12:42 ---
Subject: Re:  externally_visible attribute not effective with prior declaration
of symbol.

 Is there any reason why process_function_and_variable_attributes is called
 at the end of each TU rather than when all TUs were already parsed?

The reason is that we do unreachable function removal after each unit
(to conserve memory) and for that we do need to process USED attributes
(not really the externally_visible as those are used only in
cgraph_optimize).  Keeping handling of USED attributes at TU basis,
while moving externally_visible to global basis would not completely
work, since USED attributes in whole program mode can be used for public
variables too, pretty much as externally_visible is used in the
testcase.

I guess only solution is to process all TU local objects at the end of
each TU and all global objects at the cgraph_optimize stage.  I will
post the patch for this.

Thank you for looking into those dead ends!
Honza


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28744



[Bug debug/26881] [4.1/4.2 Regression] internal compiler error in dwarf2out_finish

2006-08-20 Thread hubicka at ucw dot cz


--- Comment #18 from hubicka at ucw dot cz  2006-08-20 12:47 ---
Subject: Re:  [4.1/4.2 Regression] internal compiler error in dwarf2out_finish

 (In reply to comment #14)
 Any news on the patch?

Sadly we are having just tip of the iceberg here.  The patch to deffer
output of debug symbols later sort of work, but I noticed there are
other PRs related to problem where optimized out static variable is
still referred to by debug info, so I attempted to move debug output
code to cgraph domain and failed to do so.  The problem is that we are
quite inconsistent in way we do handle the optimized out variables.  In
some cases we do emit debug output for them, in other we don't and
in another we ICE depending on case and forntend.

I guess I will back out and implement the deferring itself without
touching the whole issue for start.  THen we probably ought to teach
debug info output machinery to query cgraph about whether the particular
variable was output or not and output the location or optimized out info
and move the debug output to cgraph at last (for both local and external
stuff, so we will need new datastructure in cgraph holding all
declarations in program somehow, as this is for now maintained only by
frontends)

Honza


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26881



[Bug c/28744] externally_visible attribute not effective with prior declaration of symbol.

2006-08-20 Thread aldot at gcc dot gnu dot org


--- Comment #12 from aldot at gcc dot gnu dot org  2006-08-20 12:53 ---
(In reply to comment #11)
 Subject: Re:  externally_visible attribute not effective with prior 
 declaration
 of symbol.
 
  Is there any reason why process_function_and_variable_attributes is called
  at the end of each TU rather than when all TUs were already parsed?
 
 The reason is that we do unreachable function removal after each unit
 (to conserve memory) and for that we do need to process USED attributes
 (not really the externally_visible as those are used only in
 cgraph_optimize).  Keeping handling of USED attributes at TU basis,
 while moving externally_visible to global basis would not completely
 work, since USED attributes in whole program mode can be used for public
 variables too, pretty much as externally_visible is used in the
 testcase.

If this is really true, then there are several bugs (in the FEs?) because there
are numerous occurances where referenced_vars_insert() is called with
TREE_USED(to) == 0

Should there be an assertion that only TREE_USED()  0 are valid targets for
insertion in/after dfa?
 
 I guess only solution is to process all TU local objects at the end of
 each TU and all global objects at the cgraph_optimize stage.  I will
 post the patch for this.
 
 Thank you for looking into those dead ends!
 Honza
 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28744



[Bug c/28744] externally_visible attribute not effective with prior declaration of symbol.

2006-08-20 Thread hubicka at ucw dot cz


--- Comment #13 from hubicka at ucw dot cz  2006-08-20 12:59 ---
Subject: Re:  externally_visible attribute not effective with prior declaration
of symbol.

 
 If this is really true, then there are several bugs (in the FEs?) because 
 there
 are numerous occurances where referenced_vars_insert() is called with
 TREE_USED(to) == 0
 
 Should there be an assertion that only TREE_USED()  0 are valid targets for
 insertion in/after dfa?

I am not quite convinced there is necesarily a problem, since from
frontend point of view all public variables are automatically used, so
the whole thing matters only for the cgraph code were we start to
differentiate -fwhole-program mode from non-whole-program...

Honza


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28744



[Bug c/28744] externally_visible attribute not effective with prior declaration of symbol.

2006-08-20 Thread hubicka at ucw dot cz


--- Comment #14 from hubicka at ucw dot cz  2006-08-20 13:12 ---
Subject: Re:  externally_visible attribute not effective with prior declaration
of symbol.

Hi,
this is patch I am testing now.  Can you think of way to break it
(again? :))
The whole thing is a lot more sliperly than I would like it to be...

Honza

Index: cgraphunit.c
===
*** cgraphunit.c(revision 116257)
--- cgraphunit.c(working copy)
*** cgraph_analyze_function (struct cgraph_n
*** 965,975 
 is valid.

 So, we walk the nodes at the end of the translation unit, applying the
!attributes at that point.  */

  static void
  process_function_and_variable_attributes (struct cgraph_node *first,
!   struct cgraph_varpool_node
*first_var)
  {
struct cgraph_node *node;
struct cgraph_varpool_node *vnode;
--- 985,1002 
 is valid.

 So, we walk the nodes at the end of the translation unit, applying the
!attributes at that point. 
!
!The local variables needs to be walked on the end of each compilation unit
!(to allow dead function/variable removal), while the global variables
needs
!to be handled on the end of compilation to allow flags to be declared only
!in one of units.  The GLOBAL is used to specify whether local or global
!variables shall be processed.  */

  static void
  process_function_and_variable_attributes (struct cgraph_node *first,
!   struct cgraph_varpool_node
*first_var,
! bool global)
  {
struct cgraph_node *node;
struct cgraph_varpool_node *vnode;
*** process_function_and_variable_attributes
*** 977,982 
--- 1004,1012 
for (node = cgraph_nodes; node != first; node = node-next)
  {
tree decl = node-decl;
+   if (global != (DECL_COMDAT (decl)
+|| (TREE_PUBLIC (decl)  !DECL_EXTERNAL (decl
+   continue;
if (lookup_attribute (used, DECL_ATTRIBUTES (decl)))
{
  mark_decl_referenced (decl);
*** process_function_and_variable_attributes
*** 1000,1005 
--- 1030,1037 
for (vnode = cgraph_varpool_nodes; vnode != first_var; vnode = vnode-next)
  {
tree decl = vnode-decl;
+   if (global != (DECL_COMDAT (decl) || TREE_PUBLIC (decl)))
+   continue;
if (lookup_attribute (used, DECL_ATTRIBUTES (decl)))
{
  mark_decl_referenced (decl);
*** cgraph_finalize_compilation_unit (void)
*** 1052,1058 
  }

timevar_push (TV_CGRAPH);
!   process_function_and_variable_attributes (first_analyzed,
first_analyzed_var);
cgraph_varpool_analyze_pending_decls ();
if (cgraph_dump_file)
  {
--- 1085,1092 
  }

timevar_push (TV_CGRAPH);
!   process_function_and_variable_attributes (first_analyzed,
first_analyzed_var,
!   false);
cgraph_varpool_analyze_pending_decls ();
if (cgraph_dump_file)
  {
*** cgraph_optimize (void)
*** 1505,1512 

timevar_push (TV_CGRAPHOPT);
if (!quiet_flag)
! fprintf (stderr, Performing intraprocedural optimizations\n);

cgraph_function_and_variable_visibility ();
if (cgraph_dump_file)
  {
--- 1540,1548 

timevar_push (TV_CGRAPHOPT);
if (!quiet_flag)
! fprintf (stderr, Performing interprocedural optimizations\n);

+   process_function_and_variable_attributes (NULL, NULL, true);
cgraph_function_and_variable_visibility ();
if (cgraph_dump_file)
  {


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28744



[Bug c/28744] externally_visible attribute not effective with prior declaration of symbol.

2006-08-20 Thread aldot at gcc dot gnu dot org


--- Comment #15 from aldot at gcc dot gnu dot org  2006-08-20 13:15 ---
(In reply to comment #13)
 Subject: Re:  externally_visible attribute not effective with prior 
 declaration
 of symbol.
 
  
  If this is really true, then there are several bugs (in the FEs?) because 
  there
  are numerous occurances where referenced_vars_insert() is called with
  TREE_USED(to) == 0
  
  Should there be an assertion that only TREE_USED()  0 are valid targets for
  insertion in/after dfa?
 
 I am not quite convinced there is necesarily a problem, since from
 frontend point of view all public variables are automatically used, so
 the whole thing matters only for the cgraph code were we start to
 differentiate -fwhole-program mode from non-whole-program...

For publics, i'd agree, but still there are clearly private funcs that have
TREE_USED == 0, like:

../../../src/gcc-4.2/libiberty/regex.c:4445: warning:  referenced_var_insert(): 
'' == 0

Where
4441: static reg_errcode_t
4442: byte_compile_range (unsigned int range_start_char, const char **p_ptr,
4443:const char *pend, RE_TRANSLATE_TYPE translate,
:reg_syntax_t syntax, unsigned char *b)
4445: {

Aren't these bugs since they clearly are not public and TREE_USED is 0 when
referenced_vars_insert is called on them?

Why are public funcs not marked USED?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28744



[Bug bootstrap/28784] [4.2 regression] Bootstrap comparison failure

2006-08-20 Thread schwab at suse dot de


--- Comment #2 from schwab at suse dot de  2006-08-20 14:21 ---
Created an attachment (id=12104)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12104action=view)
Diff of compiler dumps

All dumps before mach are identical.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28784



[Bug c++/28783] Probably a typof() extension problem

2006-08-20 Thread rguenth at gcc dot gnu dot org


--- Comment #4 from rguenth at gcc dot gnu dot org  2006-08-20 14:25 ---
Confirmed.  Reduced testcase:

namespace boost{
  namespace lambda {
template class T0, class T1 class tuple;
template int I struct placeholder {};
template int I, class Act class action;
template class Base class lambda_functor;
template class Act, class Args class lambda_functor_base;
enum {  FIRST = 0x01, SECOND = 0x02};
template int I class function_action {};
templateclass Act, class Args class lambda_functor_baseaction2, Act,
Args {};
typedef const lambda_functorplaceholderSECOND  placeholder2_type;
template class T class lambda_functor : public T {};
boost::lambda::placeholder2_type free2 =
boost::lambda::placeholder2_type();
boost::lambda::placeholder2_type _2 = free2;
template class Arg1, class Arg2 lambda_functor   lambda_functor_base   
 action2, function_action2 , tupleconst Arg1, const Arg2bind(const
Arg1 a1, const Arg2 a2) {}
  }
}
using namespace boost::lambda;
struct MyPair {
  int second;
};
templatetypename lambda_type typeof(bind(MyPair::second, lambda_type()))
get_score(lambda_type lambda){}
int main() {
  get_score(_2);
}


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2006-08-20 14:25:42
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28783



[Bug bootstrap/28784] [4.2 regression] Bootstrap comparison failure

2006-08-20 Thread schwab at suse dot de


--- Comment #3 from schwab at suse dot de  2006-08-20 14:29 ---
Created an attachment (id=12105)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12105action=view)
stage3 mach dump


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28784



[Bug fortran/20541] TR 15581: ALLOCATABLE components

2006-08-20 Thread howarth at nitro dot med dot uc dot edu


--- Comment #18 from howarth at nitro dot med dot uc dot edu  2006-08-20 
14:37 ---
With the latest changes to gcc/fortran/trans-expr.c the current proposed patch
no longer applies. The code which is tangling up the patch is...

***
*** 2664,2683 
  }
else if (cm-dimension)
  {
-   tmp = gfc_trans_subarray_assign (dest, cm, expr);
-   gfc_add_expr_to_block (block, tmp);
  }
else if (expr-ts.type == BT_DERIVED)
  {
/* Nested derived type.  */
-   tmp = gfc_trans_structure_assign (dest, expr);
gfc_add_expr_to_block (block, tmp);
  }
else
  {
/* Scalar component.  */
-   gfc_se lse;
- 
gfc_init_se (se, NULL);
gfc_init_se (lse, NULL);

where we now have an additional if (expr-expr_type != EXPR_STRUCTURE)
inserted. Is the current proposed patch still valid in this section with minor
adjustments so that it applies or will the proposed code have to be modified
due to the changes here?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20541



[Bug c++/28742] [4.2 regression] ICE with virtual destructor in invalid template class

2006-08-20 Thread rguenth at gcc dot gnu dot org


--- Comment #1 from rguenth at gcc dot gnu dot org  2006-08-20 15:15 ---
Confirmed.


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2006-08-20 15:15:59
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28742



[Bug c++/28783] Probably a typof() extension problem

2006-08-20 Thread pinskia at gcc dot gnu dot org


--- Comment #5 from pinskia at gcc dot gnu dot org  2006-08-20 15:20 ---


*** This bug has been marked as a duplicate of 13740 ***


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28783



[Bug c++/13740] ICE when mangling template which uses typeof

2006-08-20 Thread pinskia at gcc dot gnu dot org


--- Comment #10 from pinskia at gcc dot gnu dot org  2006-08-20 15:20 
---
*** Bug 28783 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||v dot haisman at sh dot cvut
   ||dot cz


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13740



[Bug bootstrap/28784] [4.2 regression] Bootstrap comparison failure

2006-08-20 Thread schwab at suse dot de


--- Comment #4 from schwab at suse dot de  2006-08-20 15:24 ---
The bug is very sensitive on the environment size.  Adding -da makes it go
away, adding -da -da makes it reappear.  Looks like some decision is made on
the low bits of an address.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28784



[Bug tree-optimization/23955] [4.0/4.1/4.2 Regression] Compile time regressions with tramp3d

2006-08-20 Thread rguenth at gcc dot gnu dot org


--- Comment #7 from rguenth at gcc dot gnu dot org  2006-08-20 15:30 ---
Compile time without leafify is comparable to 3.4 for mainline now.  Still we
have a memory usage regression.

Execution times (seconds)
 garbage collection:   3.96 ( 4%) usr   0.09 ( 1%) sys   4.04 ( 3%) wall   
   0 kB ( 0%) ggc
 callgraph construction:   0.63 ( 1%) usr   0.00 ( 0%) sys   0.62 ( 1%) wall   
5468 kB ( 0%) ggc
 callgraph optimization:   0.05 ( 0%) usr   0.01 ( 0%) sys   0.07 ( 0%) wall   
 907 kB ( 0%) ggc
 ipa reference :   0.29 ( 0%) usr   0.01 ( 0%) sys   0.31 ( 0%) wall   
  73 kB ( 0%) ggc
 ipa pure const:   0.02 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 0%) wall   
   0 kB ( 0%) ggc
 ipa type escape   :   0.52 ( 0%) usr   0.02 ( 0%) sys   0.54 ( 0%) wall   
   0 kB ( 0%) ggc
 cfg cleanup   :   0.97 ( 1%) usr   0.00 ( 0%) sys   0.85 ( 1%) wall   
1781 kB ( 0%) ggc
 trivially dead code   :   0.47 ( 0%) usr   0.00 ( 0%) sys   0.50 ( 0%) wall   
   0 kB ( 0%) ggc
 life analysis :   2.54 ( 2%) usr   0.02 ( 0%) sys   2.53 ( 2%) wall   
2004 kB ( 0%) ggc
 life info update  :   0.56 ( 1%) usr   0.00 ( 0%) sys   0.47 ( 0%) wall   
 307 kB ( 0%) ggc
 alias analysis:   0.84 ( 1%) usr   0.00 ( 0%) sys   0.81 ( 1%) wall   
6697 kB ( 1%) ggc
 register scan :   0.40 ( 0%) usr   0.00 ( 0%) sys   0.45 ( 0%) wall   
  29 kB ( 0%) ggc
 rebuild jump labels   :   0.09 ( 0%) usr   0.00 ( 0%) sys   0.15 ( 0%) wall   
   0 kB ( 0%) ggc
 preprocessing :   0.30 ( 0%) usr   0.30 ( 4%) sys   0.63 ( 1%) wall   
 689 kB ( 0%) ggc
 parser:   4.86 ( 4%) usr   0.83 (12%) sys   5.83 ( 5%) wall 
184259 kB (15%) ggc
 name lookup   :   2.23 ( 2%) usr   1.15 (17%) sys   3.46 ( 3%) wall  
42862 kB ( 3%) ggc
 inline heuristics :   0.16 ( 0%) usr   0.00 ( 0%) sys   0.16 ( 0%) wall   
2380 kB ( 0%) ggc
 integration   :   5.98 ( 6%) usr   0.16 ( 2%) sys   6.20 ( 5%) wall 
341270 kB (28%) ggc
 tree gimplify :   0.67 ( 1%) usr   0.02 ( 0%) sys   0.71 ( 1%) wall  
11380 kB ( 1%) ggc
 tree eh   :   0.17 ( 0%) usr   0.01 ( 0%) sys   0.13 ( 0%) wall   
9395 kB ( 1%) ggc
 tree CFG construction :   0.05 ( 0%) usr   0.02 ( 0%) sys   0.12 ( 0%) wall  
22091 kB ( 2%) ggc
 tree CFG cleanup  :   2.16 ( 2%) usr   0.04 ( 1%) sys   2.40 ( 2%) wall   
8684 kB ( 1%) ggc
 tree VRP  :   2.68 ( 2%) usr   0.09 ( 1%) sys   2.83 ( 2%) wall  
19757 kB ( 2%) ggc
 tree copy propagation :   0.81 ( 1%) usr   0.04 ( 1%) sys   0.86 ( 1%) wall   
 935 kB ( 0%) ggc
 tree store copy prop  :   0.31 ( 0%) usr   0.00 ( 0%) sys   0.34 ( 0%) wall   
 288 kB ( 0%) ggc
 tree find ref. vars   :   0.55 ( 1%) usr   0.02 ( 0%) sys   0.55 ( 0%) wall  
40405 kB ( 3%) ggc
 tree PTA  :   4.42 ( 4%) usr   0.05 ( 1%) sys   4.41 ( 4%) wall  
11384 kB ( 1%) ggc
 tree alias analysis   :   4.31 ( 4%) usr   0.71 (11%) sys   4.95 ( 4%) wall  
19415 kB ( 2%) ggc
 tree PHI insertion:   0.40 ( 0%) usr   0.01 ( 0%) sys   0.30 ( 0%) wall   
5894 kB ( 0%) ggc
 tree SSA rewrite  :   2.59 ( 2%) usr   0.02 ( 0%) sys   2.53 ( 2%) wall  
58070 kB ( 5%) ggc
 tree SSA other:   0.48 ( 0%) usr   0.35 ( 5%) sys   1.00 ( 1%) wall   
   0 kB ( 0%) ggc
 tree SSA incremental  :   4.68 ( 4%) usr   0.19 ( 3%) sys   4.88 ( 4%) wall  
20145 kB ( 2%) ggc
 tree operand scan :  13.12 (12%) usr   1.60 (24%) sys  14.93 (13%) wall  
86301 kB ( 7%) ggc
 dominator optimization:   2.48 ( 2%) usr   0.04 ( 1%) sys   2.82 ( 2%) wall  
18570 kB ( 2%) ggc
 tree SRA  :   0.21 ( 0%) usr   0.01 ( 0%) sys   0.25 ( 0%) wall   
2503 kB ( 0%) ggc
 tree STORE-CCP:   0.32 ( 0%) usr   0.00 ( 0%) sys   0.21 ( 0%) wall   
 259 kB ( 0%) ggc
 tree CCP  :   0.90 ( 1%) usr   0.03 ( 0%) sys   0.80 ( 1%) wall   
3322 kB ( 0%) ggc
 tree PHI const/copy prop:   0.09 ( 0%) usr   0.00 ( 0%) sys   0.08 ( 0%) wall 
 4 kB ( 0%) ggc
 tree split crit edges :   0.08 ( 0%) usr   0.01 ( 0%) sys   0.10 ( 0%) wall   
9952 kB ( 1%) ggc
 tree reassociation:   0.15 ( 0%) usr   0.00 ( 0%) sys   0.19 ( 0%) wall   
 254 kB ( 0%) ggc
 tree PRE  :   3.89 ( 4%) usr   0.03 ( 0%) sys   3.92 ( 3%) wall  
49143 kB ( 4%) ggc
 tree FRE  :   1.63 ( 1%) usr   0.04 ( 1%) sys   1.66 ( 1%) wall  
24719 kB ( 2%) ggc
 tree code sinking :   0.18 ( 0%) usr   0.00 ( 0%) sys   0.12 ( 0%) wall   
  70 kB ( 0%) ggc
 tree linearize phis   :   0.01 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 0%) wall   
   9 kB ( 0%) ggc
 tree forward propagate:   0.99 ( 1%) usr   0.10 ( 1%) sys   1.06 ( 1%) wall  
43550 kB ( 4%) ggc
 tree conservative DCE :   0.87 ( 1%) usr   0.00 ( 0%) sys   0.83 ( 1%) wall   
   0 kB ( 0%) ggc
 tree aggressive DCE   :   0.25 ( 0%) usr   0.00 ( 0%) sys   0.25 ( 0%) wall   
   0 kB ( 0%) ggc
 tree DSE  :   0.11 ( 0%) usr   0.00 ( 0%) sys   0.13 ( 0%) wall   
 228 kB ( 0%) ggc
 PHI merge :   0.01 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 0%) 

[Bug bootstrap/28784] [4.2 regression] Bootstrap comparison failure

2006-08-20 Thread pinskia at gcc dot gnu dot org


--- Comment #5 from pinskia at gcc dot gnu dot org  2006-08-20 15:39 ---
I really don't think this is a regression, this is most likely related to PR
20586 or PR 28752.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

  BugsThisDependsOn||20586, 28752


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28784



[Bug fortran/25217] Derived type dummy argument having intent(out) attribute

2006-08-20 Thread eedelman at gcc dot gnu dot org


--- Comment #7 from eedelman at gcc dot gnu dot org  2006-08-20 16:24 
---
(In reply to comment #6)
 Eric, can this bug be closed as FIXED now?
 

Yes, I would say so.


-- 

eedelman at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25217



[Bug middle-end/28776] [4.2 Regression] dwarf2out.c:2160: ICE: in build_polynomial_chrec, at tree-chrec.h:108

2006-08-20 Thread rguenth at gcc dot gnu dot org


--- Comment #9 from rguenth at gcc dot gnu dot org  2006-08-20 16:44 ---
Caused by

 2006-04-02  Sebastian Pop  [EMAIL PROTECTED]

...
+   * tree-chrec.h (build_polynomial_chrec): Insert an assert to check
+   the types of the operands.
...

for the testcase in comment #6 we have the two types

 type pointer_type 0xa7cebf18 dw_fde_ref
type record_type 0xa7cebe04 dw_fde_struct sizes-gimplified type_0 SI
size integer_cst 0xa7c5f3f0 constant invariant 32
unit size integer_cst 0xa7c5f180 constant invariant 4
align 32 symtab 0 alias set 4 fields field_decl 0xa7cebe60 decl
context translation_unit_decl 0xa7c77f08 D.1540
pointer_to_this pointer_type 0xa7cebebc chain type_decl
0xa7c77dd0 D.1520
sizes-gimplified public unsigned SI size integer_cst 0xa7c5f3f0 32
unit size integer_cst 0xa7c5f180 4
align 32 symtab 0 alias set -1

and

 pointer_type 0xa7cebebc
type record_type 0xa7cebe04 dw_fde_struct sizes-gimplified type_0 SI
size integer_cst 0xa7c5f3f0 constant invariant 32
unit size integer_cst 0xa7c5f180 constant invariant 4
align 32 symtab 0 alias set 4
fields field_decl 0xa7cebe60 decl type integer_type 0xa7c71284 int
SI file t.i line 3 size integer_cst 0xa7c5f3f0 32 unit size
integer_cst 0xa7c5f180 4
align 32 offset_align 128
offset integer_cst 0xa7c5f198 constant invariant 0
bit offset integer_cst 0xa7c5f978 constant invariant 0 context
record_type 0xa7cebe04 dw_fde_struct context translation_unit_decl
0xa7c77f08 D.1540
pointer_to_this pointer_type 0xa7cebebc chain type_decl 0xa7c77dd0
D.1520
sizes-gimplified public unsigned SI size integer_cst 0xa7c5f3f0 32 unit
size integer_cst 0xa7c5f180 4
align 32 symtab 0 alias set 2

note the identical TREE_TYPE (type).  And note that we have a NOP_EXPR
wrapping the correct type.

We arrive there by fold_used_pointer, which is simplifying casts but not
re-folding the arguments to the plus/minus in

  if (code == PLUS_EXPR)
expr = chrec_fold_plus (TREE_TYPE (expr), new0, new1);
  else
expr = chrec_fold_minus (TREE_TYPE (expr), new0, new1);

The following fixes it:

Index: tree-scalar-evolution.c
===
*** tree-scalar-evolution.c (revision 116257)
--- tree-scalar-evolution.c (working copy)
*** fold_used_pointer (tree expr)
*** 1847,1852 
--- 1847,1854 
if (new0 == op0  new1 == op1)
return expr;

+   new0 = chrec_convert (TREE_TYPE (expr), new0, NULL_TREE);
+   new1 = chrec_convert (TREE_TYPE (expr), new1, NULL_TREE);
if (code == PLUS_EXPR)
expr = chrec_fold_plus (TREE_TYPE (expr), new0, new1);
else


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28776



[Bug middle-end/28776] [4.2 Regression] dwarf2out.c:2160: ICE: in build_polynomial_chrec, at tree-chrec.h:108

2006-08-20 Thread pinskia at gcc dot gnu dot org


--- Comment #10 from pinskia at gcc dot gnu dot org  2006-08-20 16:48 
---
No this was caused by:
2006-08-16  Zdenek Dvorak [EMAIL PROTECTED]
* tree-scalar-evolution.c (fold_used_pointer_cast, pointer_offset_p,
fold_used_pointer, pointer_used_p): New functions.

as fold_used_pointer is new.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28776



[Bug fortran/28601] ICE on reexport of renamed type

2006-08-20 Thread pault at gcc dot gnu dot org


--- Comment #4 from pault at gcc dot gnu dot org  2006-08-20 17:29 ---
Fixed on trunk and 4.1

Paul


-- 

pault at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28601



[Bug fortran/28630] ICE due to a module function returning a derived type

2006-08-20 Thread pault at gcc dot gnu dot org


--- Comment #6 from pault at gcc dot gnu dot org  2006-08-20 17:29 ---
Fixed on trunk and 4.1

Paul


-- 

pault at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28630



[Bug fortran/20541] TR 15581: ALLOCATABLE components

2006-08-20 Thread eedelman at gcc dot gnu dot org


--- Comment #19 from eedelman at gcc dot gnu dot org  2006-08-20 17:38 
---
Created an attachment (id=12106)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12106action=view)
Updated patch

Fixes the conflicts with recently committed patches.


-- 

eedelman at gcc dot gnu dot org changed:

   What|Removed |Added

  Attachment #12060|0   |1
is obsolete||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20541



[Bug fortran/28735] Crash in resolve.c - related to contents of .mod

2006-08-20 Thread pault at gcc dot gnu dot org


--- Comment #12 from pault at gcc dot gnu dot org  2006-08-20 17:45 ---
Fixed on trunk and 4.1

Paul


-- 

pault at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28735



[Bug fortran/28660] Spurious warning: 'ubound.6' is used uninitialized in this function

2006-08-20 Thread pault at gcc dot gnu dot org


--- Comment #11 from pault at gcc dot gnu dot org  2006-08-20 17:48 ---
Fixed on trunk and 4.1

Paul


-- 

pault at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28660



[Bug fortran/28762] program name 'write' causes compiler crash on if statements containing write commands.

2006-08-20 Thread pault at gcc dot gnu dot org


--- Comment #5 from pault at gcc dot gnu dot org  2006-08-20 17:50 ---
Fixed on trunk and 4.1

Paul


-- 

pault at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28762



[Bug fortran/28425] Derived type initialization via a derived type is broken

2006-08-20 Thread pault at gcc dot gnu dot org


--- Comment #6 from pault at gcc dot gnu dot org  2006-08-20 18:08 ---
Fixed on trunk and 4.1

Paul


-- 

pault at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28425



[Bug fortran/28771] gfortran accepts invalid variable definition

2006-08-20 Thread pault at gcc dot gnu dot org


--- Comment #5 from pault at gcc dot gnu dot org  2006-08-20 18:08 ---
Fixed on trunk and 4.1

Paul


-- 

pault at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28771



[Bug fortran/28496] Error during array initialization

2006-08-20 Thread pault at gcc dot gnu dot org


--- Comment #8 from pault at gcc dot gnu dot org  2006-08-20 18:09 ---
Fixed on trunk and 4.1

Paul


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28496



[Bug fortran/18111] spurious warnings with -W -Wunused

2006-08-20 Thread pault at gcc dot gnu dot org


--- Comment #20 from pault at gcc dot gnu dot org  2006-08-20 18:10 ---
Fixed on trunk and 4.1

Paul


-- 

pault at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18111



[Bug fortran/28600] [4.2 regression] ICE on character pointer assignment

2006-08-20 Thread pault at gcc dot gnu dot org


--- Comment #9 from pault at gcc dot gnu dot org  2006-08-20 18:11 ---
Fixed

Paul


-- 

pault at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28600



[Bug fortran/28496] Error during array initialization

2006-08-20 Thread pault at gcc dot gnu dot org


--- Comment #9 from pault at gcc dot gnu dot org  2006-08-20 18:13 ---
Fixed on trunk and 4.1

Paul


-- 

pault at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28496



[Bug middle-end/28779] internal compiler error: in cgraph_estimate_size_after_inlining, at ipa-inline.c:106

2006-08-20 Thread hubicka at gcc dot gnu dot org


--- Comment #8 from hubicka at gcc dot gnu dot org  2006-08-20 18:47 ---
Subject: Bug 28779

Author: hubicka
Date: Sun Aug 20 18:46:54 2006
New Revision: 116274

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=116274
Log:
PR middle-end/28779
* ipa-inline.c (cgraph_decide_inlining, cgraph_early_inlining): Compute
function body sizes.
* cgraphunit.c (cgraph_analyze_function): Don't do so.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/cgraphunit.c
trunk/gcc/ipa-inline.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28779



[Bug c++/28785] New: internal compiler error

2006-08-20 Thread smirolo at hotmail dot com
Using friend functions into template classes, I get an internal error.

GNU C++ version 4.0.1 (Apple Computer, Inc. build 5363) (powerpc-apple-darwin8)
compiled by GNU C version 4.0.1 (Apple Computer, Inc. build 5363).
GGC heuristics: --param ggc-min-expand=65 --param ggc-min-heapsize=65536
Compiler executable checksum: ce9235a98d7fdb10daff64ff72fa17f5
../../include/viewAsGraph.hh: In instantiation of
'viewAsGraphstd::vectoredgeTest, std::allocatoredgeTest  ':
../src/viewAsGraphTest.cc:21:   instantiated from here
../../include/viewAsGraph.hh:153: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://developer.apple.com/bugreporter for instructions.


-- 
   Summary: internal compiler error
   Product: gcc
   Version: 4.0.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: smirolo at hotmail dot com
 GCC build triplet: powerpc-apple-darwin8
  GCC host triplet: powerpc-apple-darwin8
GCC target triplet: powerpc-apple-darwin8


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28785



[Bug c++/28785] internal compiler error

2006-08-20 Thread smirolo at hotmail dot com


--- Comment #1 from smirolo at hotmail dot com  2006-08-20 18:57 ---
Created an attachment (id=12107)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12107action=view)
.ii and .log (stdout/stderr) files

compilation command line:

g++ -v --save-temps -g -O0  -I../../include -I. -I../include
-I/Volumes/Home/Users/smirolo/workarea/ootbc/mini/include
../src/viewAsGraphTest.cc -o viewAsGraphTest  viewAsGraphTest.log 21


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28785



[Bug c++/28785] internal compiler error

2006-08-20 Thread smirolo at hotmail dot com


--- Comment #2 from smirolo at hotmail dot com  2006-08-20 19:06 ---
Actually, I have the following two definitions:

  friend vertex_descriptor
  source( const edge_descriptor e, const viewAsGraph g );

  friend const vertex_descriptor 
  source( const edge_descriptor e, const viewAsGraph g );

This is an error as both function have the same prototype according to C++.
None the less, the compiler should report an error message and not an internal
error in my opinion.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28785



[Bug fortran/25102] Procedure for interface assignment must have two dummy arguments

2006-08-20 Thread patchapp at dberlin dot org


--- Comment #4 from patchapp at dberlin dot org  2006-08-20 20:20 ---
Subject: Bug number PR25102

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-08/msg00729.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25102



[Bug fortran/20441] -finit-local-zero is missing from gfortran

2006-08-20 Thread tobias dot burnus at physik dot fu-berlin dot de


--- Comment #3 from tobias dot burnus at physik dot fu-berlin dot de  
2006-08-20 20:51 ---
Besides zero initialization (of Real, complex, integer, (what about logical?)),
a initialization to a (signaling) NaN (for complex, real) would be also nice to
find uninitialized variables.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20441



[Bug middle-end/28493] [4.1/4.2 Regression] Wrong address of stack object used for destructor call on PPC

2006-08-20 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28493



[Bug target/28574] [4.2 regression] switch statement points to unreferenced label at -O2

2006-08-20 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28574



[Bug target/28583] [4.2 regression] ICE in default_secondary_reload, at targhooks.c:532 when building libgcc2.c as _divsc3.o

2006-08-20 Thread mmitchel at gcc dot gnu dot org


--- Comment #4 from mmitchel at gcc dot gnu dot org  2006-08-20 22:25 
---
FRV is not a primary or secondary target.


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P5


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28583



[Bug c++/28588] [4.0/4.1/4.2 Regression] static private function

2006-08-20 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28588



[Bug c++/28595] [4.1/4.2 regression] ICE with invalid const static variable

2006-08-20 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28595



[Bug target/28621] [4.1/4.2 Regression] SIGSEGV in set_fast_math () at -Os

2006-08-20 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28621



[Bug target/27537] XMM alignment fault when compiling for i386 with -Os

2006-08-20 Thread mmitchel at gcc dot gnu dot org


--- Comment #9 from mmitchel at gcc dot gnu dot org  2006-08-20 22:29 
---
It is definitely a bug to change the ABI with -Os.  Since GCC relies on the
stack being 16-byte aligned, -Os must in fact honor that requirement.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27537



[Bug target/28623] [4.1/4.2 regression] ICE in extract_insn, at recog.c:2077 (nrecognizable insn) [alpha]

2006-08-20 Thread mmitchel at gcc dot gnu dot org


--- Comment #3 from mmitchel at gcc dot gnu dot org  2006-08-20 22:30 
---
Alpha is not a primary or secondary platform.


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P5


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28623



[Bug tree-optimization/28624] [4.2 regression] latent segfault in remove_phi_node

2006-08-20 Thread mmitchel at gcc dot gnu dot org


--- Comment #3 from mmitchel at gcc dot gnu dot org  2006-08-20 22:31 
---
Until a bug is demonstrated with the current sourcebase, this is not a
priority.


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28624



[Bug c++/28639] [4.2 regression] ICE trying to print error on invalid template parameter

2006-08-20 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28639



[Bug c++/28641] [4.2 regression] ICE calling template function with invalid template parameter

2006-08-20 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28641



[Bug middle-end/28642] [4.0/4.1/4.2 Regression] ICE in layout_type, at stor-layout.c:1851

2006-08-20 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28642



[Bug c++/28659] [4.2 regression] ICE (segfault) while compiling kdelibs 4.0 snapshot

2006-08-20 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28659



[Bug java/28663] [4.2 regression] gcj fails to binary-compile eclipse's javac

2006-08-20 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P5


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28663



[Bug libstdc++/28671] [4.2 regression] undefined reference to `__sync_fetch_and_add_4'

2006-08-20 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28671



[Bug target/28672] [4.2 Regression]: Gcc went into infinite loop when building libstdc++

2006-08-20 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28672



[Bug target/28675] [4.1/4.2 regression] ICE in extract_insn, at recog.c:2084 (unrecognizable insn) [arm]

2006-08-20 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28675



[Bug middle-end/28683] [4.0/4.1/4.2 regression] ICE (segfault in add_reg_br_prob_note) when comparing pointers with -O (and higher)

2006-08-20 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28683



[Bug debug/28692] [4.2 Regression] ICE in rtl_for_decl_init, at dwarf2out.c

2006-08-20 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28692



[Bug c++/28705] [4.0/4.1/4.2 Regression] ICE: in type_dependent_expression_p, at cp/pt.c:12837

2006-08-20 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Keywords|ice-on-valid-code   |ice-on-invalid-code
   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28705



[Bug c/28706] [4.1/4.2 Regression] Compile failure with --combine and explicitly aligned structures

2006-08-20 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28706



[Bug preprocessor/28709] [4.0/4.1/4.2 regression] Bad diagnostic pasting tokens with ##

2006-08-20 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28709



[Bug c/28712] [4.0/4.1/4.2 Regression] Compile failure with --combine and packed structures.

2006-08-20 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28712



[Bug c++/28736] [4.2 regression] ICE with friend of invalid template class

2006-08-20 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28736



[Bug c++/28737] [4.2 regression] ICE using invalid template class in specialization

2006-08-20 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28737



[Bug c++/28738] [4.2 regression] ICE specializing invalid template class

2006-08-20 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28738



[Bug c++/28739] [4.2 regression] ICE specializing template member of invalid template class

2006-08-20 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28739



[Bug c++/28740] [4.0/4.1/4.2 regression] ICE with invalid inheritance

2006-08-20 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28740



[Bug c++/28741] [4.2 regression] ICE with static member in invalid template class

2006-08-20 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28741



[Bug c++/28742] [4.2 regression] ICE with virtual destructor in invalid template class

2006-08-20 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28742



[Bug c++/28743] [4.1/4.2 regression] ICE with invalid specialization

2006-08-20 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28743



  1   2   >