[Bug c/77394] New: internal compiler error with Intel 3825U, cygwin 64 bit compiler

jeff at jeffunit dot com gcc-bugzilla@gcc.gnu.org
Sat Aug 27 05:30:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77394

            Bug ID: 77394
           Summary: internal compiler error with Intel 3825U, cygwin 64
                    bit compiler
           Product: gcc
           Version: 5.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jeff at jeffunit dot com
  Target Milestone: ---

Created attachment 39502
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39502&action=edit
output of cpuinfo, meminfo and gcc -DM -E

I have isolated the internal compiler error to a small piece of code:

#include <math.h>               /* floor */

extern double Round(double d)
{
    return floor(d + 0.5);
}

produces:
bug_f3.c: In function 'Round':
bug_f3.c:5:5: internal compiler error: Illegal instruction
     return floor(d + 0.5);
     ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

gcc --version reports:
gcc (GCC) 5.4.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

uname -srvmo reports:
CYGWIN_NT-10.0 2.5.2(0.297/5/3) 2016-06-23 14:29 x86_64 Cygwin

The code compiles and runs correctly on other cpu's using the same cygwin 5.4.0
It also compiles and runs on mageia 5 linux with gcc 4.9.2

Included in attachments is the output of
cat /proc/cpuinfo
cat /proc/meminfo
gcc -dM -E

I suspect the internal compiler error is related to the specific processor,
which is found on my newish dell notebook.


More information about the Gcc-bugs mailing list