unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Neil Jerram <neil@ossau.uklinux.net>
To: ludo@gnu.org (Ludovic Courtès)
Cc: bug-guile@gnu.org
Subject: Re: Intel icc finds too many errors in guile 1.8.8 to compile
Date: Wed, 07 Oct 2009 22:09:50 +0100	[thread overview]
Message-ID: <87zl827vxd.fsf@ossau.uklinux.net> (raw)
In-Reply-To: <873a5wuogp.fsf@gnu.org> ("Ludovic Courtès"'s message of "Wed, 07 Oct 2009 00:50:14 +0200")

ludo@gnu.org (Ludovic Courtès) writes:

>> But wouldn't this approach break as soon as we added another flag, in
>> the way that I described in my previous email?
>
> Yes it would.
>
> But the underlying question is: is the set of flags likely to change?
> If the answer is “no” (which I think it is), it’s probably safe to go
> for an ‘enum’, as these flags cannot be combined anyway.

Hmm.  I think that's quite inelegant, to use a representation of flags
that would break if there was ever more than one flag (!).

I was going to conclude "So I'll revert my change and just add the zero
value instead", but then I wondered if we have any clear reason to
believe that that would help ICC.  There are several occurrences in
libguile of scm_dynwind_begin (0), and ICC could still complain, and
only be happy with scm_dynwind_begin (SCM_F_DYNWIND_NO_FLAGS).

So instead I'll just revert my change, and wait until we get more data
that a possible solution actually works for ICC.

Inge, if you're following this, can you try changing the enum
definitions to

  typedef enum {
    SCM_F_DYNWIND_NO_FLAGS = 0,
    SCM_F_DYNWIND_REWINDABLE = (1 << 0)
  } scm_t_dynwind_flags;
  
  typedef enum {
    SCM_F_WIND_NO_FLAGS = 0,
    SCM_F_WIND_EXPLICITLY = (1 << 0)
  } scm_t_wind_flags;

and report if that removes the related ICC errors?

Thanks,
        Neil




      reply	other threads:[~2009-10-07 21:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-28  9:22 Intel icc finds too many errors in guile 1.8.8 to compile I.Gutheil
2009-10-02 21:21 ` Neil Jerram
2009-10-03  9:43   ` Ludovic Courtès
     [not found]     ` <8763avzfh9.fsf@ossau.uklinux.net>
     [not found]       ` <87r5tjbb0h.fsf@gnu.org>
2009-10-06 21:06         ` Neil Jerram
2009-10-06 22:50           ` Ludovic Courtès
2009-10-07 21:09             ` Neil Jerram [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

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zl827vxd.fsf@ossau.uklinux.net \
    --to=neil@ossau.uklinux.net \
    --cc=bug-guile@gnu.org \
    --cc=ludo@gnu.org \
    /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).