Re: PCI Express support for 2.4 kernel

Tomas Szepe
2003-12-15T17:39:36Z

On Dec-16 2003, Tue, 04:09 +1100
Keith Owens <kaos@ocs.com.au> wrote:

> a1:
> .long 0
> .local a2
> .comm a2,4,4
> .ident "GCC: (GNU) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)"

...

> Try it with an older version of gcc, which most people are
> still using to build the kernel. With 3.2.2, you get

And w/ gcc-3.3.2, you get what you'd actually expect :)

$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/3.3.2/specs
Configured with: ../configure --enable-languages=c,c++ --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --disable-nls --target=i386-slackware-linux --host=i386-slackware-linux --build=i386-slackware-linux
Thread model: posix
gcc version 3.3.2
$ cat x.c
static int a1 = 0;
static int a2 = 1;
static int a3;
$ gcc -S x.c
$ cat x.s
.file "x.c"
.local a1
.comm a1,4,4
.data
.align 4
.type a2, @object
.size a2, 4
a2:
.long 1
.local a3
.comm a3,4,4
.ident "GCC: (GNU) 3.3.2"

--
Tomas Szepe <szepe@pinerecords.com>