[patch] -O2 -fno-inline makes system headers fail

Leo Savernik l.savernik at aon.at
Sun Feb 5 22:32:29 GMT 2006


Hello,

I've detected the following nasty bug which makes <string.h> emit spurious 
symbols not actually meant to be emitted when -fno-inline is used in 
combination with -O2.

I've written a KDE/3.5/kde-common/admin/acinclude.m4.in patch that copes with 
that situation. On my system, it correctly fails. However, on gcc >= 3.x 
systems, it should *not* fail. As I currently cannot test this, I provide the 
patch on this list for unwary testers.

Just apply this patch to your kdelibs's/kdebase's/whatever acinclude.m4.in and 
call ./configure --enable-debug=yes and look out for a line

checking whether system headers can cope with -O2 -fno-inline... yes

and post an answer containing your result along with your compiler version.

Thank you.

mfg
	Leo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: common_acinclude_3.diff
Type: text/x-diff
Size: 2180 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060205/0d1a3f09/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060205/0d1a3f09/attachment.sig>


More information about the kde-core-devel mailing list