This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix Blackfin assembler macro


Hi,

This patch comes from Mike Frysinger. GCC defines __ASSEMBLER__ instead of __ASSEMBLY__. I also update the copyright year. Please review and apply. Thanks.


Jie
2009-09-08  Mike Frysinger  <michael.frysinger@analog.com>

	* bfin/include/sys/_adi_platform.h: Convert __ASSEMBLY__ to
	__ASSEMBLER__.
	* bfin/include/sys/pll.h: Likewise.

Index: bfin/include/sys/_adi_platform.h
===================================================================
RCS file: /cvs/src/src/libgloss/bfin/include/sys/_adi_platform.h,v
retrieving revision 1.1
diff -u -r1.1 _adi_platform.h
--- bfin/include/sys/_adi_platform.h	14 Aug 2008 22:00:47 -0000	1.1
+++ bfin/include/sys/_adi_platform.h	8 Sep 2009 15:36:25 -0000
@@ -12,13 +12,13 @@
 
 /*
 ** Include appropriate header file for platform.
-** Copyright (C) 2008 Analog Devices, Inc.
+** Copyright (C) 2008, 2009 Analog Devices, Inc.
 */
 
 #ifndef __ADI_PLATFORM_H
 #define __ADI_PLATFORM_H
 
-#ifdef __ASSEMBLY__
+#ifndef __ASSEMBLER__
 
 #if defined (__ADSPBF531__)
 #include <cdefBF531.h>
@@ -136,7 +136,7 @@
 #error Processor Type Not Supported
 #endif
 
-#endif /* __ASSEMBLY__ */
+#endif /* __ASSEMBLER__ */
 
 #endif /* __INC_BLACKFIN__ */
 
Index: bfin/include/sys/pll.h
===================================================================
RCS file: /cvs/src/src/libgloss/bfin/include/sys/pll.h,v
retrieving revision 1.1
diff -u -r1.1 pll.h
--- bfin/include/sys/pll.h	14 Aug 2008 22:00:47 -0000	1.1
+++ bfin/include/sys/pll.h	8 Sep 2009 15:36:26 -0000
@@ -14,11 +14,11 @@
  *
  * pll.h
  *
- * Copyright (C) 2008 Analog Devices, Inc.
+ * Copyright (C) 2008, 2009 Analog Devices, Inc.
  *
  ************************************************************************/
 
-#ifdef __ASSEMBLY__
+#ifndef __ASSEMBLER__
 #pragma once
 #pragma system_header
 #endif
@@ -34,7 +34,7 @@
 #define NO_STARTUP_SET 0
 #define MAX_IN_STARTUP 1
 
-#ifdef __ASSEMBLY__
+#ifndef __ASSEMBLER__
 
 enum clkctrl_t {
     /* no modification of PLL rates in CRT startup - default */
@@ -74,7 +74,7 @@
 }
 #endif
 
-#endif /* __ASSEMBLY__ */
+#endif /* __ASSEMBLER__ */
 
 #ifdef _MISRA_RULES
 #pragma diag(pop)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]