FAQ
What about clang?

# net
cgo_unix.go:52:31: warning: unknown attribute '__gcc_struct__' ignored
[-Wattributes]
         } __attribute__((__packed__, __gcc_struct__)) *a = v;
                                      ^
cgo_unix.go:62:31: warning: unknown attribute '__gcc_struct__' ignored
[-Wattributes]
         } __attribute__((__packed__, __gcc_struct__)) *a = v;
                                      ^
cgo_unix.go:71:31: warning: unknown attribute '__gcc_struct__' ignored
[-Wattributes]
         } __attribute__((__packed__, __gcc_struct__)) *a = v;
                                      ^
cgo_unix.go:82:31: warning: unknown attribute '__gcc_struct__' ignored
[-Wattributes]
         } __attribute__((__packed__, __gcc_struct__)) *a = v;
                                      ^
cgo_unix.go:96:31: warning: unknown attribute '__gcc_struct__' ignored
[-Wattributes]
         } __attribute__((__packed__, __gcc_struct__)) *a = v;
                                      ^
5 warnings generated.
On Mon, Jun 10, 2013 at 10:00 AM, minux wrote:
On Mon, Jun 10, 2013 at 7:53 PM, Russ Cox wrote:

I am worried about this. We don't know how well __gcc_struct__ does or
doesn't work in the other versions of gcc that people might be using. Isn't
there a workaround, namely don't use that version of mingw on Windows?
Even GCC 4.0.4 supports this attribute:
http://gcc.gnu.org/onlinedocs/gcc-4.0.4/gcc/Type-Attributes.html#index-g_t_0040code_007bgcc_005fstruct_007d-1807

It is still possible to use Go without this CL, you just have to use a
working gcc.
But the user has to downgrade to GCC 4.6.x or older, however support for
those versions have
recently ended with the release of GCC 4.8.

--

---
You received this message because you are subscribed to the Google Groups
"golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to golang-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


--
Francisco Souza

--

---
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 5 of 11 | next ›
Discussion Overview
groupgolang-dev @
categoriesgo
postedJun 9, '13 at 2:44p
activeJun 10, '13 at 6:55p
posts11
users4
websitegolang.org

People

Translate

site design / logo © 2022 Grokbase