Subject: Re: lib/36511: lcc is an ANSI C compiler for a variety of platforms
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Aleksey Cheusov <cheusov@tut.by>
List: netbsd-bugs
Date: 06/27/2007 17:20:02
The following reply was made to PR lib/36511; it has been noted by GNATS.

From: Aleksey Cheusov <cheusov@tut.by>
To: gnats-bugs@NetBSD.org
Cc: lib-bug-people@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: lib/36511: lcc is an ANSI C compiler for a variety of platforms
Date: Wed, 27 Jun 2007 20:18:40 +0300

 >  | How about about fixing
 >  |       #if __STDC__
 >  | !         ^^^^^^^^
 >  |       #define ___RENAME(x)    __asm(___STRING(_C_LABEL(x)))
 >  |       #else
 >  |       #ifdef __LEADING_UNDERSCORE
 >  |       ...
 >  | 
 >  | and 
 >  | 
 >  |       #if __STDC__
 >  | !         ^^^^^^^^
 >  |       #define __strong_alias(alias,sym)                      \
 >  |       __asm(".global " _C_LABEL_STRING(#alias) "\n"          \
 >  |       _C_LABEL_STRING(#alias) " = " _C_LABEL_STRING(#sym));
 >  | 
 >  | 
 
 >  I don't understand what to fix here....
 
 I'm not sure that *non-standard* __asm directive can be allowed if
 __STDC__ is defined. Can you explain this?
 
 P.S.
 It's not clear for me what things should be fixed?
 LCC itself or NetBSD includes or both?
 
 P.S.
 Should I report PR about wip/tcc separately?
 
 -- 
 Best regards, Aleksey Cheusov.