From: Bernd Schmidt Date: Wed, 8 Jun 2005 09:40:42 +0000 (+0000) Subject: bfin.h (ASM_OUTPUT_ALIGN): Gas now emulates the behavior of the native assembler... X-Git-Tag: misc/cutover-cvs2svn~2529 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=21956c07ad851e6fa1b3892cb87b495c11efc2ba;p=thirdparty%2Fgcc.git bfin.h (ASM_OUTPUT_ALIGN): Gas now emulates the behavior of the native assembler in VDSP. * config/bfin/bfin.h (ASM_OUTPUT_ALIGN): Gas now emulates the behavior of the native assembler in VDSP. So change accordingly. From-SVN: r100753 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e069b0823c04..8f54ae374009 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -12,6 +12,10 @@ (def_builtin): New macro. (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define. + From Jie Zhang + * config/bfin/bfin.h (ASM_OUTPUT_ALIGN): Gas now emulates the + behavior of the native assembler in VDSP. So change accordingly. + 2005-06-08 Sebastian Pop * tree-data-ref.c (compute_estimated_nb_iterations, diff --git a/gcc/config/bfin/bfin.h b/gcc/config/bfin/bfin.h index 82702f9be2d2..12e5f2cc0915 100644 --- a/gcc/config/bfin/bfin.h +++ b/gcc/config/bfin/bfin.h @@ -1106,8 +1106,9 @@ do { char __buf[256]; \ } while (0) #define ASM_OUTPUT_ALIGN(FILE,LOG) \ - do { \ - fprintf (FILE, ".align %d\n", LOG); \ + do { \ + if ((LOG) != 0) \ + fprintf (FILE, "\t.align %d\n", 1 << (LOG)); \ } while (0) #define ASM_OUTPUT_SKIP(FILE,SIZE) \