diff options
author | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 1996-04-09 16:53:18 +0000 |
---|---|---|
committer | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 1996-04-09 16:53:18 +0000 |
commit | 96910ab09e6faa6196efa5eb2f129441fb98c30b (patch) | |
tree | 2c63a35afd83fc6b865e4992b636b89cb1334f1e /gcc/config/i386/gas.h | |
parent | 076240cb85e74a530fdcb1da2dd5c26d711e5c9a (diff) | |
download | gcc-96910ab09e6faa6196efa5eb2f129441fb98c30b.tar.gz |
(ASM_OUTPUT_ALIGN): Define and use .balign.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@11687 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386/gas.h')
-rw-r--r-- | gcc/config/i386/gas.h | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/gcc/config/i386/gas.h b/gcc/config/i386/gas.h index d02015723ba..4d9a38fa8a8 100644 --- a/gcc/config/i386/gas.h +++ b/gcc/config/i386/gas.h @@ -1,5 +1,5 @@ -/* Definitions for Intel 386 running system V with gnu tools - Copyright (C) 1988, 1993, 1994 Free Software Foundation, Inc. +/* Definitions for Intel 386 using GAS. + Copyright (C) 1988, 1993, 1994, 1996 Free Software Foundation, Inc. This file is part of GNU CC. @@ -71,13 +71,18 @@ Boston, MA 02111-1307, USA. */ #define TARGET_MEM_FUNCTIONS -#if 0 /* People say gas uses the log as the arg to .align. */ -/* When using gas, .align N aligns to an N-byte boundary. */ +/* In the past there was confusion as to what the argument to .align was + in GAS. For the last several years the rule has been this: for a.out + file formats that argument is LOG, and for all other file formats the + argument is 1<<LOG. + + However, GAS now has .p2align and .balign pseudo-ops so to remove any + doubt or guess work, and since this file is used for both a.out and other + file formats, we use one of them. */ #undef ASM_OUTPUT_ALIGN -#define ASM_OUTPUT_ALIGN(FILE,LOG) \ - if ((LOG)!=0) fprintf ((FILE), "\t.align %d\n", 1<<(LOG)) -#endif +#define ASM_OUTPUT_ALIGN(FILE,LOG) \ + if ((LOG)!=0) fprintf ((FILE), "\t.balign %d\n", 1<<(LOG)) /* Align labels, etc. at 4-byte boundaries. For the 486, align to 16-byte boundary for sake of cache. */ |