Re: Userspace compiler support of "long long"

2007-06-28 Thread Mark Brown
On Thu, Jun 28, 2007 at 08:11:59AM -0400, Kyle Moffett wrote: > I can't even find the docs for their "tcc". Their "tchk" appears to tchk is the same thing pretty much with output disabled. There's a HTML copy of the man page here: http://www.penguin-soft.com/penguin/man/1/tendracc.html It

Re: Userspace compiler support of "long long"

2007-06-28 Thread Kyle Moffett
On Jun 28, 2007, at 07:36:14, David Woodhouse wrote: On Thu, 2007-06-28 at 13:34 +0200, Geert Uytterhoeven wrote: We do not support building Linux with Turbo C (or MS Visual C for Win64 P64). We're talking about types which are exposed to userspace. Yes, and all 64-bit software built using

Re: Userspace compiler support of "long long"

2007-06-28 Thread Kyle Moffett
On Jun 28, 2007, at 08:08:03, Jakub Jelinek wrote: On Thu, Jun 28, 2007 at 07:53:51AM -0400, Kyle Moffett wrote: Oh, ok, that makes it even easier to say this with certainty: Changing the other 64-bit archs to use "long long" for their 64- bit numbers will not cause additional warnings. I'm a

Re: Userspace compiler support of "long long"

2007-06-28 Thread Kyle Moffett
On Jun 28, 2007, at 06:26:06, Harald Arnesen wrote: Adrian Bunk <[EMAIL PROTECTED]> writes: Is there any userspace Linux compiler that does not support "long long"? If yes, is there any other way to tell that something is a 64bit int on 32bit architectures? TenDRA C: "test.c", line 6: Err

Re: Userspace compiler support of "long long"

2007-06-28 Thread Jakub Jelinek
On Thu, Jun 28, 2007 at 07:53:51AM -0400, Kyle Moffett wrote: > On Jun 27, 2007, at 23:57:54, Matthew Wilcox wrote: > >On Wed, Jun 27, 2007 at 06:30:52PM -0400, Kyle Moffett wrote: > >>Then all 64-bit archs have: > >>typedef signed long __s64; > >>typedef unsigned long __u64; > >> > >>W

Re: Userspace compiler support of "long long"

2007-06-28 Thread Kyle Moffett
On Jun 27, 2007, at 23:57:54, Matthew Wilcox wrote: On Wed, Jun 27, 2007 at 06:30:52PM -0400, Kyle Moffett wrote: Then all 64-bit archs have: typedef signed long __s64; typedef unsigned long __u64; While all 32-bit archs have: typedef signed long long __s64; typedef unsigned long

Re: Userspace compiler support of "long long"

2007-06-28 Thread Kyle Moffett
On Jun 27, 2007, at 20:30:42, Andi Kleen wrote: On Thursday 28 June 2007 00:30:52 Kyle Moffett wrote: The only trick is if you care about building 32-bit compat code using 64-bit linux kernel headers. In that case we should probably just make all archs use "long long" for their 64-bit inte

Re: Userspace compiler support of "long long"

2007-06-28 Thread David Woodhouse
On Thu, 2007-06-28 at 13:34 +0200, Geert Uytterhoeven wrote: > We do not support building Linux with Turbo C (or MS Visual C for > Win64 P64). We're talking about types which are exposed to userspace. -- dwmw2 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the bod

Re: Userspace compiler support of "long long"

2007-06-28 Thread Geert Uytterhoeven
On Thu, 28 Jun 2007, Jan Engelhardt wrote: > On Jun 28 2007 04:12, Geert Uytterhoeven wrote: > >On Wed, 27 Jun 2007, Randy Dunlap wrote: > >> On Wed, 27 Jun 2007 15:57:15 -0700 Randy Dunlap wrote: > >> > LDD3 ch. 11 says that long on Sparc64 is 32 bits. > >> > Same for "ppc" (don't know which power

Re: Userspace compiler support of "long long"

2007-06-28 Thread Joerg Schilling
Harald Arnesen <[EMAIL PROTECTED]> wrote: > Adrian Bunk <[EMAIL PROTECTED]> writes: > > > Is there any userspace Linux compiler that does not support "long long"? > > If yes, is there any other way to tell that something is a > > 64bit int on 32bit architectures? > > TenDRA C: > > "test.c", line 6

Re: Userspace compiler support of "long long"

2007-06-28 Thread Harald Arnesen
Adrian Bunk <[EMAIL PROTECTED]> writes: > Is there any userspace Linux compiler that does not support "long long"? > If yes, is there any other way to tell that something is a > 64bit int on 32bit architectures? TenDRA C: "test.c", line 6: Error: [ISO 6.5.2]: Illegal type specifier, 'long long

Re: Userspace compiler support of "long long"

2007-06-27 Thread Jan Engelhardt
On Jun 28 2007 04:12, Geert Uytterhoeven wrote: >On Wed, 27 Jun 2007, Randy Dunlap wrote: >> On Wed, 27 Jun 2007 15:57:15 -0700 Randy Dunlap wrote: >> > LDD3 ch. 11 says that long on Sparc64 is 32 bits. >> > Same for "ppc" (don't know which power* arch. they mean by that). >> >> Hm, I suppose tha

Re: Userspace compiler support of "long long"

2007-06-27 Thread H. Peter Anvin
Kyle Moffett wrote: The only trick is if you care about building 32-bit compat code using 64-bit linux kernel headers. In that case we should probably just make all archs use "long long" for their 64-bit integers, unless there's some platform I'm not remembering where "long long" is 128-bits

Re: Userspace compiler support of "long long"

2007-06-27 Thread Matthew Wilcox
On Wed, Jun 27, 2007 at 06:30:52PM -0400, Kyle Moffett wrote: > Then all 64-bit archs have: > typedef signed long __s64; > typedef unsigned long __u64; > > While all 32-bit archs have: > typedef signed long long __s64; > typedef unsigned long long __u64; include/asm-parisc/types.h:t

Re: Userspace compiler support of "long long"

2007-06-27 Thread Kyle McMartin
On Wed, Jun 27, 2007 at 04:16:48PM -0700, Randy Dunlap wrote: > > LDD3 ch. 11 says that long on Sparc64 is 32 bits. > > Same for "ppc" (don't know which power* arch. they mean by that). > > Hm, I suppose that table only applies to userspace, not kernel... > Doing 64-bit Linux non-LP64 would be a

Re: Userspace compiler support of "long long"

2007-06-27 Thread Geert Uytterhoeven
On Wed, 27 Jun 2007, Randy Dunlap wrote: > On Wed, 27 Jun 2007 15:57:15 -0700 Randy Dunlap wrote: > > LDD3 ch. 11 says that long on Sparc64 is 32 bits. > > Same for "ppc" (don't know which power* arch. they mean by that). > > Hm, I suppose that table only applies to userspace, not kernel... 32-bi

Re: Userspace compiler support of "long long"

2007-06-27 Thread Andi Kleen
On Thursday 28 June 2007 00:30:52 Kyle Moffett wrote: > On Jun 27, 2007, at 13:32:40, Adrian Bunk wrote: > > AFAIR the Intel compiler claims to be gcc. > > > > But these are by far not the only C compilers under Linux, and the > > more important points are: > > > > Is there any userspace Linux co

Re: Userspace compiler support of "long long"

2007-06-27 Thread Randy Dunlap
On Wed, 27 Jun 2007 15:57:15 -0700 Randy Dunlap wrote: > On Wed, 27 Jun 2007 18:30:52 -0400 Kyle Moffett wrote: > > > On Jun 27, 2007, at 13:32:40, Adrian Bunk wrote: > > > AFAIR the Intel compiler claims to be gcc. > > > > > > But these are by far not the only C compilers under Linux, and the

Re: Userspace compiler support of "long long"

2007-06-27 Thread Randy Dunlap
On Wed, 27 Jun 2007 18:30:52 -0400 Kyle Moffett wrote: > On Jun 27, 2007, at 13:32:40, Adrian Bunk wrote: > > AFAIR the Intel compiler claims to be gcc. > > > > But these are by far not the only C compilers under Linux, and the > > more important points are: > > > > Is there any userspace Linux

Re: Userspace compiler support of "long long"

2007-06-27 Thread Kyle Moffett
On Jun 27, 2007, at 13:32:40, Adrian Bunk wrote: AFAIR the Intel compiler claims to be gcc. But these are by far not the only C compilers under Linux, and the more important points are: Is there any userspace Linux compiler that does not support "long long"? Don't know, but I'd guess not

Userspace compiler support of "long long"

2007-06-27 Thread Adrian Bunk
On Wed, Jun 27, 2007 at 05:52:08PM +0200, Joerg Schilling wrote: > Adrian Bunk <[EMAIL PROTECTED]> wrote: > > > That's a good point I missed. > > > > What about: > > > > #if defined(__GNUC__) && __STDC_VERSION__ < 19901L > > __extension__ typedef signed long long __s64; > > __extension__ typedef