Your message dated Sun, 30 Jun 2024 14:46:00 +0000
with message-id <e1snvow-00eex2...@fasolo.debian.org>
and subject line Bug#1071140: fixed in gcc-14 14.1.0-3
has caused the Debian Bug report #1071140,
regarding gcc-14: internal compiler error: in find_or_generate_expression, at 
tree-ssa-pre.cc:2780 on riscv64
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1071140: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1071140
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: gcc-14
Version: 14-20240429-1
Severity: important
X-Debbugs-Cc: numbk...@gmail.com

Dear Maintainer,

We found a gcc internal compiler error when compile a c source code(from
ksco):


```
#include <riscv_vector.h>
typedef int npy_intp;
static inline __attribute__(()) int vaddq_f32();
static inline __attribute__(()) int npyv_load2_tillz_f32(int nlane) {
  vint32m1_t __trans_tmp_9;
  {
    int __trans_tmp_10 = nlane;
    {
      vint32m1_t __trans_tmp_8;
      vint64m1_t __trans_tmp_6;
      vint64m1_t __trans_tmp_4;
      vint64m1_t __trans_tmp_3;
      vint64m1_t __trans_tmp_2;
      vint64m1_t __trans_tmp_1;
      if (__trans_tmp_10 == 1) {
        {
          __trans_tmp_3 =
              __riscv_vslideup_vx_i64m1(__trans_tmp_1, __trans_tmp_2, 1, 2);
        }
        __trans_tmp_4 = __trans_tmp_3;
      }
      __trans_tmp_6 = __trans_tmp_3;
      __trans_tmp_8 = __riscv_vreinterpret_v_i64m1_i32m1(__trans_tmp_3);
      __trans_tmp_9 = __trans_tmp_8;
    }
  }
  return vaddq_f32(__trans_tmp_9);
}
char CFLOAT_add_args_2;
char CFLOAT_add_args_1;
char CFLOAT_add_args_0;
const npy_intp *CFLOAT_add_dimensions;
const npy_intp *CFLOAT_add_steps;
const npy_intp CFLOAT_add_steps_0;
__attribute__(()) void CFLOAT_add() {
  npy_intp len = CFLOAT_add_dimensions[0];
  char *b_src0 = &CFLOAT_add_args_0, *b_src1 = &CFLOAT_add_args_1,
       *b_dst = &CFLOAT_add_args_2;
  const float *src1 = (float *)b_src1;
  float *dst = (float *)b_dst;
  const npy_intp ssrc1 = CFLOAT_add_steps[1] / sizeof(float);
  const npy_intp sdst = CFLOAT_add_steps[2] / sizeof(float);
  const int hstep = 4 / 2;
  {
    vfloat32m1x2_t a;
    ssrc1 == 2 && sdst == ssrc1;
    for (; len > 0; len -= hstep, src1 += 4, dst += 4) {
      int b = npyv_load2_tillz_f32(len);
      int r = vaddq_f32(a.__val[0], b);
    }
  }
  for (; len > 0; --len, b_src0 += CFLOAT_add_steps_0,
                  b_src1 += CFLOAT_add_steps[1], b_dst += CFLOAT_add_steps[2])
    ;
}

```
error:

```
gcc-14 -c -O2 -w -march=rv64gcv test.c
during GIMPLE pass: pre
test.c: In function ‘CFLOAT_add’:
test.c:35:24: internal compiler error: in find_or_generate_expression, at 
tree-ssa-pre.cc:2780
   35 | __attribute__(()) void CFLOAT_add() {
      |                        ^~~~~~~~~~
0xe5d75f find_or_generate_expression
        ../../src/gcc/tree-ssa-pre.cc:2780
0xe5d97b find_or_generate_expression
        ../../src/gcc/tree-ssa-pre.cc:2777
0xe5d97b create_component_ref_by_pieces_1
        ../../src/gcc/tree-ssa-pre.cc:2696
0xe5cdc5 create_component_ref_by_pieces
        ../../src/gcc/tree-ssa-pre.cc:2764
0xe5cdc5 create_expression_by_pieces
        ../../src/gcc/tree-ssa-pre.cc:2933
0xe63275 do_hoist_insertion
        ../../src/gcc/tree-ssa-pre.cc:3762
0xe63275 insert
        ../../src/gcc/tree-ssa-pre.cc:3907
0xe63275 execute
        ../../src/gcc/tree-ssa-pre.cc:4499
Please submit a full bug report, with preprocessed source (by using 
-freport-bug).
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-14/README.Bugs> for instructions.
```

Please tell me if I can do help here.

-- 
Regards,
--
  Bo YU

#include <riscv_vector.h>
typedef int npy_intp;
static inline __attribute__(()) int vaddq_f32();
static inline __attribute__(()) int npyv_load2_tillz_f32(int nlane) {
  vint32m1_t __trans_tmp_9;
  {
    int __trans_tmp_10 = nlane;
    {
      vint32m1_t __trans_tmp_8;
      vint64m1_t __trans_tmp_6;
      vint64m1_t __trans_tmp_4;
      vint64m1_t __trans_tmp_3;
      vint64m1_t __trans_tmp_2;
      vint64m1_t __trans_tmp_1;
      if (__trans_tmp_10 == 1) {
        {
          __trans_tmp_3 =
              __riscv_vslideup_vx_i64m1(__trans_tmp_1, __trans_tmp_2, 1, 2);
        }
        __trans_tmp_4 = __trans_tmp_3;
      }
      __trans_tmp_6 = __trans_tmp_3;
      __trans_tmp_8 = __riscv_vreinterpret_v_i64m1_i32m1(__trans_tmp_3);
      __trans_tmp_9 = __trans_tmp_8;
    }
  }
  return vaddq_f32(__trans_tmp_9);
}
char CFLOAT_add_args_2;
char CFLOAT_add_args_1;
char CFLOAT_add_args_0;
const npy_intp *CFLOAT_add_dimensions;
const npy_intp *CFLOAT_add_steps;
const npy_intp CFLOAT_add_steps_0;
__attribute__(()) void CFLOAT_add() {
  npy_intp len = CFLOAT_add_dimensions[0];
  char *b_src0 = &CFLOAT_add_args_0, *b_src1 = &CFLOAT_add_args_1,
       *b_dst = &CFLOAT_add_args_2;
  const float *src1 = (float *)b_src1;
  float *dst = (float *)b_dst;
  const npy_intp ssrc1 = CFLOAT_add_steps[1] / sizeof(float);
  const npy_intp sdst = CFLOAT_add_steps[2] / sizeof(float);
  const int hstep = 4 / 2;
  {
    vfloat32m1x2_t a;
    ssrc1 == 2 && sdst == ssrc1;
    for (; len > 0; len -= hstep, src1 += 4, dst += 4) {
      int b = npyv_load2_tillz_f32(len);
      int r = vaddq_f32(a.__val[0], b);
    }
  }
  for (; len > 0; --len, b_src0 += CFLOAT_add_steps_0,
                  b_src1 += CFLOAT_add_steps[1], b_dst += CFLOAT_add_steps[2])
    ;
}

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: gcc-14
Source-Version: 14.1.0-3
Done: Matthias Klose <d...@debian.org>

We believe that the bug you reported is fixed in the latest version of
gcc-14, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1071...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthias Klose <d...@debian.org> (supplier of updated gcc-14 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 30 Jun 2024 16:27:40 +0200
Source: gcc-14
Architecture: source
Version: 14.1.0-3
Distribution: unstable
Urgency: medium
Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
Changed-By: Matthias Klose <d...@debian.org>
Closes: 1071140 1071555 1073830
Changes:
 gcc-14 (14.1.0-3) unstable; urgency=medium
 .
   * Update to git 20240630 from the gcc-14 branch.
     - Fix PR tree-optimization/115278, PR target/114846 (PPC),
       PR tree-optimization/115508, PR driver/115440, PR target/115342 
(AArch64),
       PR target/106069 (PPC), PR target/115355 (PPC), PR target/114846 (PPC),
       PR c++/115624, PR c/115587, PR c++/115504, PR c++/115198, PR c++/115358,
       PR libstdc++/115668, PR libstdc++/115575, PR libstdc++/115454.
     - Backport a fix for an ICE on riscv64. Closes: #1071140.
   * Fix typo for loong64 build dependencies.
   * Disable running the tests on the Ubuntu arm64 buildds (times out).
   * Starting with Ubuntu 24.10, stop building s390x multilibs.
   * Fix gccrs build dependencies on the Hurd. Closes: #1073830.
   * Drop the sys-auxv-header patch. Closes: #1071555.
Checksums-Sha1:
 754a1dbb912b234629261d1beee6c844371a5474 46482 gcc-14_14.1.0-3.dsc
 6bfa4f9bc5c122abab4abb2f21e3c1b8ac86b7d4 3202736 gcc-14_14.1.0-3.debian.tar.xz
 0661aaf3357dd13b974eef4488b04b1fc633bd41 7291 gcc-14_14.1.0-3_source.buildinfo
Checksums-Sha256:
 b2e1953313f5a7b974e6e4f4d1ddb8ab3776649cfdbd505e7e348b700a658c50 46482 
gcc-14_14.1.0-3.dsc
 ffd11d0f6c131c28bd16c97d2739b0372d6d0ce8ef05fc37f1f8fad772a9cd91 3202736 
gcc-14_14.1.0-3.debian.tar.xz
 7a50444863c5ff46b9e5cde399cf614b88fea63c171fc740e5db171154eedf51 7291 
gcc-14_14.1.0-3_source.buildinfo
Files:
 3f5a3c5070ba17e86871aecb96be4e23 46482 devel optional gcc-14_14.1.0-3.dsc
 d5b2b223c23b3c3b47b3264c8bedc69e 3202736 devel optional 
gcc-14_14.1.0-3.debian.tar.xz
 7d4ee7687dc7980559572dc0de246de5 7291 devel optional 
gcc-14_14.1.0-3_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJEBAEBCgAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAmaBbBgQHGRva29AZGVi
aWFuLm9yZwAKCRC9fqpgd4+m9cWvEADUPqgsSdOIyJvdZoDtvHxAQrCoSZhAEbU0
jxpR9sLY2ZYzkzIyitR1u14mliLhcFVLO2R0I0VJdy/5RtmeIEYGf/YRBt8xtIwa
8HExTrXtP3biNOjRoSfskuF1Zq5bJGcE5oYpSgfGib5bR4xlO6SfQ41BwyU2rJpD
tUYNaR7ntqZBgrdBbBmrkp9jhOwAsDHl4Oc8NUryRM5O5vNL6/e77ZLFVYpjmW2C
3Y/PHTqwZ58MFoYmM3D+Fy4yFuWGhmiTpfmsNhtZowD8jKoS8Or5nC65o+Q0mB9q
Q3uBHp2hJi/FI4+Stoc7AZATdjoZkT9Mjgt4pY/DfOuGEzWYlDfP6J/ZD39EKX0P
3LCgSHF5fu+GtdyVOBvVMyF4N1CrR06p6tzQxN3LdezlF8sGhbGgp8uVd9qYJTd5
e+qz6FlbpRrAJ414PBCZFUJEOHsBO8XdANgCwLsOAOcbKFrmwmlemH5fsLqpFGd6
vod08LYtqDNRnc9Zg6sF3L3eUowFbvYaMuvW9F3xyDqHlMV41SubrWeMJyOZ+/SI
YY4wVrRdHI8YYzjPwhOhUNKUmGE+Jf+mRASmeDv6XLujaMNld29kjLkqlmXGNX1M
qMChpww8jqtQmfncE+i0u1IU8UskeLJYNBEgRjUYR9EF0aU2DPeyGk7wZhEbmSmi
iX3R1Cl6Nw==
=1qI7
-----END PGP SIGNATURE-----

Attachment: pgptFjQ5uj7FH.pgp
Description: PGP signature


--- End Message ---

Reply via email to