From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28705 invoked by alias); 30 May 2002 20:26:05 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 28664 invoked by uid 71); 30 May 2002 20:26:03 -0000 Resent-Date: 30 May 2002 20:26:03 -0000 Resent-Message-ID: <20020530202603.28663.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, mmitchel@qualcomm.com Received:(qmail 27672 invoked by uid 61); 30 May 2002 20:24:30 -0000 Message-Id:<20020530202430.27671.qmail@sources.redhat.com> Date: Thu, 30 May 2002 13:36:00 -0000 From: mmitchel@qualcomm.com Reply-To: mmitchel@qualcomm.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c/6873: Improper Alignment Parameters Emitted by Compiler for .comm Section X-SW-Source: 2002-05/txt/msg00998.txt.bz2 List-Id: >Number: 6873 >Category: c >Synopsis: Improper Alignment Parameters Emitted by Compiler for .comm Section >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu May 30 13:26:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: mmitchel@qualcomm.com >Release: gcc version 3.1 arm-elf >Organization: >Environment: cross compile, windows nt, cygwin $ arm-elf-gcc -v Reading specs from /gnude/lib/gcc-lib/arm-elf/3.1/specs Configured with: ../src/configure --target=arm-elf --host=i686-pc-cygwin --prefi x=/gnude --with-local-prefix=/gnude/local --with-gnu-as --with-gnu-ld Thread model: single gcc version 3.1 >Description: The compiler not emitting correct assembly output for following example: $ more test.c int i; int j; $ arm-elf-gcc -S test.c $ more test.s .file "test.c" .comm i, 4, 32 .comm j, 4, 32 .ident "GCC: (GNU) 3.1" the third paramater, alignment parameter, to the .comm pseudo op is incorrect. Incorrect output impacts memory use and requirements of generating small code for embedded targets. >How-To-Repeat: >Fix: In the file gcc\config\arm\elf.h, at line 172, scale the parameter ALIGN by dividing by BITS_PER_UNIT. This is how this macro is implemented for other targets; this may be an undesired omission for this target. >Release-Note: >Audit-Trail: >Unformatted: