Message-ID: <000b01c31df6$5e2e9fa0$0100a8c0@acp42g> From: "Andrew Cottrell" To: Subject: LIBC patch for GCC 3.3 - part #1 Date: Mon, 19 May 2003 21:04:06 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Reply-To: djgpp-workers AT delorie DOT com Below are the first part of a set of patches that allow the CVS LIBC to be built with GCC 3.3. This one patched the gcc option files and fixes some type issues. Andrew *** src\gcc_old.opt Mon May 19 20:35:48 2003 --- src\gcc.opt Mon May 19 19:42:56 2003 *************** *** 16,19 **** --- 16,20 ---- -Wcast-align -Wsign-compare -nostdinc + -fno-strict-aliasing *** src\gcc-l_old.opt Mon May 19 20:41:18 2003 --- src\gcc-l.opt Mon May 19 20:39:38 2003 *************** *** 4,7 **** --- 4,8 ---- -march=i386 -Wall -nostdinc + -fno-strict-aliasing *** src\libc\ansi\stdlib\strtod_old.c Mon May 19 20:12:32 2003 --- src\libc\ansi\stdlib\strtod.c Mon May 19 20:12:18 2003 *************** strtod(const char *s, char **sret) *** 89,95 **** mantissa_bits = strtoull(&s[4], &endptr, 16); if ( *endptr == ')' ) { ! mantissa_bits = mantissa_bits & 0xfffffffffffff; if( mantissa_bits ) { n.mantissal = mantissa_bits & 0xffffffff; --- 89,95 ---- mantissa_bits = strtoull(&s[4], &endptr, 16); if ( *endptr == ')' ) { ! mantissa_bits = mantissa_bits & 0xfffffffffffffLL; if( mantissa_bits ) { n.mantissal = mantissa_bits & 0xffffffff; *** src\libc\ansi\stdlib\strtold_old.c Mon May 19 20:17:38 2003 --- src\libc\ansi\stdlib\strtold.c Mon May 19 20:13:38 2003 *************** strtold(const char *s, char **sret) *** 86,92 **** mantissa_bits = strtoull(&s[4], &endptr, 16); if ( *endptr == ')' ) { ! mantissa_bits = mantissa_bits & 0x7fffffffffffffff; /* Ignore integer bit. */ if( mantissa_bits ) --- 86,92 ---- mantissa_bits = strtoull(&s[4], &endptr, 16); if ( *endptr == ')' ) { ! mantissa_bits = mantissa_bits & 0x7fffffffffffffffLL; /* Ignore integer bit. */ if( mantissa_bits )