9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: comeau@panix.com (Greg Comeau)
To: 9fans@9fans.net
Subject: Re: [9fans] porting help please (gcc void pointer handling)
Date: Thu, 10 Sep 2009 09:31:02 +0000	[thread overview]
Message-ID: <h88p44$brt$1@panix3.panix.com> (raw)
In-Reply-To: <1d5d51400909090927u2a4e6742k9614b79df841d3b6@mail.gmail.com>

In article <1d5d51400909090927u2a4e6742k9614b79df841d3b6@mail.gmail.com>,
Fernan Bolando <fernanbolando@mailc.net> wrote:
>I am trying to port nhc98 the bytecode haskell compiler.
>I am hoping to avoid changing those definition because I think those
>are generated by the
>haskell compiler and then fed to the C compiler. So there are a whole
>bunch of them.

So I'll wager a wild guess that there is a #if/def that controls
whether the compiling C compiler is gcc or not?  IOWs, that may cause
it to emit a more standard form of the #define?

>If I change those and assuming everything works. Every time I use the
>haskell compiler it will
>generate the same style of codes and the same set of compile issue in
>C compiler phase.
>
>so I guess some sort of wrapper script for the pcc is easiest option.

I'll go on another limb and wager even further that there is parens
-- or something -- mising from the #define in the first place.
(so instead of (void*)blah+99 this ((void*)(blah+99))) etc.
--
Greg Comeau / 4.3.10.1 with C++0xisms now in beta!
Comeau C/C++ ONLINE ==>     http://www.comeaucomputing.com/tryitout
World Class Compilers:  Breathtaking C++, Amazing C99, Fabulous C90.
Comeau C/C++ with Dinkumware's Libraries... Have you tried it?



  parent reply	other threads:[~2009-09-10  9:31 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-09 15:03 Fernan Bolando
2009-09-09 15:35 ` erik quanstrom
2009-09-09 15:49   ` roger peppe
2009-09-10  9:30     ` Greg Comeau
2009-09-10  9:29   ` Greg Comeau
2009-09-10  9:40     ` erik quanstrom
2009-09-09 15:41 ` Charles Forsyth
     [not found] ` <1745bc1073a021783cf2ff8658d7ce47@quanstro.net>
2009-09-09 15:43   ` Fernan Bolando
2009-09-10  9:30     ` Greg Comeau
2009-09-09 16:08 ` Charles Forsyth
     [not found] ` <ace1f791830bf1d3f9d8c1e5cea17c14@terzarima.net>
2009-09-09 16:27   ` Fernan Bolando
2009-09-09 16:54     ` Charles Forsyth
2009-09-09 18:17     ` ron minnich
2009-09-11  1:45       ` Fernan Bolando
2009-09-10  9:31     ` Greg Comeau [this message]
2009-09-10  9:29 ` Greg Comeau

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='h88p44$brt$1@panix3.panix.com' \
    --to=comeau@panix.com \
    --cc=9fans@9fans.net \
    /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).