Linux PARISC architecture development
 help / color / mirror / Atom feed
* [parisc-linux] compiling kernels with gcc-3.1
@ 2002-07-12  7:36 Randolph Chung
  2002-07-12  9:49 ` joel.soete
                   ` (2 more replies)
  0 siblings, 3 replies; 22+ messages in thread
From: Randolph Chung @ 2002-07-12  7:36 UTC (permalink / raw)
  To: parisc-linux

I seem to recall some reports that you cannot build a working kernel
with gcc-3.1....

Well, maybe they've changed things upstream, but I just tried with
gcc-3.1.1 (3.1.1 20020708 snapshot) and it seems to work well, at least
with my limited testing... this is with the debian default 64-bit smp
.config.

I did have to hack up a bunch of code... it seems like gcc-3.1.1 doesn't
like this construct:

typedef struct {
        volatile unsigned int __attribute__((aligned(16))) lock;
} spinlock_t;

typedef struct {
        spinlock_t lock;
        volatile unsigned int count;
} rwlock_t;

rwlock_t foo = (rwlock_t) { (spinlock_t) { 1 }, 0 };

it complains that the initializer is not constant in this case. 
removing the (rwlock_t) cast fixed that....

also it doesn't like it when you have a variable and you initialize it
after declaration with the { (spinlock_t) { 1 }, 0 } stuff...

(e.g. 
rwlock_t foo;

foo = { (spinlock_t) { 1 }, 0 };

gives a "parse error at {" message)

after working through these problems i got a working kernel...

randolph
--  
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/

^ permalink raw reply	[flat|nested] 22+ messages in thread
[parent not found: <no.id>]

end of thread, other threads:[~2002-07-16  9:02 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-12  7:36 [parisc-linux] compiling kernels with gcc-3.1 Randolph Chung
2002-07-12  9:49 ` joel.soete
2002-07-12 15:01   ` Randolph Chung
2002-07-12 16:23     ` joel.soete
2002-07-15  7:03       ` joel.soete
2002-07-15  7:24         ` joel.soete
2002-07-15 15:06           ` Randolph Chung
2002-07-15 15:56             ` joel.soete
2002-07-15 15:24         ` John David Anglin
2002-07-15 15:52           ` joel.soete
2002-07-15 16:22           ` Randolph Chung
2002-07-15 17:13             ` John David Anglin
2002-07-15 17:27               ` joel.soete
2002-07-13  5:20 ` [parisc-linux] compiling kernels with gcc-3.2 Randolph Chung
2002-07-13 10:24   ` Joel Soete
2002-07-13 18:54   ` Carlos O'Donell
2002-07-13 17:06 ` [parisc-linux] compiling kernels with gcc-3.1 Joel Soete
     [not found] <no.id>
2002-07-15 17:21 ` John David Anglin
2002-07-15 17:32   ` Randolph Chung
2002-07-15 17:43     ` Matthew Wilcox
2002-07-15 18:18       ` John David Anglin
2002-07-16  9:02   ` joel.soete

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox