[gambit-list] When gsc makes gcc unhappy with symbol redefinitions

Dimitris Vyzovitis vyzo at hackzen.org
Wed May 10 06:19:03 EDT 2017


Bringing this up to the list, because this is an interesting output from
gsc and the file attachment feature of github doesn't work.
So I have this file which is the compiled output of gxc for srfi-14, with
some optimizations applied (namely inlining of struct ops in this case).
This results to gsc generating a bunch of cascading redefinitions, which
result in gcc warnings.

> gsc 14__0.scm
14__0.c:337:0: warning: "___SYM__3a_char_2d_set3224" redefined
 #define ___SYM__3a_char_2d_set3224 ___SYM(3,___S__3a_char_2d_set3224)
 ^
14__0.c:336:0: note: this is the location of the previous definition
 #define ___SYM__3a_char_2d_set3224 ___SYM(2,___S__3a_char_2d_set3224)
 ^
14__0.c:338:0: warning: "___SYM__3a_char_2d_set3224" redefined
 #define ___SYM__3a_char_2d_set3224 ___SYM(4,___S__3a_char_2d_set3224)
 ^
14__0.c:337:0: note: this is the location of the previous definition
 #define ___SYM__3a_char_2d_set3224 ___SYM(3,___S__3a_char_2d_set3224)
 ^
14__0.c:339:0: warning: "___SYM__3a_char_2d_set3224" redefined
 #define ___SYM__3a_char_2d_set3224 ___SYM(5,___S__3a_char_2d_set3224)
 ^
14__0.c:338:0: note: this is the location of the previous definition
 #define ___SYM__3a_char_2d_set3224 ___SYM(4,___S__3a_char_2d_set3224)
 ^

So what's up with that?

-- vyzo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20170510/5ae132ed/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 14__0.scm
Type: text/x-scheme
Size: 41643 bytes
Desc: not available
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20170510/5ae132ed/attachment.bin>


More information about the Gambit-list mailing list