One of the issues are lines:

module.cc 7125-7130: Here it is assumed that the signed and unsigned types are
adjacent maybe?!

I have changed this:

diff --git a/gcc/fortran/module.cc b/gcc/fortran/module.cc
index c4312b641c1..05bc802957e 100644
--- a/gcc/fortran/module.cc
+++ b/gcc/fortran/module.cc
@@ -7113,8 +7113,8 @@ use_iso_fortran_env_module (void)
   int i, j;

   intmod_sym symbol[] = {
-#define NAMED_INTCST(a,b,c,d) { a, b, 0, d },
-#define NAMED_UINTCST(a,b,c,d) { a, b, 0, d },
+#define NAMED_INTCST(a, b, c, d) {a, b, c, d},
+#define NAMED_UINTCST(a, b, c, d) {a, b, c, d},
 #define NAMED_KINDARRAY(a,b,c,d) { a, b, 0, d },
 #define NAMED_DERIVED_TYPE(a,b,c,d) { a, b, 0, d },
 #define NAMED_FUNCTION(a,b,c,d) { a, b, c, d },
@@ -7122,12 +7122,12 @@ use_iso_fortran_env_module (void)
 #include "iso-fortran-env.def"
     { ISOFORTRANENV_INVALID, NULL, -1234, 0 } };

-  i = 0;
-#define NAMED_INTCST(a,b,c,d) symbol[i++].value = c;
-#include "iso-fortran-env.def"
+  //   i = 0;
+  // #define NAMED_INTCST(a,b,c,d) symbol[i++].value = c;
+  // #include "iso-fortran-env.def"

-#define NAMED_UINTCST(a,b,c,d) symbol[i++].value = c;
-#include "iso-fortran-env.def"
+  // #define NAMED_UINTCST(a,b,c,d) symbol[i++].value = c;
+  // #include "iso-fortran-env.def"

   /* Generate the symbol for the module itself.  */
   mod_symtree = gfc_find_symtree (gfc_current_ns->sym_root, mod);


And at least iso_fortran_env_8.f90 does not fail anymore.

Now regtesting.

- Andre
On Wed, 8 Jan 2025 15:59:43 +0100
Jakub Jelinek <ja...@redhat.com> wrote:

> On Wed, Jan 08, 2025 at 03:48:46PM +0100, Andre Vehreschild wrote:
> > Hi,
> >
> > I have added this small patch (attached). Unfortunately I got regressions
> >
> > some in iso_fortran_env_8.f90
> > and several in unsigned_NN.f90 tests.
> >
> > Just retesting w/o my patch and already seeing the iso_fortran_env one
> > again. I am also not totally sure, that I applied both your patches
> > correctly. But they applied w/o issues with patch -p0.
>
> I can reproduce it.  It is the second patch, will try to debug...
>
>       Jakub
>


--
Andre Vehreschild * Email: vehre ad gmx dot de

Reply via email to