From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [85.215.255.25]) by sourceware.org (Postfix) with ESMTPS id B4C293861847; Sun, 20 Dec 2020 15:31:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org B4C293861847 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tkoenig.net Authentication-Results: sourceware.org; spf=none smtp.mailfrom=tk@tkoenig.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1608478264; s=strato-dkim-0002; d=tkoenig.net; h=Date:Message-ID:Subject:From:To:From:Subject:Sender; bh=m5p81u0NUsJTk+EhuFjDMUNsNtXOU/c1/wSSZL6P2/c=; b=kUviz5w4PJDtXprWo/72hJRXNNNoxJ+TjKSvJ2rxI1cAew62ovhdgEjT5mZo3j6hGY muSxQbdwNLjbER0aU2xaEGNs63+elXrePP2pjjxH/M2VIs9Zfg7IJoi17crZWDanF45b xF4loAwfzlobjy4xKYDCDfMKGzssvVJ+2PQTLO7NQAnP+R8tACmHp6raXfyJPd4J+Kps 5n+h1I95qo95oDeh/2zPGs/2pCQYt6M9cQoy6zapoMAtAuaXrBZ0rBYrmCGNRKTEPQU7 urzMyPcZnmFIbe2MN/9Q2TK+vSuC0jHZ0nontEOjaKD0sHKUgICP/+S+HuJIr9jk9ODd qWOg== X-RZG-AUTH: ":OGckYUunfvGNVUL0FlRnC4eRM+bOwx0tUtYTrJ/xeZX+ZVNns7qeI3kOmGjgW4YumgBsgvUO4YDSCuML/MGOlf9LqhChUNw=" X-RZG-CLASS-ID: mo00 Received: from linux-p51k.fritz.box by smtp.strato.de (RZmta 47.9.3 AUTH) with ESMTPSA id R04b06wBKFV47li (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Sun, 20 Dec 2020 16:31:04 +0100 (CET) To: "fortran@gcc.gnu.org" , gcc-patches From: =?UTF-8?Q?Thomas_K=c3=b6nig?= Subject: [patch, fortran, committed] Set DECL_ARTIFICIAL on auxiliary variables Message-ID: <2ff930d2-6cef-989a-a12c-86131ac0b67c@tkoenig.net> Date: Sun, 20 Dec 2020 16:31:03 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------A2E039443CC79793A24B6035" Content-Language: de-DE X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: fortran@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Fortran mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Dec 2020 15:31:09 -0000 This is a multi-part message in MIME format. --------------A2E039443CC79793A24B6035 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hello world, committed to trunk as obvious and simple. Best regards Thomas Set DECL_ARTIFICIAL on gfortran internal variables. It seems we sometimes use DECL_ARTIFICIAL as choosing between different code paths. In order not to make -fdebug-aux-vars do different things, set DECL_ARTIFICIAL on the variables to avoid these different code paths (and the corresponding regressions). gcc/fortran/ChangeLog: * trans.c (create_var_debug_raw): Set DECL_ARTIFICIAL on variables. --------------A2E039443CC79793A24B6035 Content-Type: text/x-patch; charset=UTF-8; name="p2.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="p2.diff" diff --git a/gcc/fortran/trans.c b/gcc/fortran/trans.c index fa7fd9d88aa..57a344a63c9 100644 --- a/gcc/fortran/trans.c +++ b/gcc/fortran/trans.c @@ -128,6 +128,9 @@ create_var_debug_raw (tree type, const char *prefix) t = build_decl (input_location, VAR_DECL, get_identifier (name_buf), type); + /* Not setting this causes some regressions. */ + DECL_ARTIFICIAL (t) = 1; + /* We want debug info for it. */ DECL_IGNORED_P (t) = 0; /* It should not be nameless. */ --------------A2E039443CC79793A24B6035--