This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/44945] [4.6 Regression] FAIL: gfortran.dg/char_array_structure_constructor.f90



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]