Thread overview
[Bug 61] LTO: internal compiler error: in build_dtype, at d/d-codegen.h:223
Jun 09, 2013
Marco.Leise@gmx.de
Jun 09, 2013
Iain Buclaw
Jul 12, 2014
Iain Buclaw
Jul 12, 2014
Artur Skawina
Jun 06, 2015
weaselcat
Jun 06, 2015
Ketmar Dark
Jun 06, 2015
Iain Buclaw
June 09, 2013
http://bugzilla.gdcproject.org/show_bug.cgi?id=61

--- Comment #1 from Marco.Leise@gmx.de 2013-06-09 05:29:32 UTC ---
(compiler based on gcc 4.7.2)

-- 
Configure bugmail: http://bugzilla.gdcproject.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
June 09, 2013
http://bugzilla.gdcproject.org/show_bug.cgi?id=61

--- Comment #2 from Iain Buclaw <ibuclaw@gdcproject.org> 2013-06-09 14:32:31 UTC ---
https://github.com/D-Programming-GDC/GDC/commit/685e32bde7137e02260a56dfc0f5a4ef63b4acfd

Still ICE's in LTO, but it's not part of GDC  /  clear if it's an issue with GDC.

-- 
Configure bugmail: http://bugzilla.gdcproject.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
July 12, 2014
http://bugzilla.gdcproject.org/show_bug.cgi?id=61

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Iain Buclaw <ibuclaw@gdcproject.org> ---
Going to say fixed... provisionally :)

https://github.com/D-Programming-GDC/GDC/commit/28d98308d02942984ead0cba03ff043eed26a8ad

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


July 12, 2014
On 07/12/14 11:42,  via D.gnu wrote:
>  Iain Buclaw <mailto:ibuclaw@gdcproject.org>  changed bug 61 <http://bugzilla.gdcproject.org/show_bug.cgi?id=61>

> Going to say fixed... provisionally :)
> 
> https://github.com/D-Programming-GDC/GDC/commit/28d98308d02942984ead0cba03ff043eed26a8ad

Tried it - ICEs are gone and it seems to work. Thanks for investigating and fixing that. Cross-language (tested C+D) inlining now works again.


Unfortunately the D inlining problems described in http://forum.dlang.org/post/mailman.75.1396605155.19942.d.gnu@puremagic.com are still present. Any chance of a fix (or workaround)?

artur

June 06, 2015
http://bugzilla.gdcproject.org/show_bug.cgi?id=61

weaselcat <r9shackleford@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
                 CC|                            |r9shackleford@gmail.com
         Resolution|FIXED                       |---
     Ever confirmed|1                           |0

--- Comment #4 from weaselcat <r9shackleford@gmail.com> ---
LTO ICEs for me as of GDC 5.1.

Compiled the example from the report, output is

lto1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.archlinux.org/> for instructions.
lto-wrapper: fatal error: gdc returned 1 exit status
compilation terminated.
/usr/local/bin/ld: fatal error: lto-wrapper failed
collect2: error: ld returned 1 exit status


is this fixed?

dump of gdc:

Using built-in specs.
COLLECT_GCC=gdc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /build/gdc/src/gcc-5.1.0/configure --prefix=/usr
--libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/
--enable-languages=d --enable-shared --enable-threads=posix --with-system-zlib
--enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu
--disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object
--enable-linker-build-id --enable-cloog-backend=isl
--disable-cloog-version-check --enable-gold --enable-plugin --enable-ld=default
--enable-install-libiberty --with-plugin-ld=ld.gold
--with-linker-hash-style=gnu --disable-multilib --disable-werror --disable-nls
--disable-bootstrap --disable-libgomp --disable-libmudflap
--disable-libquadmath --enable-checking=release
Thread model: posix
gcc version 5.1.0 (GCC)

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


June 06, 2015
http://bugzilla.gdcproject.org/show_bug.cgi?id=61

--- Comment #5 from Ketmar Dark <ketmar@ketmar.no-ip.org> ---
does lto officially supported in gdc at all?

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


June 06, 2015
http://bugzilla.gdcproject.org/show_bug.cgi?id=61

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Iain Buclaw <ibuclaw@gdcproject.org> ---
Please raise a new issue as that is the third 🐛 in mentioned in this report.

The original was an ICE (not segv) in build_dtype, the second commit fixed an ICE in lto because common types weren't aligned, so your problem is unrelated.

(also not least because you are running a very different compiler from the
version in this report)

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