dumping ground for random patches and texts
 help / color / mirror / Atom feed
* [PATCH] vm_core.h (rb_control_frame_t): remove "restrict" keyword
@ 2017-04-08 23:16 Eric Wong
  2017-04-08 23:19 ` rubyspec failures Eric Wong
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Wong @ 2017-04-08 23:16 UTC (permalink / raw)
  To: spew

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-08 23:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-08 23:16 [PATCH] vm_core.h (rb_control_frame_t): remove "restrict" keyword Eric Wong
2017-04-08 23:19 ` rubyspec failures Eric Wong

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).