[Vm-dev] VM Maker: VMMaker.oscog-eem.2803.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Sep 7 21:42:42 UTC 2020


Eliot Miranda uploaded a new version of VMMaker to project VM Maker:
http://source.squeak.org/VMMaker/VMMaker.oscog-eem.2803.mcz

==================== Summary ====================

Name: VMMaker.oscog-eem.2803
Author: eem
Time: 7 September 2020, 2:42:33.555473 pm
UUID: 6584359e-d7b8-46dd-bb76-b631d9977a57
Ancestors: VMMaker.oscog-eem.2802

StackInterpreter: Fix a regression on Cygwin. Cygwin's setjmp.h defines _setjmp.  Undefine to get to our own definition.

=============== Diff against VMMaker.oscog-eem.2802 ===============

Item was changed:
  ----- Method: StackInterpreter class>>preambleCCode (in category 'translation') -----
  preambleCCode
  	^	
  '/* Disable Intel compiler inlining of warning which is used for breakpoints */
  #pragma auto_inline(off)
  sqInt warnpid, erroronwarn;
  EXPORT(void)
  warning(const char *s) { /* Print an error message but don''t necessarily exit. */
  	if (erroronwarn) error(s);
  	if (warnpid)
  		printf("\n%s pid %ld\n", s, (long)warnpid);
  	else
  		printf("\n%s\n", s);
  }
  EXPORT(void)
  warningat(const char *s, int l) { /* ditto with line number. */
  	/* use alloca to call warning so one does not have to remember to set two breakpoints... */
  	char *sl = alloca(strlen(s) + 16);
  	sprintf(sl, "%s %d", s, l);
  	warning(sl);
  }
  #pragma auto_inline(on)
+ 
+ /* Some setjmp.h''s, e.g. cygwin''s define _setjmp.  Undefine to get to our own. */
+ #if defined(_setjmp)
+ # undef _setjmp
+ #endif
  '!



More information about the Vm-dev mailing list