(ASM_DECLARE_OBJECT_NAME): Don't make a .size if the size is not known.

(ASM_DECLARE_OBJECT_NAME): Don't make a .size
if the size is not known.  Use DECL, not decl.

From-SVN: r5003
This commit is contained in:
Richard Stallman 1993-07-27 18:46:28 +00:00
parent 0c96bde094
commit 86615a6216
3 changed files with 6 additions and 6 deletions

View File

@ -368,11 +368,11 @@ do \
putc (',', STREAM); \
fprintf (STREAM, TYPE_OPERAND_FMT, "object"); \
putc ('\n', STREAM); \
if (!flag_inhibit_size_directive) \
if (!flag_inhibit_size_directive && DECL_SIZE (DECL)) \
{ \
fprintf (STREAM, "\t%s\t ", SIZE_ASM_OP); \
assemble_name (STREAM, NAME); \
fprintf (STREAM, ",%d\n", int_size_in_bytes (TREE_TYPE (decl))); \
fprintf (STREAM, ",%d\n", int_size_in_bytes (TREE_TYPE (DECL))); \
} \
} \
} \

View File

@ -1911,11 +1911,11 @@ enum reg_class { NO_REGS, AP_REG, XRF_REGS, GENERAL_REGS, AGRF_REGS,
putc (',', FILE); \
fprintf (FILE, TYPE_OPERAND_FMT, "object"); \
putc ('\n', FILE); \
if (!flag_inhibit_size_directive) \
if (!flag_inhibit_size_directive && DECL_SIZE (DECL)) \
{ \
fprintf (FILE, "\t%s\t ", SIZE_ASM_OP); \
assemble_name (FILE, NAME); \
fprintf (FILE, ",%d\n", int_size_in_bytes (TREE_TYPE (decl))); \
fprintf (FILE, ",%d\n", int_size_in_bytes (TREE_TYPE (DECL))); \
} \
} \
ASM_OUTPUT_LABEL(FILE, NAME); \

View File

@ -587,11 +587,11 @@ dtors_section () \
putc (',', FILE); \
fprintf (FILE, TYPE_OPERAND_FMT, "object"); \
putc ('\n', FILE); \
if (!flag_inhibit_size_directive) \
if (!flag_inhibit_size_directive && DECL_SIZE (DECL)) \
{ \
fprintf (FILE, "\t%s\t ", SIZE_ASM_OP); \
assemble_name (FILE, NAME); \
fprintf (FILE, ",%d\n", int_size_in_bytes (TREE_TYPE (decl))); \
fprintf (FILE, ",%d\n", int_size_in_bytes (TREE_TYPE (DECL))); \
} \
ASM_OUTPUT_LABEL(FILE, NAME); \
} while (0)