From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25894 invoked by alias); 29 Feb 2008 15:51:02 -0000 Received: (qmail 25714 invoked by uid 48); 29 Feb 2008 15:50:17 -0000 Date: Fri, 29 Feb 2008 15:51:00 -0000 Message-ID: <20080229155017.25713.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug ada/35050] [4.x regression] renames entities not in symbol table In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "tero dot koskinen at iki dot fi" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-02/txt/msg02983.txt.bz2 ------- Comment #1 from tero dot koskinen at iki dot fi 2008-02-29 15:50 ------- I think the problem is in Xref_lib package (xref_lib.adb). It doesn't parse the current .ali file format properly. The patch (against gcc-trunk r131693) at http://iki.fi/tero.koskinen/gcc/gcc-ada-xref_lib_adb.diff fixes parsing for me. Some details: The code expects .ali file format for renamings to be: 4V12*My_plus{integer}=4:58 2|11r20 But if I understood the code correctly, the format is: 4V12*My_plus=4:58{integer} 2|11r20 The patch moves =NUMBER:NUMBER handling before {integer}&co. handling. gnatxref output after the patch: Add function Decl: pb_renaming.ads 5:12 Ref: pb_renaming.adb 11:8 My_plus function Decl: pb_renaming.ads 4:12 Ref: pb_renaming.adb 11:20 I haven't tested very complex cases, but for random gtkada code the patch seemed to work. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35050