Patch to fix compilation on FreeBSD w/ -O2 or stronger optimisations

Andy Fawcett andy at
Wed Aug 11 18:48:35 BST 2004


FreeBSD PR 70011 ( is a 
report of breakage in kdemultimedia/mpeglib for 3.2.3 when building 
with gcc 3.4.x. The Problem Report includes a patch.

The KDE/FreeBSD team have confirmed the problem exists, and still exists 
in HEAD and the 3.3 Branch, and that the patch fixes the problem for 

Okay to commit?


--- mpeglib/lib/util/render/dither2YUV/rgb2yuvdefs.h.orig
+++ mpeglib/lib/util/render/dither2YUV/rgb2yuvdefs.h
@@ -20,6 +20,9 @@
 /* gcc 3.3.1 and later optimise the "not used" (only in asm code)
    symbols away. So we need to mark them as used. */
+#if defined(__GNUC_PREREQ__) && !defined(__GNUC_PREREQ)
 #ifdef __GNUC_PREREQ
 #if __GNUC_PREREQ (3,1)
 # define __attribute_used__ __attribute__ ((__used__))

Andy Fawcett                                     | andy at
                                                 | tap at
"In an open world without walls and fences,      | tap at
  we wouldn't need Windows and Gates."  -- anon  | tap at

More information about the kde-core-devel mailing list