This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GCC problem (Was: Re: [bugs] Problem compiling the kernel)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]