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]

Re: Mainline bootstrap failure in toplev.c


> 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/


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