anchao commented on code in PR #12885:
URL: https://github.com/apache/nuttx/pull/12885#discussion_r1714679480


##########
include/nuttx/compiler.h:
##########
@@ -87,12 +87,29 @@
 #  define CONFIG_HAVE_CXX14 1
 #endif
 
+/* Green Hills Software definitions *****************************************/
+
+#if defined(__ghs__)
+
+#  define __extension__
+
+/* the following function is not truly need in runtime, and in order to fix
+ * undefined symbol link error, we need to make the following symbols as weak
+ */
+
+#  pragma weak __gh_long_long_printf

Review Comment:
   Because this is a defect of the GHS compiler, we could place similar 
implementations in the following directory(same level as GNU): 
   GNU:
   https://github.com/apache/nuttx/tree/master/arch/arm/src/common/gnu
   GHS (new):
   https://github.com/apache/nuttx/tree/master/arch/arm/src/common/ghs
   
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to