public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/ARM/heads/morello)] varasm: Fixes to #ifdef guards
@ 2023-06-28 13:33 Alex Coplan
0 siblings, 0 replies; only message in thread
From: Alex Coplan @ 2023-06-28 13:33 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:fe2f029da72bc604b50d42fb58e119753504887a
commit fe2f029da72bc604b50d42fb58e119753504887a
Author: Alex Coplan <alex.coplan@arm.com>
Date: Fri Apr 28 15:48:30 2023 +0100
varasm: Fixes to #ifdef guards
This patch adds and tweaks some #ifdef guards that were either missing
or broken and were breaking the build on some targets.
Diff:
---
gcc/varasm.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 27c4e9628bc..7ad7b0b39f6 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -2046,7 +2046,7 @@ emit_common (tree decl ATTRIBUTE_UNUSED,
unsigned HOST_WIDE_INT size ATTRIBUTE_UNUSED,
unsigned HOST_WIDE_INT rounded ATTRIBUTE_UNUSED)
{
-#if defined(ASM_OUTPUT_ALIGNED_DECL_LOCAL) || defined(ASM_OUTPUT_ALIGNED_LOCAL)
+#if defined(ASM_OUTPUT_ALIGNED_DECL_COMMON) || defined(ASM_OUTPUT_ALIGNED_COMMON)
unsigned HOST_WIDE_INT align
= alignment_pad_from_bits (size, get_variable_align (decl), decl);
#endif
@@ -2559,10 +2559,14 @@ void
assemble_object_type_and_size (FILE *file, const char *name,
HOST_WIDE_INT size)
{
+#ifdef ASM_OUTPUT_TYPE_DIRECTIVE
ASM_OUTPUT_TYPE_DIRECTIVE (file, name, "object");
+#endif
+#ifdef ASM_OUTPUT_SIZE_DIRECTIVE
if (flag_inhibit_size_directive)
return;
ASM_OUTPUT_SIZE_DIRECTIVE (file, name, size);
+#endif
}
/* Set the symbol_referenced flag for ID. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-06-28 13:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-28 13:33 [gcc(refs/vendors/ARM/heads/morello)] varasm: Fixes to #ifdef guards Alex Coplan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).