Commit 9e20879e by Michael Meissner

Add check for _real_mcount being 0 back in again.

From-SVN: r5643
parent ed882fd5
...@@ -186,6 +186,9 @@ do \ ...@@ -186,6 +186,9 @@ do \
else \ else \
fprintf (FILE, "\tmovl %s_real_mcount,%%eax\n", underscore); \ fprintf (FILE, "\tmovl %s_real_mcount,%%eax\n", underscore); \
\ \
fprintf (FILE, "\tcmpl $0,%%eax\n"); \
fprintf (FILE, "\tje 1f\n"); \
\
if (flag_omit_frame_pointer) \ if (flag_omit_frame_pointer) \
abort (); \ abort (); \
else \ else \
...@@ -209,7 +212,7 @@ do \ ...@@ -209,7 +212,7 @@ do \
} \ } \
\ \
fprintf (FILE, "\tcall *%%eax\n"); \ fprintf (FILE, "\tcall *%%eax\n"); \
fprintf (FILE, "\taddl $12,%%esp\n"); \ fprintf (FILE, "\taddl $12,%%esp\n1:\n"); \
} \ } \
} \ } \
while (0) while (0)
......
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