Date: Wed, 12 May 1999 05:43:43 +0400 (MSD) From: "Dmitry V. Levin" To: PGCC Mailing List Subject: IA: pgcc-1.1.3 bug? Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-1517900349-926473423=:22546" Reply-To: pgcc AT delorie DOT com This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime AT docserver DOT cac DOT washington DOT edu for more info. --8323328-1517900349-926473423=:22546 Content-Type: TEXT/PLAIN; charset=US-ASCII Processor: PII-450MHz Compiler: pgcc-1.1.3 based on egcs-1.1.2 (from RedHat 6.0 SRPMS), built with only "-O2" optimization enabled. (as it have been said, pgcc-1.1.3 doesn't build with -march=i686) OS: RedHat-5.2, mostly upgraded to RedHat-6.0 (including glibc-2.1). Problem: pgcc fails with the following demo code: int demo_fun( double argument ) { if ( 1431655764L < argument ) return -1; return 0; } Details: I've tested this code with argument == 21., changing -march and -O flags. Result is: 1. Success with -march Content-Description: demo_i586.s Content-Disposition: attachment; filename="demo_i586.s" CS5maWxlCSJkZW1vLmMiDQoJLnZlcnNpb24JIjAxLjAxIg0KLnN0YWJzICIv aG9tZS9sZHYvd29yay9zcmMvIiwxMDAsMCwwLC5MdGV4dDANCi5zdGFicyAi ZGVtby5jIiwxMDAsMCwwLC5MdGV4dDANCi50ZXh0DQouTHRleHQwOg0KCS5z dGFicwkiZ2NjMl9jb21waWxlZC4iLCAweDNjLCAwLCAwLCAwDQouc3RhYnMg ImludDp0KDAsMSk9cigwLDEpOzAwMjAwMDAwMDAwMDA7MDAxNzc3Nzc3Nzc3 NzsiLDEyOCwwLDAsMA0KLnN0YWJzICJjaGFyOnQoMCwyKT1yKDAsMik7MDsx Mjc7IiwxMjgsMCwwLDANCi5zdGFicyAibG9uZyBpbnQ6dCgwLDMpPXIoMCwx KTswMDIwMDAwMDAwMDAwOzAwMTc3Nzc3Nzc3Nzc7IiwxMjgsMCwwLDANCi5z dGFicyAidW5zaWduZWQgaW50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lMToNCgkuc2l6ZQkgZGVtb19mdW4s LkxmZTEtZGVtb19mdW4NCi5zZWN0aW9uCS5yb2RhdGENCgkuYWxpZ24gOA0K LkxDMDoNCgkubG9uZyAweDU1MDAwMDAwLDB4NDFkNTU1NTUNCi50ZXh0DQou THNjb3BlMDoNCi5zdGFicyAiIiwzNiwwLDAsLkxzY29wZTAtZGVtb19mdW4N Cgkuc3RhYnMgIiIsMTAwLDAsMCwuTGV0ZXh0DQouTGV0ZXh0Og0KCS5pZGVu dAkiR0NDOiAoR05VKSBwZ2NjLTIuOTEuNjYgMTk5OTAzMTQvTGludXggKGVn Y3MtMS4xLjIgcmVsZWFzZSkiDQo= --8323328-1517900349-926473423=:22546 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="demo_i686.s" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: demo_i686.s Content-Disposition: attachment; filename="demo_i686.s" CS5maWxlCSJkZW1vLmMiDQoJLnZlcnNpb24JIjAxLjAxIg0KLnN0YWJzICIv aG9tZS9sZHYvd29yay9zcmMvIiwxMDAsMCwwLC5MdGV4dDANCi5zdGFicyAi ZGVtby5jIiwxMDAsMCwwLC5MdGV4dDANCi50ZXh0DQouTHRleHQwOg0KCS5z dGFicwkiZ2NjMl9jb21waWxlZC4iLCAweDNjLCAwLCAwLCAwDQouc3RhYnMg ImludDp0KDAsMSk9cigwLDEpOzAwMjAwMDAwMDAwMDA7MDAxNzc3Nzc3Nzc3 NzsiLDEyOCwwLDAsMA0KLnN0YWJzICJjaGFyOnQoMCwyKT1yKDAsMik7MDsx Mjc7IiwxMjgsMCwwLDANCi5zdGFicyAibG9uZyBpbnQ6dCgwLDMpPXIoMCwx KTswMDIwMDAwMDAwMDAwOzAwMTc3Nzc3Nzc3Nzc7IiwxMjgsMCwwLDANCi5z dGFicyAidW5zaWduZWQgaW50OnQoMCw0KT1yKDAsMSk7MDAwMDAwMDAwMDAw MDswMDM3Nzc3Nzc3Nzc3OyIsMTI4LDAsMCwwDQouc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