dumping ground for random patches and texts
 help / color / mirror / Atom feed
From: Eric Wong <e@80x24.org>
To: spew@80x24.org
Subject: [PATCH] vm_core.h (rb_control_frame_t): remove "restrict" keyword
Date: Sat,  8 Apr 2017 23:16:47 +0000	[thread overview]
Message-ID: <20170408231647.8664-1-e@80x24.org> (raw)

Ruby does not require C99, so I'm removing this until
a suitable compatibility macro can be implemented.

Otherwise, I can't compile under gcc 4.9.2-10 on Debian 8.
---
 vm_core.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vm_core.h b/vm_core.h
index abf3a0c1ec..ca792bb381 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -662,7 +662,7 @@ typedef struct rb_control_frame_struct {
     VALUE *sp;		/* cfp[1] */
     rb_iseq_t *iseq;	/* cfp[2] */
     VALUE self;			/* cfp[4] / block[0] */
-    VALUE *restrict ep, *restrict bp;	/* cfp[5] / block[1] */
+    VALUE *ep, *bp;	/* cfp[5] / block[1] */
     const void *block_code;     /* cfp[5] / block[2] */ /* iseq or ifunc */
 
 #if VM_DEBUG_BP_CHECK
-- 
EW


             reply	other threads:[~2017-04-08 23:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-08 23:16 Eric Wong [this message]
2017-04-08 23:19 ` rubyspec failures Eric Wong

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=20170408231647.8664-1-e@80x24.org \
    --to=e@80x24.org \
    --cc=spew@80x24.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).