From: Pietro Gagliardi <pietro10@mac.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] Re: Ruby port
Date: Mon, 12 Nov 2007 20:25:19 -0500 [thread overview]
Message-ID: <57E60D32-521B-40CC-BE6C-4D30A1EC7DDB@mac.com> (raw)
In-Reply-To: <3C3F92CD-00DC-41E2-960F-8E092A993F5D@orthanc.ca>
for (x in gcc/src/*.[chyl7s]) { # All this nonsense is simply to
avoid useful and/or standard things like __FILE__ or __STDC__ */
sed 's/__asm__//g
s/__extension__//g
s/__inline__//g
s/__typeof__//g
s/__restrict__//g
s/__builtin_[a-zA-Z0-9_][a-zA-Z0-9_]*//g
s/__cxa_atexit//g
s/__cxa_get_exception_ptr//g
s/__attribute__//g
s/__null//g
s/__strong//g
s/__weak//g
s/__int64//g' $x > $x^.new # keep going
# note that we need a little extra work for __attribute__
mv $x^.new $x
}
On Nov 12, 2007, at 7:59 PM, Lyndon Nerenberg wrote:
>
> On 2007-Nov-12, at 11:39 , Steve Simon wrote:
>
>> Is the "problem" more the lack of g++ and perhaps
>> glibc than the gcc C compiler itself or am I
>> missing somthing.
>
> I find that > 90% of the problem is code that makes use of all the
> __(foo)__ attribute crud in function declarations. It shouldn't be
> difficult to write a tool to strip that nonsense out.
>
> Alternatively you could teach the compilers to recognize and ignore
> those constructs, but my personal preference is to just elide the
> bits from the source at import. Even ignoring them lends them more
> credibility than my morals allow ;-P
>
> -lyndon
next prev parent reply other threads:[~2007-11-13 1:25 UTC|newest]
Thread overview: 61+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-11 20:44 [9fans] " Christopher Nielsen
2007-11-11 20:54 ` Pietro Gagliardi
2007-11-12 5:28 ` ron minnich
2007-11-12 14:19 ` David Leimbach
2007-11-12 15:40 ` [9fans] " prem
2007-11-12 19:01 ` ron minnich
2007-11-12 19:39 ` Steve Simon
2007-11-12 21:39 ` Aki Nyrhinen
2007-11-12 22:39 ` Pietro Gagliardi
2007-11-12 23:21 ` Steve Simon
2007-11-12 23:32 ` William Josephson
2007-11-12 23:55 ` Charles Forsyth
2007-11-12 23:52 ` Pietro Gagliardi
2007-11-13 0:00 ` William K. Josephson
2007-11-13 0:53 ` Joel C. Salomon
2007-11-13 0:57 ` Pietro Gagliardi
2007-11-13 1:32 ` [9fans] Re: Ruby port ( off topic ) fernanbolando
2007-11-14 21:50 ` [9fans] Re: Ruby port y i y u s
2007-11-13 0:27 ` Aki Nyrhinen
2007-11-13 0:33 ` David Leimbach
2007-11-13 0:35 ` Aki Nyrhinen
2007-11-13 0:50 ` [9fans] Fortran Lyndon Nerenberg
2007-11-13 0:52 ` erik quanstrom
2007-11-13 1:08 ` Lyndon Nerenberg
2007-11-13 1:08 ` Pietro Gagliardi
2007-11-13 1:48 ` erik quanstrom
2007-11-13 1:12 ` [9fans] Money, guns, and lawyers Lyndon Nerenberg
2007-11-13 1:41 ` erik quanstrom
2007-11-13 1:59 ` Lyndon Nerenberg
2007-11-13 2:02 ` erik quanstrom
2007-11-14 16:55 ` [9fans] Fortran plan9
2007-11-14 17:05 ` erik quanstrom
2007-11-14 19:45 ` Pietro Gagliardi
2007-11-14 20:04 ` Uriel
2007-11-14 20:09 ` William K. Josephson
2007-11-13 0:59 ` [9fans] Re: Ruby port Lyndon Nerenberg
2007-11-13 1:23 ` Hagen Paul Pfeifer
2007-11-13 1:25 ` Pietro Gagliardi [this message]
2007-11-14 19:05 ` ron minnich
2007-11-14 19:14 ` Latchesar Ionkov
2007-11-14 19:19 ` ron minnich
2007-11-14 19:25 ` erik quanstrom
2007-11-14 19:53 ` Charles Forsyth
2007-11-14 20:43 ` Robert William Fuller
2007-11-14 21:15 ` Charles Forsyth
2007-11-14 21:22 ` ron minnich
2007-11-14 23:04 ` erik quanstrom
2007-11-15 23:12 ` Pietro Gagliardi
2007-11-14 19:36 ` Bakul Shah
2007-11-14 19:45 ` Latchesar Ionkov
2007-11-14 20:16 ` Bakul Shah
2007-11-14 21:00 ` Latchesar Ionkov
2007-11-14 21:12 ` Pietro Gagliardi
2007-11-14 23:12 ` erik quanstrom
2007-11-14 19:37 ` Federico G. Benavento
2007-11-18 3:32 ` Pietro Gagliardi
2007-11-18 23:28 ` Federico G. Benavento
2007-12-02 22:55 ` [9fans] " Kim Shrier
2007-12-02 23:12 ` Federico G. Benavento
2007-12-03 5:11 ` Charles Forsyth
2007-12-03 5:13 ` lucio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=57E60D32-521B-40CC-BE6C-4D30A1EC7DDB@mac.com \
--to=pietro10@mac.com \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).