public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/98893] New: start_cleanup_cnt needs modularizing
@ 2021-01-29 18:18 nathan at gcc dot gnu.org
  2021-01-29 18:18 ` [Bug c++/98893] " nathan at gcc dot gnu.org
  2021-02-01 18:25 ` nathan at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: nathan at gcc dot gnu.org @ 2021-01-29 18:18 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98893

            Bug ID: 98893
           Summary: start_cleanup_cnt needs modularizing
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nathan at gcc dot gnu.org
  Target Milestone: ---

cp/decl.c:

static GTY(()) int start_cleanup_cnt;

static tree
start_cleanup_fn (void)
{
...
 sprintf (name, "__tcf_%d", start_cleanup_cnt++);


this will collide with header_units

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/98893] start_cleanup_cnt needs modularizing
  2021-01-29 18:18 [Bug c++/98893] New: start_cleanup_cnt needs modularizing nathan at gcc dot gnu.org
@ 2021-01-29 18:18 ` nathan at gcc dot gnu.org
  2021-02-01 18:25 ` nathan at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: nathan at gcc dot gnu.org @ 2021-01-29 18:18 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98893

Nathan Sidwell <nathan at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |nathan at gcc dot gnu.org
   Last reconfirmed|                            |2021-01-29

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/98893] start_cleanup_cnt needs modularizing
  2021-01-29 18:18 [Bug c++/98893] New: start_cleanup_cnt needs modularizing nathan at gcc dot gnu.org
  2021-01-29 18:18 ` [Bug c++/98893] " nathan at gcc dot gnu.org
@ 2021-02-01 18:25 ` nathan at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: nathan at gcc dot gnu.org @ 2021-02-01 18:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98893

--- Comment #1 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
I think the right direction is to use lambdas.  That would make the cleanup
function have a scope attached or related to the variable being dtord.  Howevr,
we cannot use actual lambdas, as that'd disturb the ABI-specified mangling of
function-scope lambdas.  We'd need some kind of separate numbering or naming
(perhaps from the variable in question?)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-02-01 18:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-29 18:18 [Bug c++/98893] New: start_cleanup_cnt needs modularizing nathan at gcc dot gnu.org
2021-01-29 18:18 ` [Bug c++/98893] " nathan at gcc dot gnu.org
2021-02-01 18:25 ` nathan at gcc dot gnu.org

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).