This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix up vla, vm and [*] semantics for C


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Joseph S. Myers wrote:
> On Thu, 18 May 2006, Mike Stump wrote:
> 
>> On May 18, 2006, at 8:16 AM, Joseph S. Myers wrote:
>>> -pedantic should never cause an error; it should only cause pedwarns
>> Fixed.  Also fixed, a spelling typo and the last of the testsuite cleanups
>> needed.
>>
>> Ok for 4.2?
> 
> OK.

I'm getting a weird error during bootstrap in boehm-gc:
- -------------------------- 8< --------------------------
/home/ranmath/src/gcc/build/./gcc/xgcc -B/home/ranmath/src/gcc/build/./gcc/ -B/h
ome/ranmath/gcc/i686-pc-linux-gnu/bin/ -B/home/ranmath/gcc/i686-pc-linux-gnu/lib
/ -isystem /home/ranmath/gcc/i686-pc-linux-gnu/include -isystem /home/ranmath/gc
c/i686-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I/home/ranmath/src/gcc/gcc/boeh
m-gc/include -fexceptions -Iinclude -I././targ-include -I.//libc/include -O2 -g
- -O2 -fexceptions -Iinclude -I././targ-include -I.//libc/include -c /home/ranmath
/src/gcc/gcc/boehm-gc/dbg_mlc.c  -fPIC -DPIC -o .libs/dbg_mlc.o
/home/ranmath/src/gcc/gcc/boehm-gc/dbg_mlc.c:994: error: '[*]' not allowed in ot
her than function prototype scope
make[3]: *** [dbg_mlc.lo] Error 1
- -------------------------- 8< --------------------------

However, dbg_mlc.c:994 contains innocuous-looking code:
- -------------------------- 8< --------------------------
 991 /* This assumes that all accessible objects are marked, and that        */
 992 /* I hold the allocation lock.  Normally called by collector.           */
 993 void GC_check_heap_proc()
 994 {
 995 #   ifndef SMALL_CONFIG
 996 #     ifdef ALIGN_DOUBLE
 997         GC_STATIC_ASSERT((sizeof(oh) & (2 * sizeof(word) - 1)) == 0);
 998 #     else
 999         GC_STATIC_ASSERT((sizeof(oh) & (sizeof(word) - 1)) == 0);
1000 #     endif
1001 #   endif
1002     GC_apply_to_all_blocks(GC_check_heap_block, (word)0);
1003 }
- -------------------------- 8< --------------------------

The error is issued by grokparms in c-decl.c:4852, if that helps.

Thanks,
Ranjit.

- --
Ranjit Mathew      Email: rmathew AT gmail DOT com

Bangalore, INDIA.    Web: http://rmathew.com/


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEbV8tYb1hx2wRS48RAogZAJ9HFCOCK4uQBT5da3a3poc48q4G5wCgpUpT
hp+N6fqLNCPXbfMnq9mVFJs=
=hX6B
-----END PGP SIGNATURE-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]