From 21956c07ad851e6fa1b3892cb87b495c11efc2ba Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Wed, 8 Jun 2005 09:40:42 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 4 ++++ gcc/config/bfin/bfin.h | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e069b0823c0..8f54ae37400 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 82702f9be2d..12e5f2cc091 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) \ -- 2.30.2