This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: check-abi for PPC64
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: gcc-patches at gcc dot gnu dot org, David Edelsohn <dje at watson dot ibm dot com>
- Cc: Steve Munroe <sjmunroe at us dot ibm dot com>, Janis Johnson <janis at us dot ibm dot com>
- Date: Sat, 22 Mar 2003 18:51:04 +1030
- Subject: Re: check-abi for PPC64
- References: <OF66C8F648.CC1ABF71-ON86256CF0.007A10B8-86256CF0.007AEDDA@rchland.ibm.com>
> Roland McGrath <roland at redhat dot com>
[snip]
> $ echo 'int x = 0;' | gcc-3.3 -S -o - -x c -
> .file "<stdin>"
> .globl x
> .globl x
> .section ".sbss","aw",@nobits
> .align 2
> x:
> .zero 4
> .size x, 4
> .ident "GCC: (GNU) 3.3 20030315
> (prerelease)"
[snip]
> However, it fails to emit the .type directive (and emits .globl twice,
Easily fixed. Looks like quite a few other targets have the same
problem..
* config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
globalize_label, add ASM_OUTPUT_TYPE_DIRECTIVE.
OK mainline and 3.3?
Index: gcc/config/rs6000/sysv4.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/sysv4.h,v
retrieving revision 1.117
diff -u -p -r1.117 sysv4.h
--- gcc/config/rs6000/sysv4.h 13 Mar 2003 10:35:47 -0000 1.117
+++ gcc/config/rs6000/sysv4.h 22 Mar 2003 08:11:15 -0000
@@ -690,7 +690,7 @@ do { \
/* Describe how to emit uninitialized external linkage items. */
#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
do { \
- (*targetm.asm_out.globalize_label) (FILE, NAME); \
+ ASM_OUTPUT_TYPE_DIRECTIVE (FILE, NAME, "object"); \
ASM_OUTPUT_ALIGNED_LOCAL (FILE, NAME, SIZE, ALIGN); \
} while (0)
--
Alan Modra
IBM OzLabs - Linux Technology Centre