Date: Fri, 20 Sep 2002 08:39:30 -0700 (PDT) From: Archie Cobbs <archie@dellroad.org> To: Soeren Schmidt <sos@spider.deepcore.dk> Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libc/alpha/gen infinity.c src/lib/libc/i386/gen infinity.c src/lib/libc/ia64/gen infinity.c src/lib/libc/sparc64/gen infinity.c src/lib/msun/src math.h Message-ID: <200209201539.g8KFdU4t065936@arch20m.dellroad.org> In-Reply-To: <200209201217.g8KCHENp094671@spider.deepcore.dk> "from Soeren Schmidt at Sep 20, 2002 02:17:14 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
Soeren Schmidt writes: > It seems Archie Cobbs wrote: > > archie 2002/09/19 12:47:27 PDT > > > > Modified files: > > lib/libc/alpha/gen infinity.c > > lib/libc/i386/gen infinity.c > > lib/libc/ia64/gen infinity.c > > lib/libc/sparc64/gen infinity.c > > lib/msun/src math.h > > Log: > > Fix a problem with the definition of HUGE_VAL causing the gcc warning > > "cast increases required alignment of target type" on some platforms. > > This breaks world here: > > cc -O -pipe -march=athlon -DLIBC_MAJOR=5 -I/usr/src/lib/libc/include -I/usr/src/lib/libc/../../include -D__DBINTERFACE_PRIVATE -DINET6 -I/u1/obj/usr/src/lib/libc -DPOSIX_MISTAKE -I/usr/src/lib/libc/../libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -DYP -DHESIOD -c /usr/src/lib/libc/i386/gen/infinity.c -o infinity.o > /usr/src/lib/libc/i386/gen/infinity.c:11: variable `__infinity' has initializer but incomplete type Ugh.. my apologies. Unfortunately I'm not sure how to fix this. It appears there are two versions of "math.h" in the tree (why?): src/include/math.h src/lib/msun/src/math.h The 'infinity.c' files are part of libc, yet __infinity is declared in src/lib/msun/src/math.h, which is the one I changed.. I don't get it. The src/lib/*/gen/infinity.c files should be including the msun version of math.h it seems. Since I'm going to be out of contact today I'll revert this commit until we figure out how it should be done correctly. Sorry! -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209201539.g8KFdU4t065936>