This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: check-abi for PPC64


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]