public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "ibuclaw at gdcproject dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/99466] internal compiler error: in function_and_variable_visibility, at ipa-visibility.c:795
Date: Mon, 08 Mar 2021 14:19:59 +0000 [thread overview]
Message-ID: <bug-99466-4-uHKWlUU2pP@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-99466-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99466
--- Comment #2 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
(In reply to Martin Liška from comment #1)
> What compiler options do you use?
No compiler options are necessary to reproduce the ICE. The symbol it fails on
is ___emutls_t.tlsvar.
Having a look at where this variable is created, it looks like TREE_PUBLIC is
copied for DECL_ONE_ONLY symbols, but not DECL_WEAK.
--- a/gcc/tree-emutls.c
+++ b/gcc/tree-emutls.c
@@ -242,16 +242,18 @@ get_emutls_init_templ_addr (tree decl)
DECL_PRESERVE_P (to) = DECL_PRESERVE_P (decl);
DECL_WEAK (to) = DECL_WEAK (decl);
- if (DECL_ONE_ONLY (decl))
+ if (DECL_ONE_ONLY (decl) || DECL_WEAK (decl))
{
TREE_STATIC (to) = TREE_STATIC (decl);
TREE_PUBLIC (to) = TREE_PUBLIC (decl);
DECL_VISIBILITY (to) = DECL_VISIBILITY (decl);
- make_decl_one_only (to, DECL_ASSEMBLER_NAME (to));
}
else
TREE_STATIC (to) = 1;
+ if (DECL_ONE_ONLY (decl))
+ make_decl_one_only (to, DECL_ASSEMBLER_NAME (to));
+
DECL_VISIBILITY_SPECIFIED (to) = DECL_VISIBILITY_SPECIFIED (decl);
DECL_INITIAL (to) = DECL_INITIAL (decl);
DECL_INITIAL (decl) = NULL;
next prev parent reply other threads:[~2021-03-08 14:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-08 13:57 [Bug c/99466] New: " ibuclaw at gdcproject dot org
2021-03-08 14:15 ` [Bug ipa/99466] " marxin at gcc dot gnu.org
2021-03-08 14:19 ` ibuclaw at gdcproject dot org [this message]
2021-03-08 14:35 ` ibuclaw at gdcproject dot org
2021-03-16 13:28 ` iains at gcc dot gnu.org
2021-03-16 14:15 ` ibuclaw at gdcproject dot org
2021-03-16 14:19 ` iains at gcc dot gnu.org
2021-03-26 15:15 ` cvs-commit at gcc dot gnu.org
2021-03-26 15:44 ` cvs-commit at gcc dot gnu.org
2021-03-26 15:45 ` cvs-commit at gcc dot gnu.org
2021-03-26 15:46 ` ibuclaw at gdcproject dot org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-99466-4-uHKWlUU2pP@http.gcc.gnu.org/bugzilla/ \
--to=gcc-bugzilla@gcc.gnu.org \
--cc=gcc-bugs@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).