From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5891 invoked by alias); 30 May 2014 04:45:54 -0000 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 Received: (qmail 5856 invoked by uid 48); 30 May 2014 04:45:49 -0000 From: "Hale.Wang at arm dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/61123] With LTO, -fno-short-enums is ignored, resulting in ABI mis-matching in linking. Date: Fri, 30 May 2014 04:45:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: lto X-Bugzilla-Keywords: ABI, lto X-Bugzilla-Severity: normal X-Bugzilla-Who: Hale.Wang at arm dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-05/txt/msg02537.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61123 --- Comment #4 from Hale Wang --- (In reply to Richard Biener from comment #3) > It seems that Tag_ABI_PCS_wchar_t is emitted from the C-family frontends only > via config/arm/arm-c.c (as opposed to any other Tags). Probably because > the option is c-family specific. This code needs to move to generic handling > (the option enum is shared across all frontends, so that's not a reason to > keep it in a C specific file). Thanks very much for your comments. So this seems to be a separate issue that the Tag_ABI_PCS_wchar_t need to be moved to LTO frontend at least,but not only the C frontend. May be I need to creat another patch or bug description for this issue.