From 8a2389cd53019be6e3a17f827de3da3532a45477 Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Mon, 13 Dec 2010 18:30:20 +0000 Subject: [PATCH] backport: re PR target/22224 (Several Tru64 UNIX testsuite failures: Length of .lcomm was less than 1) Backport from mainline: 2010-04-28 Rainer Orth PR target/22224 * config/alpha/osf.h (ASM_OUTPUT_LOCAL): Redefine. From-SVN: r167762 --- gcc/ChangeLog | 8 ++++++++ gcc/config/alpha/osf.h | 10 +++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e5b1b5d04b7c..206a9b30a242 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2010-12-13 Rainer Orth + + Backport from mainline: + 2010-04-28 Rainer Orth + + PR target/22224 + * config/alpha/osf.h (ASM_OUTPUT_LOCAL): Redefine. + 2010-12-13 Rainer Orth Backport from mainline: diff --git a/gcc/config/alpha/osf.h b/gcc/config/alpha/osf.h index 2b5165c0754d..d46e645e454f 100644 --- a/gcc/config/alpha/osf.h +++ b/gcc/config/alpha/osf.h @@ -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) \ -- 2.47.2