public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/46387] [4.6 Regression] ICE in add_stores, at var-tracking.c:5415
Date: Tue, 09 Nov 2010 11:35:00 -0000	[thread overview]
Message-ID: <bug-46387-4-VVWPC5mnUB@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-46387-4@http.gcc.gnu.org/bugzilla/>

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.6.0

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-11-09 11:35:35 UTC ---
Reduced testcase, no longer requires stack-protector:

typedef signed short gint16;
typedef int gint;
typedef double gdouble;
typedef struct _GdkDrawable GdkPixmap;
typedef struct _GdkDrawable GdkWindow;
typedef enum { GDK_BUTTON1_MASK = 1 << 8 } GdkModifierType;
typedef struct _GdkEventMotion GdkEventMotion;
struct _GdkEventMotion {
    GdkWindow *window;
    gdouble x;
    gdouble y;
    gint16 is_hint;
};
typedef struct _GtkWidget GtkWidget;
typedef struct {
    unsigned char width;
} gn_bmp;
GdkPixmap *drawingPixmap = ((void *)0);
int mouseButtonPushed = 0;
gn_bmp bitmap, oldBitmap;
int activeTool = 0;
gint
DrawingAreaMotionNotifyEvent(GtkWidget * widget, GdkEventMotion * event)
{
  int x, y;
  GdkModifierType state;
  if (!mouseButtonPushed && activeTool != 0)
    return (!(0));
  if (event->is_hint)
    gdk_window_get_pointer(&x, &y, &state);
  else
    {
      x = event->x;
      y = event->y;
    }
  x = x / (5 + 1);
  y = y / (5 + 1);
  if (x < 0)
    x = 0;
  if (x > bitmap.width - 1)
    x = bitmap.width - 1;
  switch (activeTool)
    {
    case 0:
      ToolBrush(widget, x, y, 1);
    }
  return (!(0));
}

./cc1 -quiet xgnokii_logos.3.i -O2 -g 
xgnokii_logos.3.i: In function 'DrawingAreaMotionNotifyEvent':
xgnokii_logos.3.i:48:1: internal compiler error: in add_stores, at
var-tracking.c:5415
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.opensuse.org/> for instructions.

reproducible with a cross to ia64-linux.


  parent reply	other threads:[~2010-11-09 11:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-09 11:00 [Bug rtl-optimization/46387] New: " rguenth at gcc dot gnu.org
2010-11-09 11:01 ` [Bug rtl-optimization/46387] " rguenth at gcc dot gnu.org
2010-11-09 11:35 ` rguenth at gcc dot gnu.org [this message]
2010-11-09 13:20 ` jakub at gcc dot gnu.org
2010-11-09 15:20 ` jakub at gcc dot gnu.org
2010-11-09 17:48 ` jakub at gcc dot gnu.org
2010-11-09 19:39 ` [Bug debug/46387] " jakub at gcc dot gnu.org
2010-11-15 12:40 ` rguenth at gcc dot gnu.org
2010-11-15 20:18 ` jakub at gcc dot gnu.org
2010-11-15 20:37 ` jakub at gcc dot gnu.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-46387-4-VVWPC5mnUB@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).