VM Maker: VMMaker.oscog-eem.2803.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

VM Maker: VMMaker.oscog-eem.2803.mcz

commits-2
 
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
  '!