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

            Bug ID: 87484
           Summary: internal compiler error: in dwf_regno, at
                    dwarf2cfi.c:909
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zwilcox at sandia dot gov
  Target Milestone: ---

Created attachment 44774
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44774&action=edit
Files that produce errors

Host: Win10
Target: PowerPC
Flags: -O0 -g3 -Wall -mspe=yes -mabi=spe -mfloat-gprs=double -c -mbig-endian
-fno-builtin -fomit-frame-pointer -Wno-unknown-pragmas -mcpu=8548 -MMD -MP -MF

Command line that triggered bug: powerpc-eabi-gcc -O0 -g3 -Wall -mspe=yes
-mabi=spe -mfloat-gprs=double -c -mbig-endian -fno-builtin -fomit-frame-pointer
-Wno-unknown-pragmas -mcpu=8548 -MMD -MP -MF"src/CompilerError.d"
-MT"src/CompilerError.o" -o "src/CompilerError.o" "../src/CompilerError.c"


Compiler output:
 In function 'foo':
../src/CompilerError.c:13:20: warning: unused variable 'lower'
[-Wunused-variable]
  volatile uint64_t lower =  *(ADDR1);
                    ^
../src/CompilerError.c:16:1: internal compiler error: in dwf_regno, at
dwarf2cfi.c:909

Attached is a tar file.
The tar file contains three versions of the code; one that produces the error,
and two that do not, and the preprocessed file

Reply via email to