From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8948 invoked by alias); 15 Mar 2002 12:36:02 -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 8901 invoked by uid 71); 15 Mar 2002 12:36:01 -0000 Resent-Date: 15 Mar 2002 12:36:01 -0000 Resent-Message-ID: <20020315123601.8900.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, rhirst@linuxcare.com Received:(qmail 32649 invoked by uid 61); 15 Mar 2002 12:27:20 -0000 Message-Id:<20020315122720.32647.qmail@sources.redhat.com> Date: Fri, 15 Mar 2002 04:36:00 -0000 From: rhirst@linuxcare.com Reply-To: rhirst@linuxcare.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c/5973: gcc 2.96 generates bad code to reference ((packed)) struct X-SW-Source: 2002-03/txt/msg00512.txt.bz2 List-Id: >Number: 5973 >Category: c >Synopsis: gcc 2.96 generates bad code to reference ((packed)) struct >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: wrong-code >Submitter-Id: net >Arrival-Date: Fri Mar 15 04:36:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Richard Hirst >Release: gcc version 2.96 20000731 (Debian GNU/Linux IA64 experimental) >Organization: >Environment: ia64 >Description: For the attached t.c program there are two items in .rodata. The first is a string of 9 bytes (inc null), and the second is a packed struct. Code is generated to access the packed struct at .rodata+9, but .rodata is generated with the data at .rodata+12. Problem first observed with gnu parted, where it results in the partition type GUIDs in partition table entries on the disk being corrupt. Further discussion can be found at https://external-lists.vasoftware.com/archives//linux-ia64/2002-March/003158.html >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/x-gtar; name="bug-2.96.tgz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="bug-2.96.tgz" H4sIALrnkTwAA+07S2zjyJWUu3vGYmKgJ8ihg8wE1TbQkCcSm39S7vHE3+4R1v3ZSU8wwKQhUCQl EyOJDEl17ASTOMEAe8mhsZfd3AY57mVzSpBbHxbIdY45ToDdvewluWex+15VUaJEybK7x+4E0YNF Vr16r+rV+1WRLHfDTk2V6qZwgSArsmzqOtwtAHN0Z6DpMrRZuq5rpizrCrSrgBWIfJFCZTBIUicm ROiHrdA7nk3XDztxOIguQ6TLhO+6cRClBJWQ+h4J++RuHJD7oBLFIIqyYcgbqkzAHqoYh2G61fe7 3eON261B0PVuR5SJ32qKpEuqzpu6QYu3tpOmf5Sqt6Ouc7xGOq5Lak9JLXGe+rXU70UJSSV3RXzf d7yg3yFJ5LsJacdhj9weJDH2cxt4angPHFOHQn9wdBtd9jalXRGxy6d+nAQgPOJRWlm2NIVU9vxW 4PTJvQcf3D5APtLYNnXiH0V+HPT8fup011fE+QO5USSTWtfpd2pM+r1mE/rcbTY31VHlfuPBw/cB BRIMcY+2H+++d7D/vf0DaJApHjsfFppNWqRjjUoMe/DwwT38QTlrH/QDRnbwaMi7f3CXl16k5zF8 E/vnxakjjHpjkmwnxwkYsULx61B3o0EFR8dyz3EPg76f1YHpwcNm48FB48F+NgbI0Ly//SEqTVU1 zVJlzbQN3bIMW7YO0DPgF6yIoEuy++jRS5iZVMCIYFsoNLZrINCKGHT6YYw+1w/7/lEAE+mnxAti 303D+JisUrfIuULQd7sDz19dEdd4kaxKkrRKEt+J3UMWQwk59GN/I0fzDtC8O52Ge17oOt2s97O4 4wTpsLrfhwBuZ0N1YUbSmbzbVVDLpNZr1UAJEan9YBD4Kal5g17UchKf2qGW6b4WQj3hNnkpi4wE WSdu2IuCLmSg1jF52Z5x1k5CakdMVi7vGRQRdrtgfAhp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