[Bug c++/28017] lack of guard variables for explicitly instantiated template static data

2024-04-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28017 Andrew Pinski changed: What|Removed |Added Keywords||wrong-code See Also|

[Bug c++/28017] lack of guard variables for explicitly instantiated template static data

2009-01-27 Thread bkoz at gcc dot gnu dot org
--- Comment #13 from bkoz at gcc dot gnu dot org 2009-01-27 17:26 --- *** Bug 25956 has been marked as a duplicate of this bug. *** -- bkoz at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/28017] lack of guard variables for explicitly instantiated template static data

2006-06-20 Thread pinskia at gcc dot gnu dot org
--- Comment #11 from pinskia at gcc dot gnu dot org 2006-06-21 04:50 --- Actually I take that back, it is also a problem with targets that don't have weak symbols too. On x86_64-linux-gnu with the additional flag of -fno-weak: pc64:~ g++ test.cc test1.cc -fno-weak pc64:~ ./a.out new:

[Bug c++/28017] lack of guard variables for explicitly instantiated template static data

2006-06-20 Thread pinskia at gcc dot gnu dot org
--- Comment #12 from pinskia at gcc dot gnu dot org 2006-06-21 05:05 --- -fno-weak worked in 3.0.4 and below, though I don't know if it was really working so I am not marking this as a regression. -- pinskia at gcc dot gnu dot org changed: What|Removed

[Bug c++/28017] lack of guard variables for explicitly instantiated template static data

2006-06-19 Thread hhinnant at apple dot com
--- Comment #10 from hhinnant at apple dot com 2006-06-19 18:11 --- It turns out this still isn't quite right. Looks like we need: #define NEEDS_GUARD_P(decl) (TREE_PUBLIC (decl) (DECL_COMMON (decl) \ || DECL_ONE_ONLY (decl) \

[Bug c++/28017] lack of guard variables for explicitly instantiated template static data

2006-06-13 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-06-13 19:14 --- This works on x86-linux-gnu on the mainline. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28017

[Bug c++/28017] lack of guard variables for explicitly instantiated template static data

2006-06-13 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-06-13 19:15 --- (In reply to comment #1) This works on x86-linux-gnu on the mainline. Oh and in 3.3.3. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28017

[Bug c++/28017] lack of guard variables for explicitly instantiated template static data

2006-06-13 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-06-13 19:18 --- || DECL_ONE_ONLY (decl) || DECL_WEAK (decl) \ Actually those looks should include what is defined for Darwin. -- pinskia at gcc dot gnu dot org changed: What|Removed

[Bug c++/28017] lack of guard variables for explicitly instantiated template static data

2006-06-13 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2006-06-13 19:37 --- For Darwin we do not want explicit instantiations to be linkonce. */ This is why this testcase fails on darwin. We should instead of just adding DECL_EXPLICIT_INSTANTIATION, check

[Bug c++/28017] lack of guard variables for explicitly instantiated template static data

2006-06-13 Thread hhinnant at apple dot com
--- Comment #5 from hhinnant at apple dot com 2006-06-13 21:23 --- (In reply to comment #4) For Darwin we do not want explicit instantiations to be linkonce. */ This is why this testcase fails on darwin. We should instead of just adding DECL_EXPLICIT_INSTANTIATION, check

Re: [Bug c++/28017] lack of guard variables for explicitly instantiated template static data

2006-06-13 Thread Andrew Pinski
#define NEEDS_GUARD_P(decl) (TREE_PUBLIC (decl) (DECL_COMMON (decl) \ || DECL_ONE_ONLY (decl) \ || DECL_WEAK (decl) \ ||

[Bug c++/28017] lack of guard variables for explicitly instantiated template static data

2006-06-13 Thread pinskia at physics dot uc dot edu
--- Comment #6 from pinskia at physics dot uc dot edu 2006-06-13 21:24 --- Subject: Re: lack of guard variables for explicitly instantiated template static data #define NEEDS_GUARD_P(decl) (TREE_PUBLIC (decl) (DECL_COMMON (decl) \

[Bug c++/28017] lack of guard variables for explicitly instantiated template static data

2006-06-13 Thread hhinnant at apple dot com
--- Comment #7 from hhinnant at apple dot com 2006-06-13 21:41 --- (In reply to comment #6) Subject: Re: lack of guard variables for explicitly instantiated template static data #define NEEDS_GUARD_P(decl) (TREE_PUBLIC (decl) (DECL_COMMON (decl) \

Re: [Bug c++/28017] lack of guard variables for explicitly instantiated template static data

2006-06-13 Thread Andrew Pinski
--- Comment #7 from hhinnant at apple dot com 2006-06-13 21:41 --- (In reply to comment #6) Subject: Re: lack of guard variables for explicitly instantiated template static data #define NEEDS_GUARD_P(decl) (TREE_PUBLIC (decl) (DECL_COMMON (decl) \

[Bug c++/28017] lack of guard variables for explicitly instantiated template static data

2006-06-13 Thread pinskia at physics dot uc dot edu
--- Comment #8 from pinskia at physics dot uc dot edu 2006-06-13 21:47 --- Subject: Re: lack of guard variables for explicitly instantiated template static data --- Comment #7 from hhinnant at apple dot com 2006-06-13 21:41 --- (In reply to comment #6) Subject: Re:

[Bug c++/28017] lack of guard variables for explicitly instantiated template static data

2006-06-13 Thread hhinnant at apple dot com
--- Comment #9 from hhinnant at apple dot com 2006-06-13 22:02 --- (In reply to comment #8) Thanks. That not only makes sense to me now, but it passes the test. :-) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28017