Patchwork [committed] TILE-Gx/TILEPro: add stubs for feedback instrumentation

login
register
mail settings
Submitter Walter Lee
Date Aug. 18, 2012, 3:47 a.m.
Message ID <201208180347.q7I3lAbp009328@farm-0038.internal.tilera.com>
Download mbox | patch
Permalink /patch/178428/
State New
Headers show

Comments

Walter Lee - Aug. 18, 2012, 3:47 a.m.
This patch defines the stubs for feedback instrumentation, needed to
compile glibc and linux.

       * config/tilegx/feedback.h (FEEDBACK_ENTER_EXPLICIT): Define.
       (FEEDBACK_ENTER): Define.
       (FEEDBACK_REENTER): Define.
       (FEEDBACK_ENTRY): Define.
       * config/tilepro/feedback.h: (FEEDBACK_ENTER_EXPLICIT): Define.
       (FEEDBACK_ENTER): Define.
       (FEEDBACK_REENTER): Define.
       (FEEDBACK_ENTRY): Define.

Patch

Index: gcc/config/tilegx/feedback.h
===================================================================
--- gcc/config/tilegx/feedback.h        (revision 190498)
+++ gcc/config/tilegx/feedback.h        (working copy)
@@ -1 +1,14 @@ 
-/* This file is currently empty and serves as a placeholder.  */
+#ifndef _FEEDBACK_H
+#define _FEEDBACK_H 1
+
+#ifdef __ASSEMBLER__
+
+/* Stub defines for feedback instrumentation.  */
+#define FEEDBACK_ENTER_EXPLICIT(FUNCNAME, SECNAME, SIZE)
+#define FEEDBACK_ENTER(FUNCNAME)
+#define FEEDBACK_REENTER(FUNCNAME)
+#define FEEDBACK_ENTRY(FUNCNAME, SECNAME, SIZE)
+
+#endif /* __ASSEMBLER__ */
+
+#endif /* _FEEDBACK_H */
Index: gcc/config/tilepro/feedback.h
===================================================================
--- gcc/config/tilepro/feedback.h       (revision 190498)
+++ gcc/config/tilepro/feedback.h       (working copy)
@@ -1 +1,14 @@ 
-/* This file is currently empty and serves as a placeholder.  */
+#ifndef _FEEDBACK_H
+#define _FEEDBACK_H 1
+
+#ifdef __ASSEMBLER__
+
+/* Stub defines for feedback instrumentation.  */
+#define FEEDBACK_ENTER_EXPLICIT(FUNCNAME, SECNAME, SIZE)
+#define FEEDBACK_ENTER(FUNCNAME)
+#define FEEDBACK_REENTER(FUNCNAME)
+#define FEEDBACK_ENTRY(FUNCNAME, SECNAME, SIZE)
+
+#endif /* __ASSEMBLER__ */
+
+#endif /* _FEEDBACK_H */