From e758e3987704e04b23bcbfb340bc710017ebd0dc Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Mon, 19 Feb 2018 13:56:22 +0100 Subject: [PATCH] Disable strict aliasing The code is not strict aliasing safe and produces warnings such as: gen/abi-x86-64.cpp:237:48: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] return reinterpret_cast(fty.tag); --- ldc.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ldc.spec b/ldc.spec index 72758e5..bdfce21 100644 --- a/ldc.spec +++ b/ldc.spec @@ -171,6 +171,8 @@ Active l'autocompletion pour pour la bibliothèque phobos dans geany (IDE) mkdir geany_config %build +%global optflags %{optflags} -fno-strict-aliasing + %if 0%{?bootstrap} tar xf %{SOURCE1} mkdir build-bootstrap @@ -275,6 +277,7 @@ install -m0644 phobos.d.tags %{buildroot}/%{_datadir}/geany/tags/ - Package new JIT libraries in ldc-jit subpackage - Enable bootstrap - Build against llvm 4.0 +- Disable strict aliasing * Wed Feb 07 2018 Fedora Release Engineering - 1:1.4.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild