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<RegCount &>(fty.tag);
epel9
Kalev Lember 7 years ago
parent 4130742d24
commit e758e39877

@ -171,6 +171,8 @@ Active l'autocompletion pour pour la bibliothèque phobos dans geany (IDE)
mkdir geany_config mkdir geany_config
%build %build
%global optflags %{optflags} -fno-strict-aliasing
%if 0%{?bootstrap} %if 0%{?bootstrap}
tar xf %{SOURCE1} tar xf %{SOURCE1}
mkdir build-bootstrap mkdir build-bootstrap
@ -275,6 +277,7 @@ install -m0644 phobos.d.tags %{buildroot}/%{_datadir}/geany/tags/
- Package new JIT libraries in ldc-jit subpackage - Package new JIT libraries in ldc-jit subpackage
- Enable bootstrap - Enable bootstrap
- Build against llvm 4.0 - Build against llvm 4.0
- Disable strict aliasing
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.4.0-4 * Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.4.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

Loading…
Cancel
Save