public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "tbm at cyrius dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/29254]  New: [4.2 Regression] verify_cgraph_node failed (inlined_to pointer is set but no predecessors found)
Date: Wed, 27 Sep 2006 16:59:00 -0000	[thread overview]
Message-ID: <bug-29254-12387@http.gcc.gnu.org/bugzilla/> (raw)

I get the following ICE:

tbm@coconut0:~$ /usr/lib/gcc-snapshot/bin/gcc -c -O3 -Werror qof-jvp_frame.c
cc1: warnings being treated as errors
qof-jvp_frame.c: In function 'kvp_frame_compare':
qof-jvp_frame.c:60: warning: passing argument 1 of 'kvp_frame_for_each_slot'
discards qualifiers from pointer target type
qof-jvp_frame.c: At top level:
qof-jvp_frame.c:62: error: inlined_to pointer is set but no predecessors found
kvp_value_compare/6: (inline copy in kvp_glist_compare/0)
availability:available(2) 19 insns (39 after inlining) tree externally_visible
finalized inlinable
  called by:
  calls: kvp_glist_compare/11 (inlined)
qof-jvp_frame.c:62: internal compiler error: verify_cgraph_node failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>.
tbm@coconut0:~$ /usr/lib/gcc-snapshot/bin/gcc -c -O3 qof-jvp_frame.c
qof-jvp_frame.c: In function 'kvp_frame_compare':
qof-jvp_frame.c:60: warning: passing argument 1 of 'kvp_frame_for_each_slot'
discards qualifiers from pointer target type
tbm@coconut0:~$ gcc-4.1 -c -O3 -Werror qof-jvp_frame.c
tbm@coconut0:~$

Testcase:

typedef int gint;
typedef void *gpointer;
typedef struct _GList GList;
struct _GList
{
  gpointer data;
}
__fsid_t;
typedef struct _KvpFrame KvpFrame;
typedef struct _KvpValue KvpValue;
typedef enum
{
    KVP_TYPE_GLIST,
}
KvpValueType;
struct _KvpValue
{
  KvpValueType type;
  union
  {
    GList *list;
  }
  value;
};
kvp_glist_compare (const GList * list1, const GList * list2)
{
  const GList *lp1;
  const GList *lp2;
  while (lp1 && lp2)
    {
      KvpValue *v1 = (KvpValue *) lp1->data;
      KvpValue *v2 = (KvpValue *) lp2->data;
      gint vcmp = kvp_value_compare (v1, v2);
    }
}
kvp_frame_for_each_slot (KvpFrame * f,
                         void (*proc) (const char *key, KvpValue * value,
                                       gpointer data), gpointer data)
{
}
kvp_value_compare (const KvpValue * kva, const KvpValue * kvb)
{
  switch (kva->type)
    {
    case KVP_TYPE_GLIST:
      return kvp_glist_compare (kva->value.list, kvb->value.list);
    }
}
typedef struct
{
}
kvp_frame_cmp_status;
static void
kvp_frame_compare_helper (const char *key, KvpValue * val, gpointer data)
{
}
kvp_frame_compare (const KvpFrame * fa, const KvpFrame * fb)
{
  kvp_frame_cmp_status status;
  kvp_frame_for_each_slot ((KvpFrame *) fb, kvp_frame_compare_helper,
                           &status);
}


-- 
           Summary: [4.2 Regression] verify_cgraph_node failed (inlined_to
                    pointer is set but no predecessors found)
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tbm at cyrius dot com


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


             reply	other threads:[~2006-09-27 16:59 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-27 16:59 tbm at cyrius dot com [this message]
2006-09-27 17:01 ` [Bug tree-optimization/29254] " pinskia at gcc dot gnu dot org
2006-09-27 18:12 ` pinskia at gcc dot gnu dot org
2006-09-27 18:34 ` pinskia at gcc dot gnu dot org
2006-09-27 21:31 ` lopezibanez at gmail dot com
2006-09-28 10:55 ` rguenth at gcc dot gnu dot org
2006-09-29  0:37 ` lopezibanez at gmail dot com
2006-09-29  0:53 ` lopezibanez at gmail dot com
2006-10-01 23:03 ` mmitchel at gcc dot gnu dot org
2006-10-04 20:21 ` lopezibanez at gmail dot com
2006-10-05  5:08 ` [Bug middle-end/29254] " pinskia at gcc dot gnu dot org
2006-10-09 12:25 ` rguenth at gcc dot gnu dot org
2006-10-09 16:11 ` rguenth at gcc dot gnu dot org
2006-10-09 16:11 ` rguenth at gcc dot gnu dot org
2006-10-15 15:31 ` pinskia at gcc dot gnu 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-29254-12387@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).