From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 53984 invoked by alias); 14 Nov 2018 12:22:59 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 53970 invoked by uid 89); 14 Nov 2018 12:22:59 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_00,FAKE_REPLY_C,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=Hx-languages-length:241 X-HELO: gate.crashing.org Received: from gate.crashing.org (HELO gate.crashing.org) (63.228.1.57) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 14 Nov 2018 12:22:58 +0000 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id wAECMrHZ005427; Wed, 14 Nov 2018 06:22:54 -0600 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id wAECMp89005420; Wed, 14 Nov 2018 06:22:51 -0600 Date: Wed, 14 Nov 2018 12:22:00 -0000 From: Segher Boessenkool To: Jakub Jelinek Cc: Martin Sebor , Gcc Patch List Subject: Re: [PATCH] diagnose unsupported uses of hardware register variables (PR 88000) Message-ID: <20181114122250.GZ23873@gate.crashing.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-IsSubscribed: yes X-SW-Source: 2018-11/txt/msg01233.txt.bz2 Btw, if you just add void * retsp (void) { register void *sp __asm ("sp"); asm ("" : "+g" (sp)); // <-- this line return sp; } everything works fine. Segher