9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Anthony Martin <ality@pbrane.org>
To: lucio@proxima.alt.za,
	Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] C compiler error?
Date: Tue, 13 Dec 2011 05:57:15 -0800	[thread overview]
Message-ID: <20111213135715.GA11691@dinah> (raw)
In-Reply-To: <4ff62af94bac2fe7ab0d7c4d7f6ecbda@proxima.alt.za>

Lucio De Re <lucio@proxima.alt.za> once said:
> New features in Go require a new function in the reflect.c module
> (src/cmd/gc/reflect.c).  The C compiler (8c, in this case) reports an
> error which does not seem to apply:
>
> 8c -I/go/include -I/go/386/include -FTVw ../gc/reflect.c
> ../gc/reflect.c:987 switch expression must be integer
>
> This is a bit of a stumbling block.  I'm hoping there's someone on
> this mailing list that can address this problem quicker than it would
> be possible for me.  More details off line.

Yup.  8c won't allow this.  If you we're using 6c
you could have a vlong in a switch expression.

I sent out a CL for this:
https://codereview.appspot.com/5486049/

  Anthony



      parent reply	other threads:[~2011-12-13 13:57 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-13 12:42 Lucio De Re
2011-12-13 13:36 ` erik quanstrom
2011-12-13 13:52   ` Noah Evans
     [not found]   ` <CAJVRB2XJ2KOC1sGd+Tb3a-3ZL7Jan9OEKH+oEWWTnutQ3M-cxg@mail.gmail.c>
2011-12-13 13:55     ` erik quanstrom
2011-12-13 14:07       ` yy
2011-12-13 22:38         ` Charles Forsyth
2011-12-13 23:01           ` Russ Cox
2011-12-14  4:05             ` Lucio De Re
2011-12-14  4:08               ` Lucio De Re
2011-12-14  4:19               ` Russ Cox
2011-12-14  9:20                 ` Charles Forsyth
2011-12-14 10:10                   ` Anthony Martin
2011-12-14 10:29                     ` Charles Forsyth
2011-12-14 10:34                       ` Charles Forsyth
2011-12-15  2:59                       ` Anthony Martin
2011-12-15  9:02                         ` Charles Forsyth
2011-12-13 13:57 ` Anthony Martin [this message]

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=20111213135715.GA11691@dinah \
    --to=ality@pbrane.org \
    --cc=9fans@9fans.net \
    --cc=lucio@proxima.alt.za \
    /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).