all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: emacs-devel@gnu.org
Subject: Re: Systems that can't USE_LSB_TAG
Date: Tue, 15 Apr 2014 22:25:42 -0700	[thread overview]
Message-ID: <534E1456.2000401@cs.ucla.edu> (raw)
In-Reply-To: <jwv1twyyths.fsf-monnier+emacsdiffs@gnu.org>

Stefan Monnier wrote:
> Hmmm.. so with this patch we fail on all hosts where USE_LSB_TAG can't
> be used, even those where DATA_SEG_BITS is not needed.

Yes, that's why I originally went for the wide-int fallback.

> Which systems currently can't USE_LSB_TAG?

Only IRIX as far as I know.  Specifically, the list includes:

1. Systems with pre-C11 compilers that are not in the following list: 
GCC, HP, IBM, Intel, Sun/Oracle, Microsoft, plus any mimics of these 
(such as clang).  Fundamentally we need the equivalent of GCC's 
attribute ((aligned (8))) and/or C11's _Alignas (8).

2. Systems where we must use the system malloc and it doesn't return a 
multiple of 8.

The only category (1) system I know of is IRIX cc, which SGI stopped 
supporting in December.  I don't know of any category (2) systems.

I don't know all the Emacs porting targets and quite possibly I've 
missed some.  Perhaps other unusual systems are in category (1); most 
likely we could port to them if we knew the right incantation to get an 
_Alignas equivalent on their compiler, and if not we could fall back on 
aligning the static C variables some other way.  We could port to 
category (2) systems (if any practical ones exist) by wrapping 
malloc/free/etc. and losing at most 8 bytes per allocation.  I hope we 
needn't use either hack, though.



  reply	other threads:[~2014-04-16  5:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1WZTF5-00018M-TN@vcs.savannah.gnu.org>
2014-04-14 13:10 ` [Emacs-diffs] emacs-24 r116961: Port to IRIX 6.5 Stefan Monnier
2014-04-14 20:08   ` Paul Eggert
2014-04-14 20:26     ` Stefan Monnier
2014-04-15  2:00       ` Paul Eggert
2014-04-15 17:02         ` Stefan Monnier
2014-04-15 20:44           ` Paul Eggert
2014-04-15 21:33             ` Stefan Monnier
2014-04-15 22:46               ` Paul Eggert
2014-04-16  1:09                 ` Systems that can't USE_LSB_TAG Stefan Monnier
2014-04-16  5:25                   ` Paul Eggert [this message]
2014-04-16 13:03                     ` Stefan Monnier

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=534E1456.2000401@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@IRO.UMontreal.CA \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.