[Bug go/101994] go1: internal compiler error: in return_statement, at go/go-gcc.cc:2318

2021-09-11 Thread ian at airs dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101994

Ian Lance Taylor  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #5 from Ian Lance Taylor  ---
Fixed on tip.

[Bug go/101994] go1: internal compiler error: in return_statement, at go/go-gcc.cc:2318

2021-09-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101994

--- Comment #4 from CVS Commits  ---
The master branch has been updated by Ian Lance Taylor :

https://gcc.gnu.org/g:79513dc0b2d980bfd1b109d0d502de487c02b894

commit r12-3462-g79513dc0b2d980bfd1b109d0d502de487c02b894
Author: Ian Lance Taylor 
Date:   Fri Aug 20 11:33:29 2021 -0700

compiler: don't pad zero-sized trailing field in results struct

Nothing can take the address of that field anyhow.

Fixes PR go/101994

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/343873

[Bug go/101994] go1: internal compiler error: in return_statement, at go/go-gcc.cc:2318

2021-08-30 Thread lebedev.k.m at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101994

--- Comment #3 from Konstantin Lebedev  ---
(In reply to Ian Lance Taylor from comment #2)
> Fix is https://golang.org/cl/343873.  Test case is
> https://golang.org/cl/343874.

Thank you very much
Great job

[Bug go/101994] go1: internal compiler error: in return_statement, at go/go-gcc.cc:2318

2021-08-20 Thread ian at airs dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101994

Ian Lance Taylor  changed:

   What|Removed |Added

 Ever confirmed|0   |1
   Last reconfirmed||2021-08-20
 Status|UNCONFIRMED |ASSIGNED

--- Comment #2 from Ian Lance Taylor  ---
Fix is https://golang.org/cl/343873.  Test case is
https://golang.org/cl/343874.

[Bug go/101994] go1: internal compiler error: in return_statement, at go/go-gcc.cc:2318

2021-08-20 Thread lebedev.k.m at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101994

--- Comment #1 from Konstantin Lebedev  ---
go build -gccgoflags "-v"
# github.com/chrislusf/seaweedfs/weed/storage/needle_map
Using built-in specs.
COLLECT_GCC=/usr/local/bin/gccgo
Target: x86_64-linux-gnu
Configured with: /usr/src/gcc/configure --build=x86_64-linux-gnu
--disable-multilib --enable-languages=c,c++,fortran,go
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.2.0 (GCC)
COLLECT_GCC_OPTIONS='-c' '-O2' '-g' '-m64'
'-fdebug-prefix-map=/tmp/go-build2182021944=/tmp/go-build'
'-gno-record-gcc-switches'
'-fgo-pkgpath=github.com/chrislusf/seaweedfs/weed/storage/needle_map' '-o'
'/tmp/go-build2182021944/b001/_go_.o' '-I'
'/tmp/go-build2182021944/b001/_importcfgroot_' '-v' '-shared-libgcc'
'-mtune=generic' '-march=x86-64' '-dumpdir' '/tmp/go-build2182021944/b001/'
 /usr/local/libexec/gcc/x86_64-linux-gnu/11.2.0/go1 ./compact_map.go ./memdb.go
./needle_value.go ./needle_value_map.go -quiet -dumpdir $WORK/b001/ -dumpbase
_go_.go -dumpbase-ext .go -m64 -mtune=generic -march=x86-64 -g
-gno-record-gcc-switches -O2 -version
-fdebug-prefix-map=/tmp/go-build2182021944=/tmp/go-build
-fgo-pkgpath=github.com/chrislusf/seaweedfs/weed/storage/needle_map -I
$WORK/b001/_importcfgroot_ -L/usr/local/lib/gcc/x86_64-linux-gnu/11.2.0
-L/usr/local/lib/gcc/x86_64-linux-gnu/11.2.0/../../../../lib64
-L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu
-L/usr/local/lib/gcc/x86_64-linux-gnu/11.2.0/../../.. -o /tmp/ccoXHlsb.s
GNU Go (GCC) version 11.2.0 (x86_64-linux-gnu)
compiled by GNU C version 11.2.0, GMP version 6.1.0, MPFR version
3.1.6, MPC version 1.0.3, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU Go (GCC) version 11.2.0 (x86_64-linux-gnu)
compiled by GNU C version 11.2.0, GMP version 6.1.0, MPFR version
3.1.6, MPC version 1.0.3, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
go1: internal compiler error: in return_statement, at go/go-gcc.cc:2318
0x16a3ed7 internal_error(char const*, ...)
???:0
0x727013 fancy_abort(char const*, int, char const*)
???:0
0x7f4369 Return_statement::do_get_backend(Translate_context*)
???:0
0x7a5033 Block::get_backend(Translate_context*)
???:0
0x7e26cc Block_statement::do_get_backend(Translate_context*)
???:0
0x7a5033 Block::get_backend(Translate_context*)
???:0
0x7a5c33 Function::build(Gogo*, Named_object*)
???:0
0x7af247 Gogo::write_globals()
???:0
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See  for instructions.
note: module requires Go 1.17