From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by sourceware.org (Postfix) with ESMTPS id B68943858D33; Thu, 2 Mar 2023 00:00:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B68943858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-x433.google.com with SMTP id bx12so11776004wrb.11; Wed, 01 Mar 2023 16:00:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=6/50e0twxeSkhHa9Rfvhp3WXzru1IXSs8//t2oRbykA=; b=J5pAwU3LnO5cQduQo58+AAaqxyZNvz/VaSDXS8ajHqTcZOf4NIrs1YotS2zn3ivd42 u1I4DfKgMLG7c1EJbZr6FPupeDP+/l8gUX2qO9oaoNhwka0SvKXuuXOE1onVgJV1MxBN QNdBcrddjxwfPLmLusq1rlkZ0DQK4NQ0BGP8GC+RcLRplM62ra3JwpHvAFM4E+17zd+Y 9oCiHp2zG+00hc36kS/lo+TeHTTdFK4HJ0Ijui5oDSTVK+OhFqpZzLKzusBs9Lk804Mz 4VOmv8E0R7F5M+10DtVh8pzCOhACpscqYCdHSoC8Q+CUFtZdQfATM7IZqaamir9YQepz Zm8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6/50e0twxeSkhHa9Rfvhp3WXzru1IXSs8//t2oRbykA=; b=VQuT+OiQUzrOLTh3I1ZnurTCkKwXcTG+Y1y460gc+4hmw0X3O/Tad+uSf26cE2KS2R DAi4pRlC86NiBh6KBRRjR4ZrZaElTUKqgQErYHetZNMgYBHmq2jsmm/RjYeKU9K04Bou 2AxlnR8mb1qa5d0Fmp7MQDtlFhqBuBBdVtV5sTA6CMtIhWgB8xXqyH8EW7X6Fzjdnl2Q NwLn14/QY5Mo4Xt3j8czMl1BMxhggCHhhjvG2y80sn+ScqFHxdBHS1tQVyO4hkMt3wo5 +Og9mRq3bzd3riGnOsyRrgqiWMf2jYSegGOsLTgEja76/JeihNzGF1aAWEvl78BUR6wZ 9j4g== X-Gm-Message-State: AO0yUKUnKfd7U+JNRqEZgqluM5ecq3qFnmFEtKdk2izVe9DsUUAqxWkd bfYxWT1DBT8ZlgXDN1utnHw= X-Google-Smtp-Source: AK7set8V2GQMwsaLqZHvDeEYNv3GtHN7XM7OvdqlCnxY8B5C1R3HCpBrJC4TCmNQ5cV6RjxoujZ2UA== X-Received: by 2002:adf:f791:0:b0:2c9:5dd8:2978 with SMTP id q17-20020adff791000000b002c95dd82978mr6334403wrp.59.1677715226393; Wed, 01 Mar 2023 16:00:26 -0800 (PST) Received: from nbbrfq (80-110-214-113.static.upcbusiness.at. [80.110.214.113]) by smtp.gmail.com with ESMTPSA id n5-20020a5d51c5000000b002c70d97af78sm14032743wrv.85.2023.03.01.16.00.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 16:00:26 -0800 (PST) Date: Thu, 2 Mar 2023 01:00:22 +0100 From: Bernhard Reutner-Fischer To: Tobias Burnus Cc: rep.dot.nop@gmail.com, HAO CHEN GUI , gcc-patches , fortran , Segher Boessenkool , David , "Kewen.Lin" , Peter Bergner Subject: Re: [PATCH, gfortran] Escalate failure when Hollerith constant to real conversion fails [PR103628] Message-ID: <20230302010022.1684dbaa@nbbrfq> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Wed, 1 Mar 2023 10:40:15 +0100 Tobias Burnus wrote: > Hi, > > Please CC fortran@gcc for Fortran patches. > > --- a/gcc/fortran/target-memory.cc > > +++ b/gcc/fortran/target-memory.cc > > @@ -417,10 +417,13 @@ gfc_interpret_float (int kind, unsigned char *buffer, size_t buffer_size, > > { > > gfc_set_model_kind (kind); > > mpfr_init (real); > > - gfc_conv_tree_to_mpfr (real, > > - native_interpret_expr (gfc_get_real_type (kind), > > - buffer, buffer_size)); > > > > + tree source = native_interpret_expr (gfc_get_real_type (kind), buffer, s/source = native/source = native/ additionally to moving mpfr_init around and the other comments. Please send an updated, regtested patch? thanks && cheers,