summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-05-12 17:31:12 +0000
committerobrien <obrien@FreeBSD.org>2002-05-12 17:31:12 +0000
commit532536cdd5b5713122a49770cc74887ffe626e7a (patch)
tree512a64a5db43fbfe0afaef66223d67fce7bef577
parent56d709773db0716db06d0019373226487f691b00 (diff)
downloadFreeBSD-src-532536cdd5b5713122a49770cc74887ffe626e7a.zip
FreeBSD-src-532536cdd5b5713122a49770cc74887ffe626e7a.tar.gz
do-while ASM_OUTPUT_ALIGN to enable its use in more places.
-rw-r--r--contrib/gcc/config/i386/freebsd.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/contrib/gcc/config/i386/freebsd.h b/contrib/gcc/config/i386/freebsd.h
index cce27dd..2e7c90e 100644
--- a/contrib/gcc/config/i386/freebsd.h
+++ b/contrib/gcc/config/i386/freebsd.h
@@ -259,12 +259,14 @@ Boston, MA 02111-1307, USA. */
#undef ASM_OUTPUT_ALIGN
#define ASM_OUTPUT_ALIGN(FILE, LOG) \
+ do { \
if ((LOG)!=0) { \
if (in_text_section()) \
fprintf ((FILE), "\t.p2align %d,0x90\n", (LOG)); \
else \
fprintf ((FILE), "\t.p2align %d\n", (LOG)); \
- }
+ } \
+ } while (0)
#undef ASM_OUTPUT_ALIGNED_COMMON
#define ASM_OUTPUT_ALIGNED_COMMON(FILE, NAME, SIZE, ALIGN) \
@@ -361,7 +363,7 @@ Boston, MA 02111-1307, USA. */
#ifdef HAVE_GAS_MAX_SKIP_P2ALIGN
#define ASM_OUTPUT_MAX_SKIP_ALIGN(FILE, LOG, MAX_SKIP) \
-do { \
+ do { \
if ((LOG) != 0) { \
if (TARGET_AOUT) \
ASM_OUTPUT_ALIGN ((FILE), (LOG)); \
@@ -370,7 +372,7 @@ do { \
else \
fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP)); \
} \
-} while (0)
+ } while (0)
#endif
OpenPOWER on IntegriCloud