Bug 1816760 - Internal compiler error on i686
Summary: Internal compiler error on i686
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: rawhide
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-24 16:34 UTC by Jaroslav Škarvada
Modified: 2020-10-05 08:30 UTC (History)
10 users (show)

Fixed In Version: gcc-10.0.1-0.11.fc32
Clone Of:
Environment:
Last Closed: 2020-04-01 16:33:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Preprocessed file (3.02 MB, text/x-csrc)
2020-03-24 16:34 UTC, Jaroslav Škarvada
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNU Compiler Collection 94308 0 P3 ASSIGNED [10 Regression] ICE in final_scan_insn_1 with vzeroupper since r10-6451 2020-03-24 18:32:04 UTC

Description Jaroslav Škarvada 2020-03-24 16:34:02 UTC
Created attachment 1673170 [details]
Preprocessed file

Description of problem:
Internal compiler error on i686 when recompiling gnuradio-3.8.0.0-7.fc33.

Version-Release number of selected component (if applicable):
gcc-10.0.1-0.9.fc33

How reproducible:
Always

Steps to Reproduce:
1. fedpkg co gnuradio
2. cd gnuradio
3. fedpkg local

Actual results:
/builddir/build/BUILD/gnuradio-3.8.0.0/volk/kernels/volk/volk_32f_x2_dot_prod_32f.h:400:1: internal compiler error: in final_scan_insn_1, at final.c:3073
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
{standard input}: Assembler messages:
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
Preprocessed source stored into /tmp/ccmkK3oA.out file, please attach this to your bugreport.


Expected results:
No internal compiler error

Additional info:
Reproduced 100% on different i686 machines.

Comment 1 Jakub Jelinek 2020-03-24 17:59:22 UTC
Reduced testcase -O2 -mfpmath=sse -mstackrealign -mavx2 -mfma:
#include <x86intrin.h>

void
foo (float *x, const float *y, const float *z, unsigned int w)
{
  unsigned int a;
  const unsigned int b = w / 8;
  const float *c = y;
  const float *d = z;
  __m256 e = _mm256_setzero_ps ();
  __m256 f, g;
  for (a = 0; a < b; a++)
    {
      f = _mm256_loadu_ps (c);
      g = _mm256_loadu_ps (d);
      c += 8;
      d += 8;
      e = _mm256_fmadd_ps (f, g, e);
    }
  __attribute__ ((aligned (32))) float h[8];
  _mm256_storeu_ps (h, e);
  _mm256_zeroupper ();
  float i = h[0] + h[1] + h[2] + h[3] + h[4] + h[5] + h[6] + h[7];
  for (a = b * 8; a < w; a++)
    i += (*c++) * (*d++);
  *x = i;
}

Comment 2 Fedora Update System 2020-03-26 10:23:38 UTC
FEDORA-2020-a5307273dd has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-a5307273dd

Comment 3 Fedora Update System 2020-03-27 15:57:58 UTC
FEDORA-2020-a5307273dd has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-a5307273dd`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-a5307273dd

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2020-03-30 11:10:07 UTC
FEDORA-2020-b2de059578 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-b2de059578

Comment 5 Fedora Update System 2020-03-31 01:52:07 UTC
FEDORA-2020-b2de059578 has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-b2de059578`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-b2de059578

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2020-04-01 16:33:48 UTC
FEDORA-2020-b2de059578 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.