* [9fans] 8c - is this leagal?
@ 2012-11-21 13:21 Steve Simon
2012-11-21 13:30 ` Charles Forsyth
2012-11-21 13:30 ` Bence Fábián
0 siblings, 2 replies; 9+ messages in thread
From: Steve Simon @ 2012-11-21 13:21 UTC (permalink / raw)
To: 9fans
I'am trying (again) to build svn for plan9 native.
8c is blowing up with the error:
bad in naddr: NAME cache_init_state
the offending like is:
static volatile svn_atomic_t cache_init_state = 0;
Is this legal c code, static and volatile?
if it is anyone any ideas how to fix 8c - compilers are a closed book to me.
-Steve
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [9fans] 8c - is this leagal?
2012-11-21 13:21 [9fans] 8c - is this leagal? Steve Simon
@ 2012-11-21 13:30 ` Charles Forsyth
2012-11-21 13:31 ` Charles Forsyth
2012-11-21 14:09 ` Charles Forsyth
2012-11-21 13:30 ` Bence Fábián
1 sibling, 2 replies; 9+ messages in thread
From: Charles Forsyth @ 2012-11-21 13:30 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
static is scope, volatile has dynamic effects, very dynamic. you
should be able to #define volatile
to nothing (-Dvolatile'=') and it will usually work. certainly for
statics and externals.
the one real effect it might have is on automatic variables if the
usage in conjunction
with setjmp is a little strange (straightforward uses are fine with setjmp).
On 21 November 2012 13:21, Steve Simon <steve@quintile.net> wrote:
> Is this legal c code, static and volatile?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [9fans] 8c - is this leagal?
2012-11-21 13:21 [9fans] 8c - is this leagal? Steve Simon
2012-11-21 13:30 ` Charles Forsyth
@ 2012-11-21 13:30 ` Bence Fábián
2012-11-21 14:56 ` Dan Cross
1 sibling, 1 reply; 9+ messages in thread
From: Bence Fábián @ 2012-11-21 13:30 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
[-- Attachment #1: Type: text/plain, Size: 493 bytes --]
8c is for Plan9's C dialect.
Look into /sys/doc/ape.ps
2012/11/21 Steve Simon <steve@quintile.net>
> I'am trying (again) to build svn for plan9 native.
>
> 8c is blowing up with the error:
>
> bad in naddr: NAME cache_init_state
>
> the offending like is:
>
> static volatile svn_atomic_t cache_init_state = 0;
>
> Is this legal c code, static and volatile?
>
> if it is anyone any ideas how to fix 8c - compilers are a closed book to
> me.
>
> -Steve
>
>
[-- Attachment #2: Type: text/html, Size: 906 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [9fans] 8c - is this leagal?
2012-11-21 13:30 ` Charles Forsyth
@ 2012-11-21 13:31 ` Charles Forsyth
2012-11-21 14:09 ` Charles Forsyth
1 sibling, 0 replies; 9+ messages in thread
From: Charles Forsyth @ 2012-11-21 13:31 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
>static volatile svn_atomic_t cache_init_state = 0;
svn_atomic_t? has it got its own thread library? coroutines?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [9fans] 8c - is this leagal?
2012-11-21 13:30 ` Charles Forsyth
2012-11-21 13:31 ` Charles Forsyth
@ 2012-11-21 14:09 ` Charles Forsyth
2012-11-21 15:51 ` Steve Simon
1 sibling, 1 reply; 9+ messages in thread
From: Charles Forsyth @ 2012-11-21 14:09 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
By which I meant that yes, it's legal ANSI C code to combine them. The
strange way the compiler implements volatile references probably led
to that odd diagnostic.
As I said, I'd try nopping the volatile.
On 21 November 2012 13:30, Charles Forsyth <charles.forsyth@gmail.com> wrote:
> static is scope, volatile has dynamic effects, very dynamic.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [9fans] 8c - is this leagal?
2012-11-21 13:30 ` Bence Fábián
@ 2012-11-21 14:56 ` Dan Cross
2012-11-21 15:03 ` Bence Fábián
0 siblings, 1 reply; 9+ messages in thread
From: Dan Cross @ 2012-11-21 14:56 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
[-- Attachment #1: Type: text/plain, Size: 214 bytes --]
On Wed, Nov 21, 2012 at 8:30 AM, Bence Fábián <begnoc@gmail.com> wrote:
> 8c is for Plan9's C dialect.
> Look into /sys/doc/ape.ps
>
This was not a useful answer to Steve's question.
- Dan C.
[-- Attachment #2: Type: text/html, Size: 612 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [9fans] 8c - is this leagal?
2012-11-21 14:56 ` Dan Cross
@ 2012-11-21 15:03 ` Bence Fábián
0 siblings, 0 replies; 9+ messages in thread
From: Bence Fábián @ 2012-11-21 15:03 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
[-- Attachment #1: Type: text/plain, Size: 312 bytes --]
yeah i realized since. sorry
2012/11/21 Dan Cross <crossd@gmail.com>
> On Wed, Nov 21, 2012 at 8:30 AM, Bence Fábián <begnoc@gmail.com> wrote:
>
>> 8c is for Plan9's C dialect.
>> Look into /sys/doc/ape.ps
>>
>
> This was not a useful answer to Steve's question.
>
> - Dan C.
>
>
>
[-- Attachment #2: Type: text/html, Size: 1007 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [9fans] 8c - is this leagal?
2012-11-21 14:09 ` Charles Forsyth
@ 2012-11-21 15:51 ` Steve Simon
2012-11-21 15:53 ` erik quanstrom
0 siblings, 1 reply; 9+ messages in thread
From: Steve Simon @ 2012-11-21 15:51 UTC (permalink / raw)
To: 9fans
Thanks for the comments,
I dropped the volatile and that bit compiles,
I am getting close I think.
And in answer to charles, there is all sorts going on in there.
counting the semicolons gives:
Apache portable utils 16049
Apache portable runtime 24852
sqlite3 43944
subversion 343690
Total 428535
and for context:
/sys/src/9 107216
-Steve
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [9fans] 8c - is this leagal?
2012-11-21 15:51 ` Steve Simon
@ 2012-11-21 15:53 ` erik quanstrom
0 siblings, 0 replies; 9+ messages in thread
From: erik quanstrom @ 2012-11-21 15:53 UTC (permalink / raw)
To: 9fans
> and for context:
>
> /sys/src/9 107216
half of that is for obsolete pc drivers.
- erik
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2012-11-21 15:53 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-21 13:21 [9fans] 8c - is this leagal? Steve Simon
2012-11-21 13:30 ` Charles Forsyth
2012-11-21 13:31 ` Charles Forsyth
2012-11-21 14:09 ` Charles Forsyth
2012-11-21 15:51 ` Steve Simon
2012-11-21 15:53 ` erik quanstrom
2012-11-21 13:30 ` Bence Fábián
2012-11-21 14:56 ` Dan Cross
2012-11-21 15:03 ` Bence Fábián
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).