From 0a3e1f45d82ea5f7468d0bbfb5bd604e61b8ab53 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Mon, 25 Sep 2000 08:08:58 +0000 Subject: Changes add TABs on either or both sides, covering start of line, up to any operand for all .*ASM.*_OP definitions. From-SVN: r36603 --- gcc/ChangeLog | 17 +++++++++++++++++ gcc/crtstuff.c | 5 ++++- gcc/dbxout.c | 4 ++-- gcc/defaults.h | 4 ++-- gcc/dwarf2out.c | 10 +++++----- gcc/dwarfout.c | 16 ++++++++-------- gcc/varasm.c | 2 +- gcc/xcoffout.h | 2 +- 8 files changed, 40 insertions(+), 20 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ee077ab..73671c4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,20 @@ +2000-09-25 Hans-Peter Nilsson + + Changes below marked "here" add TABs on either or both sides, + covering start of line, up to any operand for all noted .*ASM.*_OP + definitions. + * crtstuff.c (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Explain + why these defaults don't have leading spacing. + * dbxout.c (ASM_STABS_OP, ASM_STABN_OP): Here. + * dwarf2out.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP, + UNALIGNED_DOUBLE_INT_ASM_OP, SECTION_ASM_OP, ASM_BYTE_OP): Here. + * dwarfout.c (FILE_ASM_OP, VERSION_ASM_OP, + UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP, ASM_BYTE_OP, + PUSHSECTION_ASM_OP, POPSECTION_ASM_OP): Here. + * defaults.h (ASM_STABD_OP, EH_FRAME_SECTION_ASM_OP): Here. + * varasm.c (ASM_STABS_OP): Here. + * xcoffout.h (ASM_STABS_OP): Here. + 2000-09-25 Richard Henderson * expmed.c (store_bit_field): Adjust last change to not consider diff --git a/gcc/crtstuff.c b/gcc/crtstuff.c index 3783b5a..d5f23cb 100644 --- a/gcc/crtstuff.c +++ b/gcc/crtstuff.c @@ -110,7 +110,10 @@ extern void *__deregister_frame_info (void *) an additional check that you are doing everything right. But if you do use the `-z text' option when building a shared library, you will get errors unless the .ctors and .dtors sections are marked as writable - via the SHF_WRITE attribute.) */ + via the SHF_WRITE attribute.) + + These defaults do not include leading spacing, as they will only be + used in asm:s here. */ #ifndef CTORS_SECTION_ASM_OP #define CTORS_SECTION_ASM_OP ".section\t.ctors,\"aw\"" diff --git a/gcc/dbxout.c b/gcc/dbxout.c index 18f0822..d4df8d0 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -89,11 +89,11 @@ Boston, MA 02111-1307, USA. */ #endif #ifndef ASM_STABS_OP -#define ASM_STABS_OP ".stabs" +#define ASM_STABS_OP "\t.stabs\t" #endif #ifndef ASM_STABN_OP -#define ASM_STABN_OP ".stabn" +#define ASM_STABN_OP "\t.stabn\t" #endif #ifndef DBX_TYPE_DECL_STABS_CODE diff --git a/gcc/defaults.h b/gcc/defaults.h index 13772aa..f75d21d 100644 --- a/gcc/defaults.h +++ b/gcc/defaults.h @@ -44,7 +44,7 @@ Boston, MA 02111-1307, USA. */ #endif #ifndef ASM_STABD_OP -#define ASM_STABD_OP ".stabd" +#define ASM_STABD_OP "\t.stabd\t" #endif /* This is how to output an element of a case-vector that is absolute. @@ -170,7 +170,7 @@ do { ASM_OUTPUT_LABEL(FILE,LABEL_ALTERNATE_NAME (INSN)); } while (0) # else /* If we aren't using crtstuff to run ctors, don't use it for EH. */ # if defined (ASM_OUTPUT_SECTION_NAME) && defined (ASM_OUTPUT_CONSTRUCTOR) -# define EH_FRAME_SECTION_ASM_OP ".section\t.eh_frame,\"aw\"" +# define EH_FRAME_SECTION_ASM_OP "\t.section\t.eh_frame,\"aw\"" # define EH_FRAME_SECTION() \ do { named_section (NULL_TREE, ".eh_frame", 0); } while (0) # endif diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index f061f57..d69d2d0 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -242,18 +242,18 @@ static void def_cfa_1 PARAMS ((const char *, dw_cfa_location *)); #ifdef OBJECT_FORMAT_ELF #ifndef UNALIGNED_SHORT_ASM_OP -#define UNALIGNED_SHORT_ASM_OP ".2byte" +#define UNALIGNED_SHORT_ASM_OP "\t.2byte\t" #endif #ifndef UNALIGNED_INT_ASM_OP -#define UNALIGNED_INT_ASM_OP ".4byte" +#define UNALIGNED_INT_ASM_OP "\t.4byte\t" #endif #ifndef UNALIGNED_DOUBLE_INT_ASM_OP -#define UNALIGNED_DOUBLE_INT_ASM_OP ".8byte" +#define UNALIGNED_DOUBLE_INT_ASM_OP "\t.8byte\t" #endif #endif /* OBJECT_FORMAT_ELF */ #ifndef ASM_BYTE_OP -#define ASM_BYTE_OP ".byte" +#define ASM_BYTE_OP "\t.byte\t" #endif /* Data and reference forms for relocatable data. */ @@ -262,7 +262,7 @@ static void def_cfa_1 PARAMS ((const char *, dw_cfa_location *)); /* Pseudo-op for defining a new section. */ #ifndef SECTION_ASM_OP -#define SECTION_ASM_OP ".section" +#define SECTION_ASM_OP "\t.section\t" #endif /* The default format used by the ASM_OUTPUT_SECTION macro (see below) to diff --git a/gcc/dwarfout.c b/gcc/dwarfout.c index 098fbd8..0e14e8a 100644 --- a/gcc/dwarfout.c +++ b/gcc/dwarfout.c @@ -387,22 +387,22 @@ static void retry_incomplete_types PARAMS ((void)); what is expected by "standard" AT&T System V.4 assemblers. */ #ifndef FILE_ASM_OP -#define FILE_ASM_OP ".file" +#define FILE_ASM_OP "\t.file\t" #endif #ifndef VERSION_ASM_OP -#define VERSION_ASM_OP ".version" +#define VERSION_ASM_OP "\t.version\t" #endif #ifndef UNALIGNED_SHORT_ASM_OP -#define UNALIGNED_SHORT_ASM_OP ".2byte" +#define UNALIGNED_SHORT_ASM_OP "\t.2byte\t" #endif #ifndef UNALIGNED_INT_ASM_OP -#define UNALIGNED_INT_ASM_OP ".4byte" +#define UNALIGNED_INT_ASM_OP "\t.4byte\t" #endif #ifndef ASM_BYTE_OP -#define ASM_BYTE_OP ".byte" +#define ASM_BYTE_OP "\t.byte\t" #endif #ifndef SET_ASM_OP -#define SET_ASM_OP ".set" +#define SET_ASM_OP "\t.set\t" #endif /* Pseudo-ops for pushing the current section onto the section stack (and @@ -414,10 +414,10 @@ static void retry_incomplete_types PARAMS ((void)); OK because we only use at most one level of the section stack herein. */ #ifndef PUSHSECTION_ASM_OP -#define PUSHSECTION_ASM_OP ".section" +#define PUSHSECTION_ASM_OP "\t.section\t" #endif #ifndef POPSECTION_ASM_OP -#define POPSECTION_ASM_OP ".previous" +#define POPSECTION_ASM_OP "\t.previous" #endif /* The default format used by the ASM_OUTPUT_PUSH_SECTION macro (see below) diff --git a/gcc/varasm.c b/gcc/varasm.c index af76b15..fe5532b 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -57,7 +57,7 @@ Boston, MA 02111-1307, USA. */ #endif #ifndef ASM_STABS_OP -#define ASM_STABS_OP ".stabs" +#define ASM_STABS_OP "\t.stabs\t" #endif /* Define the prefix to use when check_memory_usage_flag is enable. */ diff --git a/gcc/xcoffout.h b/gcc/xcoffout.h index ebf9413..2fb8ab3 100644 --- a/gcc/xcoffout.h +++ b/gcc/xcoffout.h @@ -20,7 +20,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#define ASM_STABS_OP ".stabx" +#define ASM_STABS_OP "\t.stabx\t" /* Tags and typedefs are C_DECL in XCOFF, not C_LSYM. */ -- cgit v1.1