public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Bill Marcotte <bill@pentek.com>
To: jlarmour@redhat.co.uk, bill@pentek.com
Cc: ecos-discuss@sourceware.cygnus.com
Subject: Re: [ECOS] Mismatch between 'C' and 'C++' structures
Date: Thu, 22 Jun 2000 12:34:00 -0000	[thread overview]
Message-ID: <9786.961702487.0@NO-ID-FOUND.mhonarc.org> (raw)

> > I am currently working on an i960 port of ECOS.  When I build ECOS
>  with
> > Asserts enabled, I get the following message when I run the code:
> > 
> >    Size of C struct (cyg_mempool_var) !=
> >                Size of C++ struct (Cyg_Mempool_Variable)
> > 
> >    sizeof(cyg_mempool_var) = 0x30
> >    sizeof(Cyg_Mempool_Variable) = 0x40
> > 
> > Does anyone know how to resolve this?
> 
> Well the obvious question is whether you modified any of the generic
>  kernel
> code in this area.
> 
> Failing that, it would appear that the i960 g++ must pad C++ classes in
> some way different to i960 gcc pads structs. Perhaps there is some
>  compiler
> switch that can be used to prevent this.
> 
> And just to check, you are compiling the kernel with -fno-rtti aren't
>  you?
> 

I was able to resolve this problem by compiling with the mic-compat switch.

             reply	other threads:[~2000-06-22 12:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-06-22 12:34 Bill Marcotte [this message]
     [not found] <200006202028.NAA03734@cygnus.com>
2000-06-20 14:04 ` Jonathan Larmour
  -- strict thread matches above, loose matches on Subject: below --
2000-06-20 13:27 Bill Marcotte

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=9786.961702487.0@NO-ID-FOUND.mhonarc.org \
    --to=bill@pentek.com \
    --cc=ecos-discuss@sourceware.cygnus.com \
    --cc=jlarmour@redhat.co.uk \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).