This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/24831] [4.1/4.2 regression] gthr-dce.h:77: error: expected expression before '{' token
- From: "dave at hiauly1 dot hia dot nrc dot ca" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Nov 2005 21:36:24 -0000
- Subject: [Bug target/24831] [4.1/4.2 regression] gthr-dce.h:77: error: expected expression before '{' token
- References: <bug-24831-276@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from dave at hiauly1 dot hia dot nrc dot ca 2005-11-25 21:36 -------
Subject: Re: [4.1/4.2 regression] gthr-dce.h:77: error: expected expression
before '{' token
> Hmm, GTHREAD_USE_WEAK should be zero so that this should not matter at all.
> Did someone forget to include the tm.h file or a different file for this code?
We're using the "#else" part of this code:
#if SUPPORTS_WEAK && GTHREAD_USE_WEAK
# define __gthrw(name) \
extern __typeof(name) __gthrw_ ## name __attribute__ ((__weakref__(#name)))
#else
# define __gthrw_asmname(cname) __gthrw_asmnamep (__USER_LABEL_PREFIX__, cname)
# define __gthrw_asmnamep(prefix, cname) __gthrw_string (prefix) cname
# define __gthrw_string(x) #x
# define __gthrw(name) \
extern __typeof(name) __gthrw_ ## name __asm (__gthrw_asmname (#name))
#endif
SUPPORTS_WEAK should be zero on HP-UX 10.
Dave
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24831