This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH to remove INT_ASM_OP
- From: Jason Merrill <jason at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 15 Nov 2001 17:48:09 +0000
- Subject: PATCH to remove INT_ASM_OP
INT_ASM_OP only existed to be used in ASM_OUTPUT_{CON,DE}STRUCTOR; now that
they have gone, so should it.
2001-11-15 Jason Merrill <jason@redhat.com>
* config/alpha/alpha-interix.h, config/alpha/elf.h,
config/arm/coff.h, config/i386/djgpp.h, config/i386/i386.c,
config/i386/i386.h, config/i386/sco5.h, config/i960/i960-coff.h,
config/m68k/coff.h, config/m88k/m88k.h, config/m88k/m88k.c,
config/pa/pa64-hpux.h, config/sh/sh.h, config/sparc/litecoff.h,
config/elfos.h, config/lynx.h, config/netware.h,
config/m68hc11/m68hc11.h, config/mcore/mcore-pe.h,
config/s390/linux64.h: Remove definitions of INT_ASM_OP, change
uses to use ASM_LONG.
*** ./config/alpha/alpha-interix.h.~1~ Thu Nov 15 17:01:59 2001
--- ./config/alpha/alpha-interix.h Wed Nov 14 10:57:05 2001
*************** const_section () \
*** 126,133 ****
} \
}
- #define INT_ASM_OP "\t.long\t"
-
/* The linker will take care of this, and having them causes problems with
ld -r (specifically -rU). */
#define CTOR_LISTS_DEFINED_EXTERNALLY 1
--- 126,131 ----
*** ./config/alpha/elf.h.~1~ Thu Nov 15 17:01:59 2001
--- ./config/alpha/elf.h Wed Nov 14 10:57:07 2001
*************** do { \
*** 165,176 ****
ASM_OUTPUT_SKIP((FILE), (SIZE)); \
} while (0)
- /* This is the pseudo-op used to generate a 64-bit word of data with a
- specific value in some section. */
-
- #undef INT_ASM_OP
- #define INT_ASM_OP "\t.quad\t"
-
/* Biggest alignment supported by the object file format of this
machine. Use this macro to limit the alignment which can be
specified using the `__attribute__ ((aligned (N)))' construct. If
--- 165,170 ----
*** ./config/arm/coff.h.~1~ Fri Aug 10 09:03:12 2001
--- ./config/arm/coff.h Thu Nov 15 17:32:08 2001
*************** rdata_section () \
*** 115,122 ****
/* Support the ctors/dtors sections for g++. */
- #define INT_ASM_OP "\t.word\t"
-
/* __CTOR_LIST__ and __DTOR_LIST__ must be defined by the linker script. */
#define CTOR_LISTS_DEFINED_EXTERNALLY
--- 115,120 ----
*** ./config/i386/djgpp.h.~1~ Thu Nov 15 17:01:59 2001
--- ./config/i386/djgpp.h Fri Nov 2 17:20:25 2001
*************** Boston, MA 02111-1307, USA. */
*** 53,62 ****
#undef IDENT_ASM_OP
#define IDENT_ASM_OP "\t.ident\t"
- /* Define the name of the .int op. */
- #undef INT_ASM_OP
- #define INT_ASM_OP "\t.long\t"
-
/* Enable alias attribute support. */
#ifndef SET_ASM_OP
#define SET_ASM_OP "\t.set\t"
--- 53,58 ----
*** ./config/i386/i386.c.~1~ Thu Nov 15 17:01:59 2001
--- ./config/i386/i386.c Wed Nov 14 10:57:27 2001
*************** i386_dwarf_output_addr_const (file, x)
*** 5212,5222 ****
rtx x;
{
#ifdef ASM_QUAD
! fprintf (file, "%s", TARGET_64BIT ? ASM_QUAD : INT_ASM_OP);
#else
if (TARGET_64BIT)
abort ();
! fprintf (file, "%s", INT_ASM_OP);
#endif
if (flag_pic)
output_pic_addr_const (file, x, '\0');
--- 5212,5222 ----
rtx x;
{
#ifdef ASM_QUAD
! fprintf (file, "%s", TARGET_64BIT ? ASM_QUAD : ASM_LONG);
#else
if (TARGET_64BIT)
abort ();
! fprintf (file, "%s", ASM_LONG);
#endif
if (flag_pic)
output_pic_addr_const (file, x, '\0');
*** ./config/i386/i386.h.~1~ Thu Nov 15 17:01:59 2001
--- ./config/i386/i386.h Wed Nov 14 10:57:35 2001
*************** do { long l; \
*** 2969,2975 ****
degenerate to the macros used above. */
#define UNALIGNED_SHORT_ASM_OP ASM_SHORT
#define UNALIGNED_INT_ASM_OP ASM_LONG
- #define INT_ASM_OP ASM_LONG
/* This is how to output an assembler line for a numeric constant byte. */
--- 2969,2974 ----
*** ./config/i386/sco5.h.~1~ Thu Nov 15 17:01:59 2001
--- ./config/i386/sco5.h Wed Nov 14 10:57:36 2001
*************** Boston, MA 02111-1307, USA. */
*** 50,58 ****
#undef LOCAL_ASM_OP
#define LOCAL_ASM_OP "\t.local\t"
- #undef INT_ASM_OP
- #define INT_ASM_OP "\t.long\t"
-
#undef ASM_SHORT
#define ASM_SHORT "\t.value\t"
--- 50,55 ----
*** ./config/i960/i960-coff.h.~1~ Thu Nov 15 17:01:59 2001
--- ./config/i960/i960-coff.h Fri Aug 31 11:35:25 2001
*************** Boston, MA 02111-1307, USA. */
*** 41,46 ****
#define CTORS_SECTION_ASM_OP "\t.section\t.ctors,\"x\""
#define DTORS_SECTION_ASM_OP "\t.section\t.dtors,\"x\""
- #define INT_ASM_OP "\t.word\t"
-
/* end of i960-coff.h */
--- 41,44 ----
*** ./config/m68k/coff.h.~1~ Fri Aug 10 09:03:18 2001
--- ./config/m68k/coff.h Thu Nov 15 17:37:49 2001
*************** Boston, MA 02111-1307, USA. */
*** 104,111 ****
#undef TARGET_ASM_NAMED_SECTION
#define TARGET_ASM_NAMED_SECTION m68k_coff_asm_named_section
- #define INT_ASM_OP "\t.long\t"
-
/* Don't assume anything about startfiles. */
#undef STARTFILE_SPEC
--- 104,109 ----
*** ./config/m88k/m88k.h.~1~ Wed Nov 14 10:58:09 2001
--- ./config/m88k/m88k.h Thu Nov 15 17:36:45 2001
*************** enum reg_class { NO_REGS, AP_REG, XRF_RE
*** 1651,1657 ****
#define ASM_COMMENT_START ";"
/* Allow pseudo-ops to be overridden. Override these in svr[34].h. */
- #undef INT_ASM_OP
#undef ASCII_DATA_ASM_OP
#undef CONST_SECTION_ASM_OP
#undef CTORS_SECTION_ASM_OP
--- 1651,1656 ----
*************** enum reg_class { NO_REGS, AP_REG, XRF_RE
*** 1697,1704 ****
#define BSS_ASM_OP "\tbss\t"
#define FLOAT_ASM_OP "\tfloat\t"
#define DOUBLE_ASM_OP "\tdouble\t"
! #define INT_ASM_OP "\tword\t"
! #define ASM_LONG INT_ASM_OP
#define SHORT_ASM_OP "\thalf\t"
#define CHAR_ASM_OP "\tbyte\t"
#define ASCII_DATA_ASM_OP "\tstring\t"
--- 1696,1702 ----
#define BSS_ASM_OP "\tbss\t"
#define FLOAT_ASM_OP "\tfloat\t"
#define DOUBLE_ASM_OP "\tdouble\t"
! #define ASM_LONG "\tword\t"
#define SHORT_ASM_OP "\thalf\t"
#define CHAR_ASM_OP "\tbyte\t"
#define ASCII_DATA_ASM_OP "\tstring\t"
*************** do { \
*** 2049,2055 ****
do { \
union { REAL_VALUE_TYPE d; long l[2]; } x; \
x.d = (VALUE); \
! fprintf (FILE, "%s0x%.8lx, 0x%.8lx\n", INT_ASM_OP, \
(long) x.l[0], (long) x.l[1]); \
} while (0)
--- 2047,2053 ----
do { \
union { REAL_VALUE_TYPE d; long l[2]; } x; \
x.d = (VALUE); \
! fprintf (FILE, "%s0x%.8lx, 0x%.8lx\n", ASM_LONG, \
(long) x.l[0], (long) x.l[1]); \
} while (0)
*************** do { \
*** 2058,2069 ****
do { \
int i; \
FLOAT_TO_INT_INTERNAL (VALUE, i); \
! fprintf (FILE, "%s0x%.8x\n", INT_ASM_OP, i); \
} while (0)
/* Likewise for `int', `short', and `char' constants. */
#define ASM_OUTPUT_INT(FILE,VALUE) \
! ( fprintf (FILE, "%s", INT_ASM_OP), \
output_addr_const (FILE, (VALUE)), \
fprintf (FILE, "\n"))
--- 2056,2067 ----
do { \
int i; \
FLOAT_TO_INT_INTERNAL (VALUE, i); \
! fprintf (FILE, "%s0x%.8x\n", ASM_LONG, i); \
} while (0)
/* Likewise for `int', `short', and `char' constants. */
#define ASM_OUTPUT_INT(FILE,VALUE) \
! ( fprintf (FILE, "%s", ASM_LONG), \
output_addr_const (FILE, (VALUE)), \
fprintf (FILE, "\n"))
*** ./config/m88k/m88k.c.~1~ Fri Nov 2 17:20:32 2001
--- ./config/m88k/m88k.c Thu Nov 15 17:37:09 2001
*************** output_tdesc (file, offset)
*** 2367,2373 ****
tdesc_section ();
! fprintf (file, "%s%d,%d", INT_ASM_OP, /* 8:0,22:(20 or 16),2:2 */
(((xmask != 0) ? 20 : 16) << 2) | 2,
flag_pic ? 2 : 1);
--- 2367,2373 ----
tdesc_section ();
! fprintf (file, "%s%d,%d", ASM_LONG, /* 8:0,22:(20 or 16),2:2 */
(((xmask != 0) ? 20 : 16) << 2) | 2,
flag_pic ? 2 : 1);
*** ./config/pa/pa64-hpux.h.~1~ Thu Nov 15 17:01:59 2001
--- ./config/pa/pa64-hpux.h Wed Nov 14 10:58:18 2001
*************** do { \
*** 180,187 ****
DECL_SECTION_NAME (DECL) = build_string (len, string); \
} while (0)
- #define INT_ASM_OP "\t.dword\t"
-
/* Define the strings used for the special svr4 .type and .size directives.
These strings generally do not vary from one system running svr4 to
another, but if a given system (e.g. m88k running svr) needs to use
--- 180,185 ----
*** ./config/sh/sh.h.~1~ Thu Nov 15 17:01:59 2001
--- ./config/sh/sh.h Wed Nov 14 10:58:26 2001
*************** while (0)
*** 1929,1939 ****
/* Switch into a generic section. */
#define TARGET_ASM_NAMED_SECTION sh_asm_named_section
- /* This is the pseudo-op used to generate a reference to a specific
- symbol in some section. */
-
- #define INT_ASM_OP "\t.long\t"
-
#undef DO_GLOBAL_CTORS_BODY
#define DO_GLOBAL_CTORS_BODY \
{ \
--- 1929,1934 ----
*** ./config/sparc/litecoff.h.~1~ Thu Nov 15 17:01:59 2001
--- ./config/sparc/litecoff.h Thu Nov 15 16:59:54 2001
*************** Boston, MA 02111-1307, USA. */
*** 44,51 ****
#define EXTRA_SECTION_FUNCTIONS \
CONST_SECTION_FUNCTION
- #define INT_ASM_OP "\t.long\t"
-
#undef DO_GLOBAL_CTORS_BODY
#undef DO_GLOBAL_DTORS_BODY
--- 44,49 ----
*** ./config/elfos.h.~1~ Thu Nov 15 17:01:59 2001
--- ./config/elfos.h Wed Nov 14 10:57:02 2001
*************** Boston, MA 02111-1307, USA. */
*** 224,240 ****
} \
while (0)
- /* This is the pseudo-op used to generate a reference to a specific
- symbol in some section. It is only used in machine-specific
- configuration files. This is the same for all known svr4
- assemblers, except those in targets that don't use 32-bit pointers.
- Those should override INT_ASM_OP. Yes, the name of the macro is
- misleading. */
-
- #ifndef INT_ASM_OP
- #define INT_ASM_OP "\t.long\t"
- #endif
-
/* This is the pseudo-op used to generate a contiguous sequence of byte
values from a double-quoted string WITHOUT HAVING A TERMINATING NUL
AUTOMATICALLY APPENDED. This is the same for most svr4 assemblers. */
--- 224,229 ----
*** ./config/lynx.h.~1~ Thu Nov 15 17:01:59 2001
--- ./config/lynx.h Fri Aug 31 11:25:14 2001
*************** do { \
*** 140,147 ****
#undef DTORS_SECTION_ASM_OP
#define DTORS_SECTION_ASM_OP "\t.section\t.dtors"
- #define INT_ASM_OP "\t.long\t"
-
#undef DO_GLOBAL_CTORS_BODY
#undef DO_GLOBAL_DTORS_BODY
--- 140,145 ----
*** ./config/netware.h.~1~ Thu Nov 15 17:01:59 2001
--- ./config/netware.h Thu Nov 15 17:31:52 2001
*************** const_section ()
*** 100,105 ****
in_section = in_const; \
} \
}
-
- #undef INT_ASM_OP
- #define INT_ASM_OP ".long"
--- 100,102 ----
*** ./config/m68hc11/m68hc11.h.~1~ Thu Nov 15 17:01:59 2001
--- ./config/m68hc11/m68hc11.h Fri Nov 2 17:20:30 2001
*************** do {
*** 1570,1584 ****
/* Output before uninitialized data. */
#define BSS_SECTION_ASM_OP ("\t.sect\t.bss")
- /* This is the pseudo-op used to generate a reference to a specific
- symbol in some section. It is only used in machine-specific
- configuration files. This is the same for all known svr4
- assemblers, except those in targets that don't use 32-bit pointers.
- Those should override INT_ASM_OP. Yes, the name of the macro is
- misleading. */
- #undef INT_ASM_OP
- #define INT_ASM_OP "\t.word\t"
-
/* Define the pseudo-ops used to switch to the .ctors and .dtors sections.
Same as config/elfos.h but don't mark these section SHF_WRITE since
--- 1570,1575 ----
*** ./config/mcore/mcore-pe.h.~1~ Thu Nov 15 17:01:59 2001
--- ./config/mcore/mcore-pe.h Sun Sep 23 16:38:34 2001
*************** rdata_section () \
*** 183,190 ****
#define STARTFILE_SPEC "crt0.o%s"
#define ENDFILE_SPEC "%{!mno-lsim:-lsim}"
- #define INT_ASM_OP "\t.long\t"
-
/* __CTOR_LIST__ and __DTOR_LIST__ must be defined by the linker script. */
#define CTOR_LISTS_DEFINED_EXTERNALLY
--- 183,188 ----
*** ./config/s390/linux64.h.~1~ Thu Nov 15 17:01:59 2001
--- ./config/s390/linux64.h Sun Sep 23 16:38:36 2001
*************** Boston, MA 02111-1307, USA. */
*** 59,67 ****
%{static:-static}}}"
#endif
- #undef INT_ASM_OP
- #define INT_ASM_OP "\t.quad\t"
-
#undef PROMOTE_PROTOTYPES
#undef MASK_RETURN_ADDR
#undef SELECT_SECTION
--- 59,64 ----