This is the mail archive of the gcc-bugs@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]

Bootstrap failure with -fPIC/-O on x86-linux and powerpc-linux


__builtin_constant_p seems to have gotten broken again.  libgcc2.a
fails to build with the following error:

../../gcc/varasm.c:3265: Internal compiler error in function decode_rtx_const
Please submit a full bug report to `egcs-bugs@cygnus.com'.
See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.


I've attached a test case; it requires both __builtin_constant_p's, and
requires -fPIC -O.

Dan

/--------------------------------\  /--------------------------------\
|       Daniel Jacobowitz        |__|     CMU, CS class of 2002      |
|   Debian GNU/Linux Developer    __   Part-Time Systems Programmer  |
|         dan@debian.org         |  |        drow@cs.cmu.edu         |
\--------------------------------/  \--------------------------------/
static void
__bb_init_prg ()
{
  const char *p = 0;
  unsigned long l;
  (void)(__extension__ (__builtin_constant_p ( p) && __builtin_constant_p ( l)));
}

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