On Mon, 2014-10-20 14:21:19 -0700, Dehao Chen <de...@google.com> wrote: > The updated patch attached. Will commit the patch in 2~3 hours if no > objection is received.
Just noticed that this doesn't build on gcc111, see eg. build #364675 [1], which looks like this: g++ -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -I. -I. -I/home/jbglaw/repos/gcc/gcc -I/home/jbglaw/repos/gcc/gcc/. -I/home/jbglaw/repos/gcc/gcc/../include -I/home/jbglaw/repos/gcc/gcc/../libcpp/include -I/opt/cfarm/gmp-latest/include -I/opt/cfarm/mpfr-latest/include -I/opt/cfarm/mpc-latest/include -I/home/jbglaw/repos/gcc/gcc/../libdecnumber -I/home/jbglaw/repos/gcc/gcc/../libdecnumber/dpd -I../libdecnumber -I/home/jbglaw/repos/gcc/gcc/../libbacktrace -o auto-profile.o -MT auto-profile.o -MMD -MP -MF ./.deps/auto-profile.TPo /home/jbglaw/repos/gcc/gcc/auto-profile.c In file included from /home/jbglaw/repos/gcc/gcc/system.h:46:0, from /home/jbglaw/repos/gcc/gcc/auto-profile.c:26: /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.1/include-fixed/stdio.h:560:40: error: declaration of C function 'int fgetpos64(FILE*, fpos64_t*)' conflicts with extern int fgetpos64(FILE *, fpos64_t *); ^ In file included from /home/jbglaw/repos/gcc/gcc/system.h:46:0, from /home/jbglaw/repos/gcc/gcc/auto-profile.c:26: /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.1/include-fixed/stdio.h:355:12: error: previous declaration 'int fgetpos64(FILE*, fpos_t*)' here extern int fgetpos(FILE *__restrict__, fpos_t *__restrict__); ^ In file included from /home/jbglaw/repos/gcc/gcc/system.h:46:0, from /home/jbglaw/repos/gcc/gcc/auto-profile.c:26: /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.1/include-fixed/stdio.h:563:41: error: declaration of C function 'int fseeko64(FILE*, off64_t, int)' conflicts with extern int fseeko64(FILE *, off64_t, int); ^ In file included from /home/jbglaw/repos/gcc/gcc/system.h:46:0, from /home/jbglaw/repos/gcc/gcc/auto-profile.c:26: /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.1/include-fixed/stdio.h:503:12: error: previous declaration 'int fseeko64(FILE*, off_t, int)' here extern int fseeko(FILE *, off_t, int); ^ In file included from /home/jbglaw/repos/gcc/gcc/system.h:46:0, from /home/jbglaw/repos/gcc/gcc/auto-profile.c:26: /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.1/include-fixed/stdio.h:564:46: error: declaration of C function 'int fsetpos64(FILE*, const fpos64_t*)' conflicts with extern int fsetpos64(FILE *, const fpos64_t *); ^ In file included from /home/jbglaw/repos/gcc/gcc/system.h:46:0, from /home/jbglaw/repos/gcc/gcc/auto-profile.c:26: /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.1/include-fixed/stdio.h:357:12: error: previous declaration 'int fsetpos64(FILE*, const fpos_t*)' here extern int fsetpos(FILE *, const fpos_t *); ^ In file included from /home/jbglaw/repos/gcc/gcc/system.h:46:0, from /home/jbglaw/repos/gcc/gcc/auto-profile.c:26: /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.1/include-fixed/stdio.h:565:31: error: declaration of C function 'off64_t ftello64(FILE*)' conflicts with extern off64_t ftello64(FILE *); ^ In file included from /home/jbglaw/repos/gcc/gcc/system.h:46:0, from /home/jbglaw/repos/gcc/gcc/auto-profile.c:26: /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.1/include-fixed/stdio.h:504:14: error: previous declaration 'off_t ftello64(FILE*)' here extern off_t ftello(FILE *); ^ In file included from /home/jbglaw/repos/gcc/gcc/system.h:268:0, from /home/jbglaw/repos/gcc/gcc/auto-profile.c:26: /usr/include/unistd.h:201:41: error: declaration of C function 'off64_t lseek64(int, off64_t, int)' conflicts with extern off64_t lseek64(int, off64_t, int); ^ /usr/include/unistd.h:199:14: error: previous declaration 'off_t lseek64(int, off_t, int)' here extern off_t lseek(int, off_t, int); ^ In file included from /usr/include/unistd.h:844:0, from /home/jbglaw/repos/gcc/gcc/system.h:268, from /home/jbglaw/repos/gcc/gcc/auto-profile.c:26: /usr/include/sys/lockf.h:64:39: error: declaration of C function 'int lockf64(int, int, off64_t)' conflicts with extern int lockf64 (int, int, off64_t); ^ /usr/include/sys/lockf.h:62:13: error: previous declaration 'int lockf64(int, int, off_t)' here extern int lockf (int, int, off_t); ^ In file included from /home/jbglaw/repos/gcc/gcc/system.h:268:0, from /home/jbglaw/repos/gcc/gcc/auto-profile.c:26: /usr/include/unistd.h:917:38: error: declaration of C function 'int ftruncate64(int, off64_t)' conflicts with extern int ftruncate64(int, off64_t); ^ In file included from /home/jbglaw/repos/gcc/gcc/system.h:268:0, from /home/jbglaw/repos/gcc/gcc/auto-profile.c:26: /usr/include/unistd.h:915:14: error: previous declaration 'int ftruncate64(int, off_t)' here extern int ftruncate(int, off_t); ^ In file included from /home/jbglaw/repos/gcc/gcc/system.h:268:0, from /home/jbglaw/repos/gcc/gcc/auto-profile.c:26: /usr/include/unistd.h:974:46: error: declaration of C function 'int truncate64(const char*, off64_t)' conflicts with extern int truncate64(const char *, off64_t); ^ In file included from /home/jbglaw/repos/gcc/gcc/system.h:268:0, from /home/jbglaw/repos/gcc/gcc/auto-profile.c:26: /usr/include/unistd.h:972:14: error: previous declaration 'int truncate64(const char*, off_t)' here extern int truncate(const char *, off_t); ^ In file included from /home/jbglaw/repos/gcc/gcc/system.h:268:0, from /home/jbglaw/repos/gcc/gcc/auto-profile.c:26: /usr/include/unistd.h:993:54: error: declaration of C function 'ssize_t pread64(int, void*, size_t, off64_t)' conflicts with extern ssize_t pread64(int, void *, size_t, off64_t); ^ /usr/include/unistd.h:990:18: error: previous declaration 'ssize_t pread64(int, void*, size_t, off_t)' here extern ssize_t pread(int, void *, size_t, off_t); ^ /usr/include/unistd.h:994:61: error: declaration of C function 'ssize_t pwrite64(int, const void*, size_t, off64_t)' conflicts with extern ssize_t pwrite64(int, const void *, size_t, off64_t); ^ /usr/include/unistd.h:991:18: error: previous declaration 'ssize_t pwrite64(int, const void*, size_t, off_t)' here extern ssize_t pwrite(int, const void *, size_t, off_t); ^ /usr/include/unistd.h:1079:38: error: declaration of C function 'off64_t fclear64(int, off64_t)' conflicts with extern off64_t fclear64(int, off64_t); ^ /usr/include/unistd.h:1076:15: error: previous declaration 'off_t fclear64(int, off_t)' here extern off_t fclear(int, off_t); ^ /usr/include/unistd.h:1080:53: error: declaration of C function 'int fsync_range64(int, int, off64_t, off64_t)' conflicts with extern int fsync_range64(int, int, off64_t, off64_t); ^ /usr/include/unistd.h:1077:13: error: previous declaration 'int fsync_range64(int, int, off_t, off_t)' here extern int fsync_range(int, int, off_t, off_t); ^ In file included from /home/jbglaw/repos/gcc/gcc/system.h:395:0, from /home/jbglaw/repos/gcc/gcc/auto-profile.c:26: /usr/include/sys/mman.h:148:60: error: declaration of C function 'void* mmap64(void*, size_t, int, int, int, off64_t)' conflicts with extern void *mmap64(void *, size_t, int, int, int, off64_t); ^ /usr/include/sys/mman.h:143:15: error: previous declaration 'void* mmap64(void*, size_t, int, int, int, off_t)' here extern void *mmap(void *, size_t, int, int, int, off_t); ^ In file included from /home/jbglaw/repos/gcc/gcc/system.h:1093:0, from /home/jbglaw/repos/gcc/gcc/auto-profile.c:26: /home/jbglaw/repos/gcc/gcc/wide-int.h: In member function 'void generic_wide_int<T>::dump() const': /home/jbglaw/repos/gcc/gcc/hwint.h:110:38: error: expected ')' before 'PRIx64' #define HOST_WIDE_INT_PRINT_HEX "%#" PRIx64 ^ /home/jbglaw/repos/gcc/gcc/wide-int.h:879:22: note: in expansion of macro 'HOST_WIDE_INT_PRINT_HEX' fprintf (stderr, HOST_WIDE_INT_PRINT_HEX ",", val[len - 1 - i]); ^ /home/jbglaw/repos/gcc/gcc/hwint.h:110:38: error: expected ')' before 'PRIx64' #define HOST_WIDE_INT_PRINT_HEX "%#" PRIx64 ^ /home/jbglaw/repos/gcc/gcc/wide-int.h:880:20: note: in expansion of macro 'HOST_WIDE_INT_PRINT_HEX' fprintf (stderr, HOST_WIDE_INT_PRINT_HEX "], precision = %d\n", ^ make[1]: *** [auto-profile.o] Error 1 MfG, JBG [1] http://toolchain.lug-owl.de/buildbot/show_build_details.php?id=364675 -- Jan-Benedict Glaw jbg...@lug-owl.de +49-172-7608481 Signature of: The course of history shows that as a government grows, liberty the second : decreases." (Thomas Jefferson)
signature.asc
Description: Digital signature