graphviz/graphviz-type_punning.patch
Philipp Thomas 991d91e5bf - Rename aarch64-lib64-support.diff to graphviz-aarch64_lib64_support.patch.
- Compile the code in lib/vmalloc with -fno-strict-aliasing
  as it does type punning.

- Rename aarch64-lib64-support.diff to graphviz-aarch64_lib64_support.patch.
- Compile the code in lib/vmalloc with -fno-strict-aliasing
  as it does type punning.

OBS-URL: https://build.opensuse.org/package/show/graphics/graphviz?expand=0&rev=54
2013-03-28 10:55:54 +00:00

25 lines
906 B
Diff

From: Philipp Thomas <pth@suse.de>
Date: 2013-03-28 11:43:28+01:00
Subject: Switch of strict aliasing
The vmalloc code uses type-punning in a macro so switch off strict aliasing
for this code.
---
lib/vmalloc/Makefile.am | 2 ++
1 file changed, 2 insertions(+)
Index: lib/vmalloc/Makefile.am
===================================================================
--- lib/vmalloc/Makefile.am.orig 2009-09-16 20:49:46.000000000 +0200
+++ lib/vmalloc/Makefile.am 2013-03-28 11:42:12.948760295 +0100
@@ -9,6 +9,8 @@ libvmalloc_C_la_SOURCES = malloc.c vmbes
vmprofile.c vmregion.c vmsegment.c vmset.c vmstat.c vmstrdup.c \
vmtrace.c vmwalk.c
+AM_CFLAGS = -fno-strict-aliasing
+
${top_builddir}/FEATURE/vmalloc: ${top_srcdir}/lib/vmalloc/features/vmalloc
mkdir -p ${top_builddir}/FEATURE
${top_srcdir}/iffe - set cc $(CC) $(CCMODE) $(CXFLAGS) : run ${top_srcdir}/lib/vmalloc/features/vmalloc > $@