re PR libfortran/79956 (many new -Wmaybe-uninitialized warnings with bootstrap-O3)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Fri, 17 Mar 2017 21:27:08 +0000 (21:27 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Fri, 17 Mar 2017 21:27:08 +0000 (21:27 +0000)
2017-03-17  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR libfortran/79956
* m4/reshape.m4 (reshape_'rtype_ccode`):  Correct use
of GFC_ASSERT.
* generated/reshape_c10.c: Regenerated.
* generated/reshape_c16.c: Regenerated.
* generated/reshape_c4.c: Regenerated.
* generated/reshape_c8.c: Regenerated.
* generated/reshape_i16.c: Regenerated.
* generated/reshape_i4.c: Regenerated.
* generated/reshape_i8.c: Regenerated.
* generated/reshape_r10.c: Regenerated.
* generated/reshape_r16.c: Regenerated.
* generated/reshape_r4.c: Regenerated.
* generated/reshape_r8.c: Regenerated.

From-SVN: r246248

13 files changed:
libgfortran/ChangeLog
libgfortran/generated/reshape_c10.c
libgfortran/generated/reshape_c16.c
libgfortran/generated/reshape_c4.c
libgfortran/generated/reshape_c8.c
libgfortran/generated/reshape_i16.c
libgfortran/generated/reshape_i4.c
libgfortran/generated/reshape_i8.c
libgfortran/generated/reshape_r10.c
libgfortran/generated/reshape_r16.c
libgfortran/generated/reshape_r4.c
libgfortran/generated/reshape_r8.c
libgfortran/m4/reshape.m4

index 6ec73f6..96b75e9 100644 (file)
@@ -1,3 +1,20 @@
+2017-03-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
+
+       PR libfortran/79956
+       * m4/reshape.m4 (reshape_'rtype_ccode`):  Correct use
+       of GFC_ASSERT.
+       * generated/reshape_c10.c: Regenerated.
+       * generated/reshape_c16.c: Regenerated.
+       * generated/reshape_c4.c: Regenerated.
+       * generated/reshape_c8.c: Regenerated.
+       * generated/reshape_i16.c: Regenerated.
+       * generated/reshape_i4.c: Regenerated.
+       * generated/reshape_i8.c: Regenerated.
+       * generated/reshape_r10.c: Regenerated.
+       * generated/reshape_r16.c: Regenerated.
+       * generated/reshape_r4.c: Regenerated.
+       * generated/reshape_r8.c: Regenerated.
+
 2017-03-15  NightStrike  <nightstrike@gmail.com>
            Janne Blomqvist  <jb@gcc.gnu.org>
 
index af45e96..ce6c9a2 100644 (file)
@@ -80,7 +80,7 @@ reshape_c10 (gfc_array_c10 * const restrict ret,
   rdim = GFC_DESCRIPTOR_EXTENT(shape,0);
   /* rdim is always > 0; this lets the compiler optimize more and
    avoids a potential warning.  */
-  GFC_ASSERT(sdim>0);
+  GFC_ASSERT(rdim>0);
 
   if (rdim != GFC_DESCRIPTOR_RANK(ret))
     runtime_error("rank of return array incorrect in RESHAPE intrinsic");
index 977a53d..4ca6722 100644 (file)
@@ -80,7 +80,7 @@ reshape_c16 (gfc_array_c16 * const restrict ret,
   rdim = GFC_DESCRIPTOR_EXTENT(shape,0);
   /* rdim is always > 0; this lets the compiler optimize more and
    avoids a potential warning.  */
-  GFC_ASSERT(sdim>0);
+  GFC_ASSERT(rdim>0);
 
   if (rdim != GFC_DESCRIPTOR_RANK(ret))
     runtime_error("rank of return array incorrect in RESHAPE intrinsic");
index fd94689..dc1b8ee 100644 (file)
@@ -80,7 +80,7 @@ reshape_c4 (gfc_array_c4 * const restrict ret,
   rdim = GFC_DESCRIPTOR_EXTENT(shape,0);
   /* rdim is always > 0; this lets the compiler optimize more and
    avoids a potential warning.  */
-  GFC_ASSERT(sdim>0);
+  GFC_ASSERT(rdim>0);
 
   if (rdim != GFC_DESCRIPTOR_RANK(ret))
     runtime_error("rank of return array incorrect in RESHAPE intrinsic");
index 6377049..88d03d7 100644 (file)
@@ -80,7 +80,7 @@ reshape_c8 (gfc_array_c8 * const restrict ret,
   rdim = GFC_DESCRIPTOR_EXTENT(shape,0);
   /* rdim is always > 0; this lets the compiler optimize more and
    avoids a potential warning.  */
-  GFC_ASSERT(sdim>0);
+  GFC_ASSERT(rdim>0);
 
   if (rdim != GFC_DESCRIPTOR_RANK(ret))
     runtime_error("rank of return array incorrect in RESHAPE intrinsic");
index 65576a3..fd5e8e7 100644 (file)
@@ -80,7 +80,7 @@ reshape_16 (gfc_array_i16 * const restrict ret,
   rdim = GFC_DESCRIPTOR_EXTENT(shape,0);
   /* rdim is always > 0; this lets the compiler optimize more and
    avoids a potential warning.  */
-  GFC_ASSERT(sdim>0);
+  GFC_ASSERT(rdim>0);
 
   if (rdim != GFC_DESCRIPTOR_RANK(ret))
     runtime_error("rank of return array incorrect in RESHAPE intrinsic");
index d07b3a9..149d185 100644 (file)
@@ -80,7 +80,7 @@ reshape_4 (gfc_array_i4 * const restrict ret,
   rdim = GFC_DESCRIPTOR_EXTENT(shape,0);
   /* rdim is always > 0; this lets the compiler optimize more and
    avoids a potential warning.  */
-  GFC_ASSERT(sdim>0);
+  GFC_ASSERT(rdim>0);
 
   if (rdim != GFC_DESCRIPTOR_RANK(ret))
     runtime_error("rank of return array incorrect in RESHAPE intrinsic");
index f48728d..a4c95a2 100644 (file)
@@ -80,7 +80,7 @@ reshape_8 (gfc_array_i8 * const restrict ret,
   rdim = GFC_DESCRIPTOR_EXTENT(shape,0);
   /* rdim is always > 0; this lets the compiler optimize more and
    avoids a potential warning.  */
-  GFC_ASSERT(sdim>0);
+  GFC_ASSERT(rdim>0);
 
   if (rdim != GFC_DESCRIPTOR_RANK(ret))
     runtime_error("rank of return array incorrect in RESHAPE intrinsic");
index a5722d4..47e803f 100644 (file)
@@ -80,7 +80,7 @@ reshape_r10 (gfc_array_r10 * const restrict ret,
   rdim = GFC_DESCRIPTOR_EXTENT(shape,0);
   /* rdim is always > 0; this lets the compiler optimize more and
    avoids a potential warning.  */
-  GFC_ASSERT(sdim>0);
+  GFC_ASSERT(rdim>0);
 
   if (rdim != GFC_DESCRIPTOR_RANK(ret))
     runtime_error("rank of return array incorrect in RESHAPE intrinsic");
index c56b871..c210dfd 100644 (file)
@@ -80,7 +80,7 @@ reshape_r16 (gfc_array_r16 * const restrict ret,
   rdim = GFC_DESCRIPTOR_EXTENT(shape,0);
   /* rdim is always > 0; this lets the compiler optimize more and
    avoids a potential warning.  */
-  GFC_ASSERT(sdim>0);
+  GFC_ASSERT(rdim>0);
 
   if (rdim != GFC_DESCRIPTOR_RANK(ret))
     runtime_error("rank of return array incorrect in RESHAPE intrinsic");
index 889813c..a4f9b07 100644 (file)
@@ -80,7 +80,7 @@ reshape_r4 (gfc_array_r4 * const restrict ret,
   rdim = GFC_DESCRIPTOR_EXTENT(shape,0);
   /* rdim is always > 0; this lets the compiler optimize more and
    avoids a potential warning.  */
-  GFC_ASSERT(sdim>0);
+  GFC_ASSERT(rdim>0);
 
   if (rdim != GFC_DESCRIPTOR_RANK(ret))
     runtime_error("rank of return array incorrect in RESHAPE intrinsic");
index 279f89d..955463c 100644 (file)
@@ -80,7 +80,7 @@ reshape_r8 (gfc_array_r8 * const restrict ret,
   rdim = GFC_DESCRIPTOR_EXTENT(shape,0);
   /* rdim is always > 0; this lets the compiler optimize more and
    avoids a potential warning.  */
-  GFC_ASSERT(sdim>0);
+  GFC_ASSERT(rdim>0);
 
   if (rdim != GFC_DESCRIPTOR_RANK(ret))
     runtime_error("rank of return array incorrect in RESHAPE intrinsic");
index 5ad1f13..346d538 100644 (file)
@@ -84,7 +84,7 @@ reshape_'rtype_ccode` ('rtype` * const restrict ret,
   rdim = GFC_DESCRIPTOR_EXTENT(shape,0);
   /* rdim is always > 0; this lets the compiler optimize more and
    avoids a potential warning.  */
-  GFC_ASSERT(sdim>0);
+  GFC_ASSERT(rdim>0);
 
   if (rdim != GFC_DESCRIPTOR_RANK(ret))
     runtime_error("rank of return array incorrect in RESHAPE intrinsic");