public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "tsv at solvo dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/20625] [4.0/4.1 regression] ivopts produces code that generates "unaligned access exception"
Date: Thu, 05 May 2005 19:07:00 -0000	[thread overview]
Message-ID: <20050505190717.15056.qmail@sourceware.org> (raw)
In-Reply-To: <20050324165328.20625.tsv@solvo.ru>


------- Additional Comments From tsv at solvo dot ru  2005-05-05 19:07 -------
gcc version 4.0.0 20050423 (Red Hat 4.0.0-2)

Here is another test case that generates unaligned access exception:

----------------------------------------
typedef union
{
   short i16;
   unsigned short u16;
   int i32;
   unsigned int u32;

   long i64;
   unsigned long u64;

   double dbl;
   unsigned char byt;
   char *str;
} DBusBasicValue;

void foo(void *p)
{
   DBusBasicValue *a;

   a = p;

   a->byt = 'a';
}

int main()
{
# include <asm/sysinfo.h>
# include <asm/unistd.h>
   unsigned int buf[2] =
     {
        SSIN_UACPROC, UAC_SIGBUS | UAC_NOPRINT
     };

   char buff[100];

   syscall(__NR_osf_setsysinfo, SSI_NVPAIRS, buf, 1, 0, 0, 0);

   foo(&buff[1]);
}
--------------------------------

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |


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


  parent reply	other threads:[~2005-05-05 19:07 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-24 16:53 [Bug c/20625] New: gcc with -O2 " tsv at solvo dot ru
2005-03-24 16:55 ` [Bug c/20625] " tsv at solvo dot ru
2005-03-24 16:57 ` tsv at solvo dot ru
2005-03-24 16:58 ` tsv at solvo dot ru
2005-03-24 17:08 ` [Bug target/20625] " pinskia at gcc dot gnu dot org
2005-03-29 13:04 ` [Bug target/20625] [4.0 regression] ivopts " falk at debian dot org
2005-03-29 13:12 ` falk at debian dot org
2005-03-29 20:03 ` [Bug target/20625] [4.0/4.1 " pinskia at gcc dot gnu dot org
2005-03-29 20:23 ` falk at debian dot org
2005-03-29 21:10 ` rakdver at atrey dot karlin dot mff dot cuni dot cz
2005-03-29 21:38 ` falk at debian dot org
2005-03-30  9:43 ` tsv at solvo dot ru
2005-04-01 20:00 ` rakdver at gcc dot gnu dot org
2005-04-04 23:14 ` mmitchel at gcc dot gnu dot org
2005-04-05 23:57 ` cvs-commit at gcc dot gnu dot org
2005-04-06  0:33 ` cvs-commit at gcc dot gnu dot org
2005-04-07 21:00 ` pinskia at gcc dot gnu dot org
2005-05-05 19:07 ` tsv at solvo dot ru [this message]
2005-05-05 19:10 ` pinskia at gcc dot gnu dot org
2005-05-05 19:16 ` tsv at solvo dot ru
2005-05-05 19:22 ` pinskia at gcc dot gnu dot org
2005-05-05 20:03 ` tsv at solvo dot ru
2005-05-05 20:05   ` Andrew Pinski
2005-05-05 20:06 ` pinskia at physics dot uc dot edu
2005-05-11 20:39 ` tsv at solvo dot ru
2005-05-17 14:07 ` falk at debian 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=20050505190717.15056.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).