public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/39360] [4.4 Regression] ICE in referenced_var_lookup, at tree-dfa.c:563
Date: Wed, 04 Mar 2009 16:41:00 -0000	[thread overview]
Message-ID: <20090304164043.1035.qmail@sourceware.org> (raw)
In-Reply-To: <bug-39360-15353@http.gcc.gnu.org/bugzilla/>



------- Comment #5 from rguenth at gcc dot gnu dot org  2009-03-04 16:40 -------
Reduced testcase:

typedef unsigned short u16;
struct snd_kcontrol_new { };
typedef u16 hda_nid_t;
struct alc_spec {
    struct snd_kcontrol_new *cap_mixer;
    unsigned int num_adc_nids;
};
static struct snd_kcontrol_new alc_capture_mixer1[] = { };
static struct snd_kcontrol_new alc_capture_mixer2[] = { };
static struct snd_kcontrol_new alc_capture_mixer3[] = { };
static void set_capture_mixer(struct alc_spec *spec)
{
  static struct snd_kcontrol_new *caps[3] = {
      alc_capture_mixer1,   alc_capture_mixer2,   alc_capture_mixer3
  };
  if (spec->num_adc_nids > 0 && spec->num_adc_nids <= 3)
    spec->cap_mixer = caps[spec->num_adc_nids - 1];
}
static hda_nid_t alc662_adc_nids[1] = { 0x09, };
int patch_alc662(struct hda_codec *codec)
{
  struct alc_spec *spec;
  spec->num_adc_nids = (sizeof(alc662_adc_nids) / sizeof((alc662_adc_nids)[0])
                        + (sizeof(char[1 - 2 *
!!(__builtin_types_compatible_p(typeof(alc662_adc_nids),
typeof(&alc662_adc_nids[0])))]) - 1));
  if (!spec->cap_mixer)
    set_capture_mixer(spec);
}


-- 


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


  parent reply	other threads:[~2009-03-04 16:41 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-04 14:35 [Bug middle-end/39360] New: tree-dsa leads to an ICE linuxl4 at sohu dot com
2009-03-04 14:36 ` [Bug middle-end/39360] " linuxl4 at sohu dot com
2009-03-04 15:03 ` rguenth at gcc dot gnu dot org
2009-03-04 15:16 ` [Bug middle-end/39360] [4.4 Regression] " hjl dot tools at gmail dot com
2009-03-04 15:21 ` [Bug middle-end/39360] [4.4 Regression] ICE in referenced_var_lookup, at tree-dfa.c:563 rguenth at gcc dot gnu dot org
2009-03-04 16:41 ` rguenth at gcc dot gnu dot org [this message]
2009-03-05  2:09 ` hubicka at gcc dot gnu dot org
2009-03-06 15:40 ` jakub at gcc dot gnu dot org
2009-03-06 17:24 ` jakub at gcc dot gnu dot org
2009-03-06 17:30 ` hubicka at ucw dot cz
2009-03-06 17:53 ` jakub at gcc dot gnu dot org
2009-03-06 19:12 ` jakub at gcc dot gnu dot org
2009-03-06 20:45 ` jakub at gcc dot gnu dot org
2009-03-06 22:51 ` jakub at gcc dot gnu dot org
2009-03-06 22:53 ` jakub at gcc dot gnu dot org
2009-03-07  0:13 ` linuxl4 at sohu dot com

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=20090304164043.1035.qmail@sourceware.org \
    --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).