This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Blackfin patch: Different .align behaviour


We changed our version of gas to be more compatible with the Visual DSP assembler; this changes GCC to match. Patch by Jie Zhang.


Bernd
	* config/bfin/bfin.h (ASM_OUTPUT_ALIGN): Gas now emulates the
	behavior of the native assembler in VDSP. So change accordingly.
	
Index: config/bfin/bfin.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/bfin/bfin.h,v
retrieving revision 1.5
diff -c -p -r1.5 bfin.h
*** config/bfin/bfin.h	8 Jun 2005 09:25:11 -0000	1.5
--- config/bfin/bfin.h	8 Jun 2005 09:37:39 -0000
*************** do { char __buf[256];					\
*** 1106,1113 ****
      } while (0)
  
  #define ASM_OUTPUT_ALIGN(FILE,LOG) 				\
!     do {		 					\
! 	fprintf (FILE, ".align %d\n", LOG);			\
      } while (0)
  
  #define ASM_OUTPUT_SKIP(FILE,SIZE)		\
--- 1106,1114 ----
      } while (0)
  
  #define ASM_OUTPUT_ALIGN(FILE,LOG) 				\
!     do {							\
!       if ((LOG) != 0)						\
! 	fprintf (FILE, "\t.align %d\n", 1 << (LOG));		\
      } while (0)
  
  #define ASM_OUTPUT_SKIP(FILE,SIZE)		\

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