This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/44945] [4.6 Regression] FAIL: gfortran.dg/char_array_structure_constructor.f90
- From: "dominiq at lps dot ens dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jul 2010 16:25:10 -0000
- Subject: [Bug middle-end/44945] [4.6 Regression] FAIL: gfortran.dg/char_array_structure_constructor.f90
- References: <bug-44945-12313@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from dominiq at lps dot ens dot fr 2010-07-15 16:25 -------
> a) _gfortran_compare_string is now PURE,
> http://gcc.gnu.org/viewcvs?view=revision&revision=162160
The test passes with the following patch:
--- ../_clean/gcc/fortran/trans-decl.c 2010-07-15 18:05:19.000000000 +0200
+++ gcc/fortran/trans-decl.c 2010-07-15 18:07:53.000000000 +0200
@@ -2412,7 +2412,7 @@ gfc_build_intrinsic_function_decls (void
get_identifier (PREFIX("compare_string")), "..R.R",
integer_type_node, 4, gfc_charlen_type_node, pchar1_type_node,
gfc_charlen_type_node, pchar1_type_node);
- DECL_PURE_P (gfor_fndecl_compare_string) = 1;
+ /* DECL_PURE_P (gfor_fndecl_compare_string) = 1; */
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44945