Commit 01e60c33 by Janis Johnson Committed by Janis Johnson

libgcov.c: Provide only dummy functions if libc is not available.

2003-03-27  Janis Johnson  <janis187@us.ibm.com>

	* libgcov.c: Provide only dummy functions if libc is not available.

From-SVN: r64936
parent ad59ba20
2003-03-27 Janis Johnson <janis187@us.ibm.com>
* libgcov.c: Provide only dummy functions if libc is not available.
2003-03-27 Richard Henderson <rth@redhat.com> 2003-03-27 Richard Henderson <rth@redhat.com>
* real.h (struct real_value): Add signalling. * real.h (struct real_value): Add signalling.
......
...@@ -29,6 +29,17 @@ along with GCC; see the file COPYING. If not, write to the Free ...@@ -29,6 +29,17 @@ along with GCC; see the file COPYING. If not, write to the Free
Software Foundation, 59 Temple Place - Suite 330, Boston, MA Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */ 02111-1307, USA. */
#if defined(inhibit_libc)
/* If libc and its header files are not available, provide dummy functions. */
void __gcov_init (void *p);
void __gcov_flush (void);
void __gcov_init (void *p) { }
void __gcov_flush (void) { }
#else
/* It is incorrect to include config.h here, because this file is being /* It is incorrect to include config.h here, because this file is being
compiled for the target, and hence definitions concerning only the host compiled for the target, and hence definitions concerning only the host
do not apply. */ do not apply. */
...@@ -507,3 +518,5 @@ __gcov_flush (void) ...@@ -507,3 +518,5 @@ __gcov_flush (void)
ptr->counter_sections[j].counters[i] = 0; ptr->counter_sections[j].counters[i] = 0;
} }
} }
#endif /* inhibit_libc */
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