From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Date: Wed, 23 Sep 2009 02:49:44 +0800 Message-ID: <1d5d51400909221149u32faccd7ue23a538afa523a23@mail.gmail.com> From: Fernan Bolando To: 9fans@9fans.net Content-Type: text/plain; charset=ISO-8859-1 Subject: [9fans] zero length arrays in gcc Topicbox-Message-UUID: 755f2ab4-ead5-11e9-9d60-3106f5b1d025 Hi all nhc98 uses a few of static unsigned startLabel[]={}; which is a zero length array. It appears that it uses this as reference to calculate the correct pointer for a bytecode. pcc does not allow this since zero lenth array is another gcc extension. I tried declaring it as static unsigned startLabel[]; The resulting bytecode can then be compiled however it will only crash. I traced it a pointer that tries to read an unallocated section in memory. Is it possible emulate zero pointer in pcc?? -- http://www.fernski.com