public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Mainline bootstrap failure in toplev.c
@ 2004-12-01 15:32 Wolfgang Bangerth
  2004-12-01 15:38 ` Andrew Pinski
  0 siblings, 1 reply; 24+ messages in thread
From: Wolfgang Bangerth @ 2004-12-01 15:32 UTC (permalink / raw)
  To: gcc; +Cc: rth


Hi all,
for several weeks now (I believe since my box has been upgraded to 
Mandrake), mainline doesn't bootstrap any more for me. In stage1 
I get this:

stage1/xgcc -Bstage1/ -B/ices/bangerth/tmp/build-gcc/gcc-install/i686-pc-linux-gnu/bin/   -O2 -g -fomit-frame-pointer -DIN_GCC   -fno-common   -DHAVE_CONFIG_H    -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include -DTARGET_NAME=\"i686-pc-linux-gnu\" -c ../../gcc/gcc/toplev.c -o toplev.o -save-temps
../../gcc/gcc/toplev.c: In function 'toplev_main':
../../gcc/gcc/toplev.c:544: sorry, unimplemented: inlining failed in call to 'floor_log2': redefined extern inline functions are not considered for inlining
../../gcc/gcc/toplev.c:1675: sorry, unimplemented: called from here
../../gcc/gcc/toplev.c:544: sorry, unimplemented: inlining failed in call to 'floor_log2': redefined extern inline functions are not considered for inlining
../../gcc/gcc/toplev.c:1679: sorry, unimplemented: called from here
../../gcc/gcc/toplev.c:544: sorry, unimplemented: inlining failed in call to 'floor_log2': redefined extern inline functions are not considered for inlining
../../gcc/gcc/toplev.c:1681: sorry, unimplemented: called from here
../../gcc/gcc/toplev.c:544: sorry, unimplemented: inlining failed in call to 'floor_log2': redefined extern inline functions are not considered for inlining
../../gcc/gcc/toplev.c:1685: sorry, unimplemented: called from here

make then stops. Frankly, I don't know what these messages mean, but when
trying to find out what that could be, I realized that floor_log2 is
implemented multiple times: first, in toplev.h we have

  extern int floor_log2                  (unsigned HOST_WIDE_INT);
  [...]
  extern inline int
  floor_log2 (unsigned HOST_WIDE_INT x)
  {
    return x ? HOST_BITS_PER_WIDE_INT - 1 - (int) CLZ_HWI (x) : -1;
  }

Then, in toplev.c, the same function is reimplemented:
  int
  floor_log2 (unsigned HOST_WIDE_INT x)
  {
    [...]
  }
 
That in itself strikes me as odd and wrong. In addition, the inline keyword
in the first definition is expanded to
  __inline__ __attribute__((always_inline)) __attribute__((always_inline))
which presumably is the cause of the problem.

Is this a problem that others have seen before me?

Thanks
  Wolfgang

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

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2004-12-02  8:23 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-01 15:32 Mainline bootstrap failure in toplev.c Wolfgang Bangerth
2004-12-01 15:38 ` Andrew Pinski
2004-12-01 15:56   ` Wolfgang Bangerth
2004-12-01 17:09     ` Richard Henderson
2004-12-01 17:18       ` Wolfgang Bangerth
2004-12-01 17:20         ` Richard Henderson
2004-12-01 17:38           ` Joe Buck
2004-12-01 17:51             ` Paul Brook
2004-12-01 17:55               ` Joe Buck
2004-12-01 17:56                 ` Daniel Jacobowitz
2004-12-01 18:03                   ` Joe Buck
2004-12-01 18:05                     ` Daniel Jacobowitz
2004-12-01 17:56               ` Daniel Jacobowitz
2004-12-01 18:35             ` Richard Henderson
2004-12-01 17:49           ` Zack Weinberg
2004-12-01 20:12             ` Wolfgang Bangerth
2004-12-01 20:39               ` Richard Henderson
2004-12-01 21:15                 ` Wolfgang Bangerth
2004-12-01 21:28                   ` Andreas Schwab
2004-12-01 21:32                     ` Wolfgang Bangerth
2004-12-01 21:35                       ` Andreas Schwab
2004-12-01 21:46                         ` Wolfgang Bangerth
2004-12-01 17:50           ` Wolfgang Bangerth
2004-12-02  8:23             ` Kai Henningsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).