From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) by sourceware.org (Postfix) with ESMTPS id 2F93B383F411 for ; Mon, 12 Jul 2021 10:55:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2F93B383F411 Received: by mail-lj1-f180.google.com with SMTP id b40so23464099ljf.12 for ; Mon, 12 Jul 2021 03:55:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jHzqWtiTtTkLFfM1MP4/24gGZEaeUR0+THezuLkdTLI=; b=oxjLHV23lbZJBAPCUq1B3dO6tzcam4O7gVQV7JdL6Vxxood1Ta2tAGwkIHZcVFZzKi juZ063uVVzPcEDZ7V5N9sxX1t+6nweDpyZLQ3tRyClw/vI3ppBNJHD32u8WmPw5xjljg 8yrz+Xo6kbC4rFgPJz7iEa+GTqJhjDyyzxLHkxUG54rLPd63A+8/P9LjIA3LSa1wgYkB 0w1SPeS5deQtVWDmuXM+cPS0w5YgqzJ6lvUniBp2pX97li1eTk5LSqGZEJixnJRfEUy0 jwWRZwViiQbSKZISBr2yTVjSUhx5QhVeuAT/cU05QiImrxZeETp4k5+NqI0ajMxYRlZ7 WwyA== X-Gm-Message-State: AOAM530eEY7BpjSy0W4/SS7jWGhrHyJh6mt/WAFuQuXNneQbBZ5hRZoZ FGAaRewj1vKgVjW0T+fnIkT9iZUUUAzplg== X-Google-Smtp-Source: ABdhPJzZEl/s8d5GZSCOMjHphxwnF11IXla3q47eAbHC8hkM7O0y7C0ouiFv7udhcgtO8qUsY/ojhw== X-Received: by 2002:a2e:9653:: with SMTP id z19mr40399378ljh.386.1626087347550; Mon, 12 Jul 2021 03:55:47 -0700 (PDT) Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com. [209.85.167.54]) by smtp.gmail.com with ESMTPSA id a26sm1176794lfc.218.2021.07.12.03.55.47 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 12 Jul 2021 03:55:47 -0700 (PDT) Received: by mail-lf1-f54.google.com with SMTP id i5so12648473lfe.2 for ; Mon, 12 Jul 2021 03:55:47 -0700 (PDT) X-Received: by 2002:a05:6512:260a:: with SMTP id bt10mr12190346lfb.636.1626087346961; Mon, 12 Jul 2021 03:55:46 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Erick Ochoa Date: Mon, 12 Jul 2021 12:55:31 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: tree decl stored during LGEN does not map to a symtab_node during WPA To: Richard Biener Cc: Jan Hubicka , GCC Development Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jul 2021 10:55:50 -0000 > I'm not too familiar with it but I think you're supposed to stream encoded > symtab references during LGEN/WPA, Thanks Richard, this happened to be the solution. I am now using lto_symtab_encoder_t to encode the declarations during LGEN and decode them during WPA. Are there any more limitations of using stream_write_tree that one should be aware of? Now I am looking into storing trees of the type STRING_CST and I think this might be causing me a problem at WPA time. I think it segfaults at the moment of creating the process, but I still need more time to investigate. Perhaps you might know if storing STRING_CST trees has to be handled in a special way? Not sure if it also has something to do with LTO file sections. The tree is used to initialize a global static variable. Thanks!