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

* [Bug c++/49126] timevar_stack faild because define_label
  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 ` pinskia at gcc dot gnu.org
  2011-09-25 12:31 ` paolo.carlini at oracle dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-07-24 20:51 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.07.24 20:51:17
     Ever Confirmed|0                           |1

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-07-24 20:51:17 UTC ---
Confirmed.

>I think there is a bug:
When there is an internal compiler error, it is always a bug.


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

* [Bug c++/49126] timevar_stack faild because define_label
  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
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-09-25 12:31 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu.org

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-09-25 12:26:18 UTC ---
On x86_64-linux, I don't see any internal compiler error compiling this. Please
double check.


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

* [Bug c++/49126] timevar_stack faild because define_label
  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
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-09-28 17:24 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-09-28 16:29:57 UTC ---
Cannot reproduce.


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

* [Bug c++/49126] timevar_stack faild because define_label
  2011-05-23 15:27 [Bug c++/49126] New: timevar_stack faild because define_label zgss278 at 163 dot com
                   ` (2 preceding siblings ...)
  2011-09-28 17:24 ` paolo.carlini at oracle dot com
@ 2012-02-16 20:46 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-02-16 20:46 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|WORKSFORME                  |DUPLICATE

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-02-16 20:19:56 UTC ---
Marking this as a dup of bug 52248.
I can still reproduce this bug in 4.7.0 20120123.

*** This bug has been marked as a duplicate of bug 52248 ***


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