[Bug 276] New: [ICE] internal compiler error: in extract_insn, at recog.c:2305 (-fPIE)

gdc-bugzilla at gdcproject.org gdc-bugzilla at gdcproject.org
Wed Oct 25 22:51:16 UTC 2017


https://bugzilla.gdcproject.org/show_bug.cgi?id=276

            Bug ID: 276
           Summary: [ICE] internal compiler error: in extract_insn, at
                    recog.c:2305 (-fPIE)
           Product: GDC
           Version: development
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: Normal
         Component: gdc
          Assignee: ibuclaw at gdcproject.org
          Reporter: ibuclaw at gdcproject.org

---
// Written in the D programming language.
module std.file;

import core.sys.posix.unistd;
class FileException : Exception
{
    import std.conv;

    uint errno;

    this(in char[] name, in char[] )     {
        super(text(name));

    }

    this(in char[] name)     {
        import std.exception ;
        this(name, errnoString(errno));
    }
}

T cenforce(T)(T , const(char)[] name)
{
    throw new FileException(name);
}

string getcwd()
{
    auto p = cenforce(core.sys.posix.unistd.getcwd(null, 0),
                      "cannot get cwd");
    return p[0 .. core.stdc.string.strlen(p)].idup;
}

string tempDir() {
    static string cache;
    import std.process ;
    cache = environment.get("TMPDIR");
    if (cache is null) getcwd;
    return cache;
}
---

file.d: In function ‘tempDir’:
file.d:40:1: error: unrecognizable insn:
 }
 ^
(insn 58 57 59 2 (set (reg/f:DI 121)
        (const:DI (plus:DI (unspec:DI [
                        (symbol_ref:DI ("_D3std4file7tempDirFZ5cacheAya")
[flags 0x2a] <var_decl 0x7f5b3a0b5120 cache>)
                    ] UNSPEC_NTPOFF)
                (const_int 8 [0x8])))) "file.d":37 -1
     (nil))
during RTL pass: subreg2
file.d:40:1: internal compiler error: in extract_insn, at recog.c:2305
0x5ea119 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        ../../dev/gcc/rtl-error.c:108
0x5ea13a _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        ../../dev/gcc/rtl-error.c:116
0xb57c6c extract_insn(rtx_insn*)
        ../../dev/gcc/recog.c:2305
0x12236fc decompose_multiword_subregs
        ../../dev/gcc/lower-subreg.c:1533
0x12241ad execute
        ../../dev/gcc/lower-subreg.c:1719
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the D.gnu mailing list