Subject: m68k 2.0 compiler bug
To: MacBSD <port-mac68k@NetBSD.org>
From: =?ISO-8859-1?Q?R=E9mi_Zara?= <remi_zara@mac.com>
List: tech-toolchain
Date: 12/30/2004 20:59:04
--Apple-Mail-2--571990540
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=ISO-8859-1;
delsp=yes;
format=flowed
Hi,
PostgreSQL seems to expose a bug in NetBSD 2.0 mac68k's gcc (3.3.3)
The problematic file is
http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/tsearch/=20
query.c?rev=3D1.16
All is OK when compiled with -O0, but when compiled with -O2, the =20
address of the function pushval_morph (l. 223), which is used only =20
through a pointer in mqtxt_in (l. 607, l. 621) is 0x0.
adding a printf like statement of the address of the func =20
(printf("address : %p", pushval_morph)) seems to force the compiler to =20=
do the right thing.
Is this a known bug ?
Is there a better workaround than using a printf like statement ?
The file compiles just fine on a variety of platform and compiler =20
versions (see http://www.pgbuildfarm.org/cgi-bin/show_status.pl for a =20=
list).
Regards,
R=E9mi Zara
--
R=E9mi Zara
http://www.remi-zara.net/=
--Apple-Mail-2--571990540
Content-Transfer-Encoding: base64
Content-Type: application/pkcs7-signature;
name=smime.p7s
Content-Disposition: attachment;
filename=smime.p7s
MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGFjCCAs8w
ggI4oAMCAQICAw2XNjANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhh
d3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVt
YWlsIElzc3VpbmcgQ0EwHhcNMDQxMjA5MjAyODUzWhcNMDUxMjA5MjAyODUzWjBDMR8wHQYDVQQD
ExZUaGF3dGUgRnJlZW1haWwgTWVtYmVyMSAwHgYJKoZIhvcNAQkBFhFyZW1pX3phcmFAbWFjLmNv
bTCCASIwDQYJKo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