~ubuntu-branches/ubuntu/raring/firebird2.5/raring-proposed

« back to all changes in this revision

Viewing changes to debian/patches/fix_kfreebsd_amd64_miscompile.patch

  • Committer: Bazaar Package Importer
  • Author(s): Damyan Ivanov
  • Date: 2011-09-24 14:12:19 UTC
  • mfrom: (15.1.8 sid)
  • Revision ID: james.westby@ubuntu.com-20110924141219-pkxk7486f3d8ut9f
Tags: 2.5.1.26349-0~rc1.ds4-5
* Medium urgency for fixing a serious bug in testing

* Import a patch from upstream SVN fixing problems in poll() usage when
  process receives signals like SIGALRM.
  Closes: #642555 -- segfault in the remote interface when using alarm() in
  the client program

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Author: Modestas Vainius <modax@debian.org>
2
 
Description: workaround FBTFS on kfreebsd-amd64
3
 
 The FTBFS is due to g++ (confirmed on version 4.4.3-2) miscompilation of the
4
 
 src/dsql/parse.cpp file when -fipa-reference optimization is enabled (-O1 or
5
 
 higher enables it). The patch workarounds the issue by disabling ipa-reference
6
 
 for temp/boot/dsql/parse.o on kfreebsd-amd64.
7
 
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=565801
8
 
Forwarded: not-needed
9
 
Last-Update: 2010-03-27
10
 
 
11
 
--- a/builds/posix/prefix.freebsd_amd64
12
 
+++ b/builds/posix/prefix.freebsd_amd64
13
 
@@ -28,3 +28,6 @@ CLIENT_UTIL_TARGETS=gstat gsec fbguard n
14
 
 Physical_IO_Module=os/posix/unix.cpp
15
 
 # This is needed due to broken port of gcc
16
 
 STATIC_CXXSUPPORT_LIB = -lstdc++ -lgcc_s
17
 
+
18
 
+# Workaround g++ miscompilation bug with -fipa-reference (-O1 or higher)
19
 
+$(OBJ)/dsql/parse.o: WCXXFLAGS += -fno-ipa-reference