https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68072
--- Comment #9 from Ian Lance Taylor ---
Thanks very much for taking the time to narrow down the test case. That is
nice and simple.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68072
--- Comment #10 from Ian Lance Taylor ---
FYI, refiled as https://golang.org/issue/13344 and sent out
https://golang.org/cl/17151 , a variant of the patch you suggested.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68072
--- Comment #11 from ian at gcc dot gnu.org ---
Author: ian
Date: Fri Nov 20 22:48:47 2015
New Revision: 230685
URL: https://gcc.gnu.org/viewcvs?rev=230685=gcc=rev
Log:
PR go/68072
cmd/cgo: ignore vars with no name or type if they
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68072
--- Comment #12 from ian at gcc dot gnu.org ---
Author: ian
Date: Fri Nov 20 22:49:06 2015
New Revision: 230686
URL: https://gcc.gnu.org/viewcvs?rev=230686=gcc=rev
Log:
PR go/68072
cmd/cgo: ignore vars with no name or type if they
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68072
Ian Lance Taylor changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68072
--- Comment #8 from Dominik Vogt ---
Created attachment 36750
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36750=edit
Test case
This is the requested minimal test program.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68072
--- Comment #7 from Dominik Vogt ---
All right, I'll try to extract a minimal test case.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68072
Ian Lance Taylor changed:
What|Removed |Added
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68072
--- Comment #5 from Dominik Vogt ---
Any opinions on the patch in comment 3?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68072
--- Comment #2 from Ian Lance Taylor ---
This is not a known bug. I wonder what is special about this package that it
causes it to happen? I don't see anything new in GCC related to
DW_AT_specification.
I think the place to fix in the Go
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68072
--- Comment #3 from Dominik Vogt ---
Created attachment 36588
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36588=edit
Experimental fix
The attached patch fixes the problem for us by skipping DW_TAG_variable DWARF
info that only contains
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68072
--- Comment #4 from Dominik Vogt ---
@comment 2
I can't see anything special that the file does:
-- secp256.go --
package secp256k1
/*
#cgo CFLAGS: -I./secp256k1
...
#include "./secp256k1/src/secp256k1.c"
*/
import "C"
-- END --
Then in
--
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68072
--- Comment #1 from Dominik Vogt ---
It seems that the DWARF library is unable to handle DW_AT_specification:
-- snip --
<1><7b4>: Abbrev Number: 27 (DW_TAG_variable)
<7b5> DW_AT_specification: <0x8b>
<7b9> DW_AT_decl_file : 13
13 matches
Mail list logo