[Bug fortran/29539] ICE in variable_decl
--- Comment #9 from chaoyingfu at gcc dot gnu dot org 2006-12-01 00:35 --- Subject: Bug 29539 Author: chaoyingfu Date: Fri Dec 1 00:32:38 2006 New Revision: 119391 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119391 Log: Merged revisions 118545-118650 via svnmerge from svn+ssh://[EMAIL PROTECTED]/svn/gcc/trunk r118545 | burnus | 2006-11-07 05:27:53 -0800 (Tue, 07 Nov 2006) | 29 lines fortran/ 2006-11-06 Tobias Burnus <[EMAIL PROTECTED]> PR fortran/29601 * symbol.c (check_conflict, gfc_add_volatile): Add volatile support. * decl.c (match_attr_spec, gfc_match_volatile): Add volatile support. * gfortran.h (symbol_attribute): Add volatile_ to struct. * resolve.c (was_declared): Add volatile support. * trans-decl.c (gfc_finish_var_decl): Add volatile support. * match.h: Declare gfc_match_volatile. * parse.c (decode_statement): Recognize volatile. * modules.c (ab_attribute, attr_bits, mio_symbol_attribute): Add volatile support. * dump-parse-tree.c (gfc_show_attr): Add volatile support. testsuite/ 2006-11-06 Tobias Burnus <[EMAIL PROTECTED]> PR fortran/29601 * gfortran.dg/volatile.f90: Add. * gfortran.dg/volatile2.f90: Add. * gfortran.dg/volatile3.f90: Add. * gfortran.dg/volatile4.f90: Add. * gfortran.dg/volatile5.f90: Add. * gfortran.dg/volatile6.f90: Add. * gfortran.dg/volatile7.f90: Add. r118546 | davidu | 2006-11-07 06:08:55 -0800 (Tue, 07 Nov 2006) | 3 lines * config/mips/mips.h (ISA_HAS_PREFETCHX): Add ISA_MIPS32R2 to the list. r118547 | jiez | 2006-11-07 06:24:58 -0800 (Tue, 07 Nov 2006) | 3 lines * gcc.c (process_command): Treat -b as normal switch if its argument has no dash. r118550 | davidu | 2006-11-07 06:28:08 -0800 (Tue, 07 Nov 2006) | 5 lines * config/mips/mips.c (mips_rtx_cost_optimize_size): New table of costs when optimizing for size. (override_options): Use mips_rtx_cost_optimize_size table for cost calculations. r118552 | jules | 2006-11-07 07:16:07 -0800 (Tue, 07 Nov 2006) | 6 lines * floatformat.c (get_field): Fix segfault with little-endian word order on 64-bit hosts. (put_field): Likewise. (min): Move definition. r118553 | pault | 2006-11-07 07:17:17 -0800 (Tue, 07 Nov 2006) | 17 lines 2006-11-07 Paul Thomas <[EMAIL PROTECTED]> PR fortran/29539 PR fortran/29634 * decl.c (variable_decl): Add test for presence of proc_name. * error.c (gfc_error_flag_test): New function. * gfortran.h : Prototype for gfc_error_flag_test. 2006-11-07 Paul Thomas <[EMAIL PROTECTED]> PR fortran/29539 * gfortran.dg/gfortran.dg/blockdata_3.f90: New test. PR fortran/29634 * gfortran.dg/gfortran.dg/derived_function_interface_1.f90: New test. r118554 | bkoz | 2006-11-07 08:55:49 -0800 (Tue, 07 Nov 2006) | 49 lines 2006-11-07 Benjamin Kosnik <[EMAIL PROTECTED]> * include/ext/pb_ds/exception.hpp (pb_ds): Modify for -fno-exceptions. (__throw_container_error): New. Conditionalize based on __EXCEPTIONS. (__throw_insert_error): New. (__throw_join_error): New. (__throw_resize_error): New. * include/ext/pb_ds/detail/resize_policy/ hash_prime_size_policy_imp.hpp: Use them. * include/ext/pb_ds/detail/resize_policy/ hash_exponential_size_policy_imp.hpp: Same. * include/ext/pb_ds/detail/resize_policy/ hash_load_check_resize_trigger_imp.hpp: Same. * include/ext/pb_ds/detail/resize_policy/ hash_standard_resize_policy_imp.hpp: Same. * include/ext/pb_ds/detail/cc_hash_table_map_/resize_fn_imps.hpp * include/ext/pb_ds/detail/cc_hash_table_map_/ constructor_destructor_fn_imps.hpp: Same. * include/ext/pb_ds/detail/pat_trie_/insert_join_fn_imps.hpp * include/ext/pb_ds/detail/pat_trie_/split_join_branch_bag.hpp * include/ext/pb_ds/detail/pat_trie_/ constructors_destructor_fn_imps.hpp: Same. * include/ext/pb_ds/detail/bin_search_tree_/ constructors_destructor_fn_imps.hpp: Same. * include/ext/pb_ds/detail/bin_search_tree_/ split_join_fn_imps.hpp: Same. * include/ext/pb_ds/detail/gp_hash_table_map_/ insert_no_store_hash_fn_imps.hpp: Same. * include/ext/pb_ds/detail/gp_hash_table_map_/ resize_store_hash_fn_imps.hpp: Same. * include/ext/pb_ds/detail/gp_hash_table_map_/ insert_store_hash_fn_imps.hpp: Same. * include/ext/pb_ds/detail/gp_hash_table_map_/resize_fn_imps.hpp: Same. * include/ext/pb_ds/detail/gp_hash_table_map_/ constructor_destructor_fn_imps.hpp: Same. * include/ext/pb_ds/detail/gp_hash_table_map_/ resize_no_store_hash_fn_imps.hpp: Sam
[Bug fortran/29539] ICE in variable_decl
--- Comment #8 from pault at gcc dot gnu dot org 2006-11-10 17:14 --- Fixed on trunk and 4.2. It will be fixed on 4.1 just as soon as I catch up with myself. 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=29539
[Bug fortran/29539] ICE in variable_decl
--- Comment #7 from pault at gcc dot gnu dot org 2006-11-10 17:08 --- Subject: Bug 29539 Author: pault Date: Fri Nov 10 17:08:11 2006 New Revision: 118658 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118658 Log: 2006-11-10 Paul Thomas <[EMAIL PROTECTED]> PR fortran/29539 PR fortran/29634 * decl.c (variable_decl): Add test for presence of proc_name. (gfc_match_data_decl): Only emit error if there are none already flagged. * error.c (gfc_error_flag_test): New function. * gfortran.h : Prototype for gfc_error_flag_test. 2006-11-10 Paul Thomas <[EMAIL PROTECTED]> PR fortran/29539 * gfortran.dg/gfortran.dg/blockdata_3.f90: New test. PR fortran/29634 * gfortran.dg/gfortran.dg/derived_function_interface_1.f90: New test. Added: branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/blockdata_3.f90 branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/derived_function_interface_1.f90 Modified: branches/gcc-4_2-branch/gcc/fortran/ChangeLog branches/gcc-4_2-branch/gcc/fortran/decl.c branches/gcc-4_2-branch/gcc/fortran/error.c branches/gcc-4_2-branch/gcc/fortran/gfortran.h branches/gcc-4_2-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29539
[Bug fortran/29539] ICE in variable_decl
--- Comment #6 from pault at gcc dot gnu dot org 2006-11-07 15:17 --- Subject: Bug 29539 Author: pault Date: Tue Nov 7 15:17:17 2006 New Revision: 118553 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118553 Log: 2006-11-07 Paul Thomas <[EMAIL PROTECTED]> PR fortran/29539 PR fortran/29634 * decl.c (variable_decl): Add test for presence of proc_name. * error.c (gfc_error_flag_test): New function. * gfortran.h : Prototype for gfc_error_flag_test. 2006-11-07 Paul Thomas <[EMAIL PROTECTED]> PR fortran/29539 * gfortran.dg/gfortran.dg/blockdata_3.f90: New test. PR fortran/29634 * gfortran.dg/gfortran.dg/derived_function_interface_1.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/blockdata_3.f90 trunk/gcc/testsuite/gfortran.dg/derived_function_interface_1.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/decl.c trunk/gcc/fortran/error.c trunk/gcc/fortran/gfortran.h trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29539
[Bug fortran/29539] ICE in variable_decl
--- Comment #5 from patchapp at dberlin dot org 2006-11-05 21:40 --- Subject: Bug number PR29539 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-11/msg00271.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29539
[Bug fortran/29539] ICE in variable_decl
--- Comment #4 from pault at gcc dot gnu dot org 2006-11-02 06:37 --- (In reply to comment #3) > Yes, from the looks it will also fix pr29634. > I submitted half of the patch already to fix PR29565; I will submit the rest this morning or this evening, depending on how long I take to fix that error message. Paul -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29539
[Bug fortran/29539] ICE in variable_decl
--- Comment #3 from aldot at gcc dot gnu dot org 2006-11-01 19:29 --- Yes, from the looks it will also fix pr29634. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29539
[Bug fortran/29539] ICE in variable_decl
--- Comment #2 from fxcoudert at gcc dot gnu dot org 2006-10-29 10:45 --- An ICE at the same line of code was reported as PR 29634. Maybe your patch fixes both? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29539
[Bug fortran/29539] ICE in variable_decl
--- Comment #1 from pault at gcc dot gnu dot org 2006-10-23 09:49 --- Created an attachment (id=12478) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12478&action=view) Provisional fix for the PR This not only fixes the PR but the modification to trans-types allows a data statement to include components of the derived type: ! { dg-compile } ! { dg-options "-W -Wall" } block data common /c/ d(5), cc type c_t sequence integer i end type c_t type (c_t) :: cc data d /5*1./ data cc%i /5/ end common /c/ d(5), cc type c_t sequence integer i end type c_t type (c_t) :: cc print *, d print *, cc end Works correctly. Putting the data statement before the derived type declaration produces a syntax error; Lahey warns that the derived type declaration will have to be confirmed. I will see if it can be fixed easily; if not I'll throw an error, which says what to do; eg. "the derived type is used before it is defined." Paul -- pault at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |pault at gcc dot gnu dot org |dot org | Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29539
[Bug fortran/29539] ICE in variable_decl
-- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords||ice-on-valid-code Last reconfirmed|-00-00 00:00:00 |2006-10-22 19:04:57 date|| Target Milestone|4.2.0 |--- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29539
[Bug fortran/29539] ICE in variable_decl
-- aldot at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.2.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29539