https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81966

            Bug ID: 81966
           Summary: runtime.inc:362:10: error: duplicate member ‘_’
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: go
          Assignee: ian at airs dot com
          Reporter: mfe at live dot de
                CC: cmang at google dot com
  Target Milestone: ---

Hi,

regarding https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81946 I untared the last
gcc 7.2.0 source. I removed the libgo folder and replaced it with the libgo
folder from the svn trunk source.

the exact version of GCC:
gcc-7.1.0

the system type:
NetgearReadyNAS Duo
(http://wiki.dietpc.org/index.php/DIET-PC_on_SPARC_ReadyNAS)

the options given when GCC was configured/built:
nas-02-90-38:/media/gcc-7.2.0-go# ../gcc-7.2.0/configure
CC=/opt/gcc-7.1/bin/gcc CXX=/opt/gcc-7.1/bin/g++ --enable-languages=c,c++,go
--prefix=/opt/gcc-7.2.0  --with-cpu=v7 --disable-libstdcxx-pch
--disable-linux-futex --disable-libsanitizer --enable-__cxa_atexit
--with-system-zlib --enable-nls --enable-clocale=gnu --enable-debug 
--disable-doc --disable-libcilkrts --disable-libitm


## --------- ##
## Platform. ##
## --------- ##

hostname = nas-02-90-38
uname -m = padre
uname -r = 2.6.17.14ReadyNAS
uname -s = Linux
uname -v = #1 Wed Jun 20 20:08:20 PDT 2012

the complete command line that triggers the bug;
/usr/local/bin/make

the compiler output (error messages, warnings, etc.);
[...]
time/write_err.go runtime_sysinfo.go sigtab.go -o runtime.o >/dev/null 2>&1
rm -f runtime.inc.tmp2 runtime.inc.tmp3
grep -v "#define _" runtime.inc.tmp | grep -v "#define [cm][01234] " | grep -v
"#define empty " > runtime.inc.tmp2
for pattern in '_[GP][a-z]' _Max _Lock _Sig _Trace _MHeap _Num; do \
  grep "#define $pattern" runtime.inc.tmp >> runtime.inc.tmp2; \
done
for TYPE in _Complex_lock _Reader_lock semt; do \
  sed -e '/struct '${TYPE}' {/,/^}/s/^.*$//' runtime.inc.tmp2 >
runtime.inc.tmp3; \
  mv runtime.inc.tmp3 runtime.inc.tmp2; \
done
sed -e 's/sigset/sigset_go/' runtime.inc.tmp2 > runtime.inc.tmp3
/bin/sh ../../../gcc-7.2.0/libgo/mvifdiff.sh runtime.inc.tmp3 runtime.inc
rm -f runtime.inc.tmp2 runtime.inc.tmp3
echo timestamp > s-runtime-inc
/media/gcc-7.2.0-go/./gcc/xgcc -B/media/gcc-7.2.0-go/./gcc/
-B/opt/gcc-7.2.0/sparc-unknown-linux-gnu/bin/
-B/opt/gcc-7.2.0/sparc-unknown-linux-gnu/lib/ -isystem
/opt/gcc-7.2.0/sparc-unknown-linux-gnu/include -isystem
/opt/gcc-7.2.0/sparc-unknown-linux-gnu/sys-include    -DHAVE_CONFIG_H -I.
-I../../../gcc-7.2.0/libgo  -I ../../../gcc-7.2.0/libgo/runtime
-I../../../gcc-7.2.0/libgo/../libffi/include -I../libffi/include -pthread 
-fexceptions -fnon-call-exceptions -fplan9-extensions  -Wall -Wextra
-Wwrite-strings -Wcast-qual -Werror   -D_GNU_SOURCE -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I ../../../gcc-7.2.0/libgo/../libgcc -I
../../../gcc-7.2.0/libgo/../libbacktrace -I ../../gcc/include -fPIC -g -O2 -MT
libgobegin_a-go-main.o -MD -MP -MF .deps/libgobegin_a-go-main.Tpo -c -o
libgobegin_a-go-main.o `test -f 'runtime/go-main.c' || echo
'../../../gcc-7.2.0/libgo/'`runtime/go-main.c
In file included from ../../../gcc-7.2.0/libgo/runtime/runtime.h:108:0,
                 from ../../../gcc-7.2.0/libgo/runtime/go-main.c:17:
./runtime.inc:362:10: error: duplicate member ‘_’
  uint8_t _[64];
          ^
Generated runtime.inc from line 347 to 363:

struct gcControllerState {
        int64_t scanWork;
        int64_t bgScanCredit;
        int64_t assistTime;
        int64_t dedicatedMarkTime;
        int64_t fractionalMarkTime;
        int64_t idleMarkTime;
        int64_t markStartTime;
        int64_t dedicatedMarkWorkersNeeded;
        double assistWorkPerByte;
        double assistBytesPerWork;
        double fractionalUtilizationGoal;
        double triggerRatio;
        uint8_t _[64];
        int64_t fractionalMarkWorkersNeeded;
        uint8_t _[64];
};

Reply via email to