public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/49126] New: timevar_stack faild because define_label
@ 2011-05-23 15:27 zgss278 at 163 dot com
  2011-07-24 20:51 ` [Bug c++/49126] " pinskia at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: zgss278 at 163 dot com @ 2011-05-23 15:27 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49126

           Summary: timevar_stack faild because define_label
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zgss278@163.com


when source code like this,I think there is a bug:
int f()
{
goto cleanup:
}
then compiler will go along this path:
|tree poplevel (int keep, int reverse, int functionbody)
-->timevar_start (TV_NAME_LOOKUP);xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-->....                                
--> pop_labels (block);
|static void pop_labels (tree block)
----> htab_traverse (named_labels, pop_labels_1, block);
|static int pop_labels_1 (void **slot, void *data)
------>pop_label (ent->label_decl, NULL_TREE);
|static void pop_label (tree label, tree old_value)
--------> define_label (location, DECL_NAME (label));
|tree define_label (location_t location, tree name)
----------> timevar_start (TV_NAME_LOOKUP);xxxxxxxxxxxxxxxxxxxxx
so at last in:
|void timevar_start (timevar_id_t timevar)
-------------->  gcc_assert (!tv->standalone);
failed!


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

end of thread, other threads:[~2012-02-16 20:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-23 15:27 [Bug c++/49126] New: timevar_stack faild because define_label zgss278 at 163 dot com
2011-07-24 20:51 ` [Bug c++/49126] " pinskia at gcc dot gnu.org
2011-09-25 12:31 ` paolo.carlini at oracle dot com
2011-09-28 17:24 ` paolo.carlini at oracle dot com
2012-02-16 20:46 ` pinskia 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).