From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23944 invoked by alias); 2 Feb 2015 07:22:38 -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 23888 invoked by uid 48); 2 Feb 2015 07:22:35 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/64893] [5 Regression] ICE while doing a bootstrap with the latest compiler Date: Mon, 02 Feb 2015 07:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: build, ice-on-valid-code X-Bugzilla-Severity: blocker X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 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: 2015-02/txt/msg00085.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64893 --- Comment #3 from Andrew Pinski --- Can we change the arguments for __builtin_aarch64_im_lane_boundsi to take three arguments, the two sizeof's and the idx? And do the division inside the compiler? Also change the argument types of __builtin_aarch64_im_lane_boundsi to be size_type_node instead. Something like: #define __AARCH64_NUM_LANES(__v) (sizeof (__v) / sizeof (__v[0])) #define __AARCH64_LANE_CHECK(__vec, __idx) \ __builtin_aarch64_im_lane_boundsi (__AARCH64_NUM_LANES (__vec), __idx) Into: #define __AARCH64_NUM_LANES(__v) (sizeof (__v) / sizeof (__v[0])) #define __AARCH64_LANE_CHECK(__vec, __idx) \ __builtin_aarch64_im_lane_boundsi (sizeof (__v), sizeof(__v[0]), __idx) Both of these things should allow C++ to work without much work.