From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 37586 invoked by alias); 4 Apr 2018 09:30:55 -0000 Mailing-List: contact fortran-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: fortran-owner@gcc.gnu.org Received: (qmail 6541 invoked by uid 89); 4 Apr 2018 09:30:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-12.1 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-Spam-User: qpsmtpd, 3 recipients X-HELO: mo4-p00-ob.smtp.rzone.de Received: from mo4-p00-ob.smtp.rzone.de (HELO mo4-p00-ob.smtp.rzone.de) (81.169.146.216) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 04 Apr 2018 09:30:40 +0000 X-RZG-AUTH: :OGckYUunfvGNVUL0FlRnC4eRM+bOwx0tUtYTrJ/xeZX+ZVZvrbiROUdnOm6ScCRz X-RZG-CLASS-ID: mo00 Received: from [192.168.178.68] (xdsl-78-35-131-140.netcologne.de [78.35.131.140]) by smtp.strato.de (RZmta 43.1 DYNA|AUTH) with ESMTPSA id V073b6u349UYIdU (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Wed, 4 Apr 2018 11:30:34 +0200 (CEST) To: "fortran@gcc.gnu.org" , gcc-patches , vries@gcc.gnu.org From: =?UTF-8?Q?Thomas_K=c3=b6nig?= Subject: [patch, libfortran, committed] Implement stop_numeric for minimal targets Message-ID: <751060e1-67cb-d290-4fd1-46b15b77fc1a@tkoenig.net> Date: Wed, 04 Apr 2018 09:30:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------65C2B85B2F071DCD53C49C6B" X-SW-Source: 2018-04/txt/msg00012.txt.bz2 This is a multi-part message in MIME format. --------------65C2B85B2F071DCD53C49C6B Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-length: 556 Hello world, the recent patch to make the gfortran and libgomp testsuites more standard conforming, by replacing CALL ABORT() with STOP N, led to numerous testsuite failures on nvptx because stop_numeric was not implemented in minimal.c. I have committed the patch below in r259072 as obvious after Tom de Vries had confirmed that it solves the problem. Regards Thomas 2018-04-04 Thomas Koenig PR libfortran/85166 * runtime/minimal.c (stop_numeric): Add new function in order to implement numeric stop on minimal targets. --------------65C2B85B2F071DCD53C49C6B Content-Type: text/x-patch; name="minimal.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="minimal.diff" Content-length: 441 Index: runtime/minimal.c =================================================================== --- runtime/minimal.c (Revision 259055) +++ runtime/minimal.c (Arbeitskopie) @@ -187,3 +187,17 @@ abort(); } + +/* A numeric STOP statement. */ + +extern _Noreturn void stop_numeric (int, bool); +export_proto(stop_numeric); + +void +stop_numeric (int code, bool quiet) +{ + if (!quiet) + printf ("STOP %d\n", code); + + exit (code); +} --------------65C2B85B2F071DCD53C49C6B--