At the beginning of stage2, the following error occurs: /home/dave/gnu/gcc/objdir/./prev-gcc/xgcc -B/home/dave/gnu/gcc/objdir/ ./prev-gcc/ -B/home/dave/opt/gnu/gcc/gcc-4.5.0/hppa-linux/bin/ -B/home/dave/opt/ gnu/gcc/gcc-4.5.0/hppa-linux/bin/ -B/home/dave/opt/gnu/gcc/gcc-4.5.0/hppa-linux/ lib/ -isystem /home/dave/opt/gnu/gcc/gcc-4.5.0/hppa-linux/include -isystem /home /dave/opt/gnu/gcc/gcc-4.5.0/hppa-linux/sys-include -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Ws trict-prototypes -pedantic -fPIC ../../gcc/libiberty/strsignal.c -o pic/strsign al.o; \ else true; fi ../../gcc/libiberty/strsignal.c:554:1: error: conflicting types for 'psignal' /usr/include/signal.h:141:13: note: previous declaration of 'psignal' was here make[3]: *** [strsignal.o] Error 1
This occurs because the configure test failed: configure:7828: checking for psignal configure:7884: /home/dave/gnu/gcc/objdir/./prev-gcc/xgcc -B/home/dave/gnu/gcc/ objdir/./prev-gcc/ -B/home/dave/opt/gnu/gcc/gcc-4.5.0/hppa-linux/bin/ -B/home/da ve/opt/gnu/gcc/gcc-4.5.0/hppa-linux/bin/ -B/home/dave/opt/gnu/gcc/gcc-4.5.0/hppa -linux/lib/ -isystem /home/dave/opt/gnu/gcc/gcc-4.5.0/hppa-linux/include -isyste m /home/dave/opt/gnu/gcc/gcc-4.5.0/hppa-linux/sys-include -o conftest -g -O2 conftest.c >&5 conftest.c: In function 'main': conftest.c:83:1: internal compiler error: in expand_expr_real_1, at expr.c:9112 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. configure:7890: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define _FILE_OFFSET_BITS 64 | #define WORDS_BIGENDIAN 1 | #define HAVE_SYS_FILE_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_MALLOC_H 1 | #define HAVE_STRING_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_TIME_H 1 | #define HAVE_SYS_RESOURCE_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_MMAN_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_ALLOCA_H 1 | #define HAVE_SYS_SYSINFO_H 1 | #define HAVE_SYS_SYSCTL_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDIO_EXT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define TIME_WITH_SYS_TIME 1 | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define SIZEOF_INT 4 | #define UNSIGNED_64BIT_TYPE uint64_t | #define HAVE_UINTPTR_T 1 | #define STACK_DIRECTION 1 | #define HAVE_UNISTD_H 1 | #define vfork fork | #define HAVE_SYS_ERRLIST 1 | #define HAVE_SYS_NERR 1 | #define HAVE_SYS_SIGLIST 1 | /* end confdefs.h. */ | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char psignal (); below. | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | <limits.h> exists even on freestanding compilers. Under hpux, | including <limits.h> includes <sys/time.h> and causes problems | checking for functions defined therein. */ | #if defined (__STDC__) && !defined (_HPUX_SOURCE) | # include <limits.h> | #else | # include <assert.h> | #endif | /* Override any gcc2 internal prototype to avoid an error. */ | #ifdef __cplusplus | extern "C" | { | #endif | /* We use char because int might match the return type of a gcc2 | builtin and then its argument prototype would still apply. */ | char psignal (); | /* The GNU C library defines this for functions which it implements | to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined (__stub_psignal) || defined (__stub___psignal) | choke me | #else | char (*f) () = psignal; | #endif | #ifdef __cplusplus | } | #endif | | int | main () | { | return f != psignal; | ; | return 0; | } 2009-06-28 Paolo Bonzini <bonz...@gnu.org> * expr.c (expand_expr_real_1): Just use do_store_flag. (do_store_flag): Drop support for TRUTH_NOT_EXPR. Use emit_store_flag_force. * expmed.c (emit_store_flag_force): Copy here trick previously in expand_expr_real_1. Try reversing the comparison. (emit_store_flag_1): Work if target is NULL. (emit_store_flag): Work if target is NULL, using the result mode from the comparison. Use split_comparison, restructure final part to simplify conditionals. d...@mx3210:~/gnu/gcc/objdir/prev-gcc$ ./xgcc -B./ -v Reading specs from ./specs Target: hppa-linux Configured with: ../gcc/configure --with-gnu-as --with-gnu-ld --enable-shared --prefix=/home/dave/opt/gnu/gcc/gcc-4.5.0 --with-local-prefix=/home/dave/opt/gnu --enable-threads=posix --enable-__cxa_atexit --build=hppa-linux --enable-clocale=gnu --enable-java-gc=boehm --enable-java-awt=xlib --enable-languages=c,c++,objc,fortran,obj-c++,java,ada Thread model: posix gcc version 4.5.0 20090628 (experimental) [trunk revision 149032] (GCC) -- Summary: [4.5 Regression] Revision 149032 breaks bootstrap Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: danglin at gcc dot gnu dot org GCC build triplet: hppa-unknown-linux-gnu GCC host triplet: hppa-unknown-linux-gnu GCC target triplet: hppa-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40607