Mainline bootstrap failure in toplev.c

Wolfgang Bangerth bangerth@ices.utexas.edu
Wed Dec 1 20:12:00 GMT 2004


> Uh, why is linux/compiler.h getting dragged into the compilation of a
> user space program in the first place?

Through the following chain:

  signal.h
  bits/sigcontext.h
  asm/sigcontext.h
  linux/compiler.h

The redefinition of "inline" is guarded like so:
  #if __GNUC_MINOR__ >= 1 && defined __KERNEL__
  # define inline		__inline__ __attribute__((always_inline))
  # define __inline__	__inline__ __attribute__((always_inline))
  # define __inline	__inline__ __attribute__((always_inline))
  #endif

I have no idea, however, why __KERNEL__ is apparently set during gcc 
bootstrapping.

W.

-------------------------------------------------------------------------
Wolfgang Bangerth              email:            bangerth@ices.utexas.edu
                               www: http://www.ices.utexas.edu/~bangerth/



More information about the Gcc mailing list