]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: re PR target/22224 (Several Tru64 UNIX testsuite failures: Length of .lcomm...
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Mon, 13 Dec 2010 18:30:20 +0000 (18:30 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Mon, 13 Dec 2010 18:30:20 +0000 (18:30 +0000)
Backport from mainline:
2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

PR target/22224
* config/alpha/osf.h (ASM_OUTPUT_LOCAL): Redefine.

From-SVN: r167762

gcc/ChangeLog
gcc/config/alpha/osf.h

index e5b1b5d04b7c18cd23c71d6438624e79753dc08a..206a9b30a2425b2268d0176baf2de0998ec22764 100644 (file)
@@ -1,3 +1,11 @@
+2010-12-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       Backport from mainline:
+       2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       PR target/22224
+       * config/alpha/osf.h (ASM_OUTPUT_LOCAL): Redefine.
+
 2010-12-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
        Backport from mainline:
index 2b5165c0754d49717440d3e344637d22d523b679..d46e645e454fa08be3d2cb736985dce7d1ce5760 100644 (file)
@@ -1,6 +1,6 @@
 /* Definitions of target machine for GNU compiler, for DEC Alpha on OSF/1.
    Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2001, 2002, 2003,
-   2004, 2007 Free Software Foundation, Inc.
+   2004, 2007, 2010 Free Software Foundation, Inc.
    Contributed by Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
 
 This file is part of GCC.
@@ -185,6 +185,14 @@ __enable_execute_stack (void *addr)                                        \
    ? (((GLOBAL) ? DW_EH_PE_indirect : 0) | DW_EH_PE_pcrel | DW_EH_PE_sdata4) \
    : DW_EH_PE_aligned)
 
+/* The Tru64 UNIX assembler warns on .lcomm with SIZE 0, so use 1 in that
+   case.  */
+#undef ASM_OUTPUT_LOCAL
+#define ASM_OUTPUT_LOCAL(FILE, NAME, SIZE,ROUNDED)     \
+( fputs ("\t.lcomm ", (FILE)),                         \
+  assemble_name ((FILE), (NAME)),                      \
+  fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED"\n", (SIZE) ? (SIZE) : 1))
+
 /* This is how we tell the assembler that a symbol is weak.  */
 
 #define ASM_OUTPUT_WEAK_ALIAS(FILE, NAME, VALUE)       \