This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
GCC problem (Was: Re: [bugs] Problem compiling the kernel)
- From: Bo Thorsen <bo at sonofthor dot dk>
- To: bugs at x86-64 dot org, gcc at gcc dot gnu dot org
- Cc: aj at suse dot de
- Date: Mon, 10 Dec 2001 15:07:50 +0100
- Subject: GCC problem (Was: Re: [bugs] Problem compiling the kernel)
- Organization: SuSE Labs
- References: <20011207122641.9674DE1B03@pluto.sonofthor.dk>
On Friday 07 December 2001 13:26, Bo Thorsen wrote:
> There is a problem compiling the kernel now, but I can't see if this is a
> gcc or kernel problem.
I just made a good simplification on this one:
----- problem.c -----
typedef struct { } spinlock_t;
spinlock_t runqueue_lock
__attribute__((__aligned__((1 << ((6)))),
__section__(".data.cacheline_aligned"))) = (spinlock_t) { };
----- problem.c -----
> ../crossbuild/x86-64/bin/x86_64-unknown-linux-gcc problem.c
problem.c:4: initializer element is not constant
ia32 gcc works fine.
Ideas on how this has come to be?
Bo.
--
Bo Thorsen | Praestevejen 4
Free software developer | 5290 Marslev
SuSE Labs | Denmark