Commit 630ef4bf by Richard Stallman

(MAYBE_VMS_FUNCTION_PROLOGUE): Adjust stack pointer by 4 prior to calling C$MAIN_ARGS...

(MAYBE_VMS_FUNCTION_PROLOGUE): Adjust stack pointer by 4 prior
to calling C$MAIN_ARGS, otherwise POSIX edition of that routine dies.

From-SVN: r4703
parent aaf44ca2
...@@ -108,12 +108,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -108,12 +108,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
int is_main = strcmp ("main", p) == 0; \ int is_main = strcmp ("main", p) == 0; \
while (!is_main && *p != '\0') \ while (!is_main && *p != '\0') \
{ \ { \
if (*p == *__MAIN_NAME \ if (*p == *__MAIN_NAME \
&& strncmp (p, __MAIN_NAME, sizeof __MAIN_NAME - sizeof "") == 0) \ && strncmp (p, __MAIN_NAME, sizeof __MAIN_NAME - sizeof "") == 0) \
is_main = 1; \ is_main = 1; \
else \ else \
p++; \ p++; \
} \ } \
if (is_main) \ if (is_main) \
fprintf (FILE, "\t%s\n\t%s\n", "clrl -(sp)", "jsb _C$MAIN_ARGS"); \ fprintf (FILE, "\t%s\n\t%s\n", "clrl -(sp)", "jsb _C$MAIN_ARGS"); \
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment