public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Andreas.Krakowczyk@fujitsu-siemens.com
To: gcc-gnats@gcc.gnu.org
Cc: Joachim.Canisius@fujitsu-siemens.com, Erwin.Unruh@fujitsu-siemens.com
Subject: optimization/3438: 'g++ -O2' fails, throw/catch with objects of type 'char'
Date: Wed, 27 Jun 2001 06:36:00 -0000	[thread overview]
Message-ID: <20010627133530.13817.qmail@sourceware.cygnus.com> (raw)

>Number:         3438
>Category:       optimization
>Synopsis:       'g++ -O2' fails, throw/catch with objects of type 'char'
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 27 06:36:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Andreas Krakowczyk
>Release:        gcc-3.0
>Organization:
>Environment:
sparc-sun-solaris2.8
>Description:
Test fails if compiled with option '-O2' and objects of type
'char', 'unsigned char', 'short', 'unsigned short'.
It passes with lower opimization and/or objects of type 'int'.
>How-To-Repeat:
g++ -O2 bug9.c && ./a.out
   or
for i in int short ushort char uchar; \
do g++ -O2 -DOBJTYPE="$i" bug9.c && ./a.out; done
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/x-unknown-content-type-c_auto_file; name="bug9.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bug9.c"

I2luY2x1ZGUgPHN0ZGlvLmg+Cgpib29sICBvazsKdm9pZCBkb190aHJvdyAodm9pZCk7CmJvb2wg
dGVzdCAgKGludCB6ZXJvID0gMCwgaW50IG9uZSA9IDEpOwp0eXBlZGVmICAgdW5zaWduZWQgc2hv
cnQgICAgICAgdXNob3J0OyAKdHlwZWRlZiAgIHVuc2lnbmVkIGNoYXIgICAgICAgIHVjaGFyOwoj
aWZuZGVmIE9CSlRZUEUKI2RlZmluZSBPQkpUWVBFIHNob3J0CQkvLyAnaW50JyB3b3JrcywgYnV0
ICdzaG9ydCcsICd1c2hvcnQnLCAnY2hhcicsIGFuZCAndWNoYXInIGZhaWxzCiNlbmRpZgojZGVm
aW5lIHNzKHgpICN4CiNkZWZpbmUgcyh4KSBzcyh4KQoKaW50IG1haW4gKGludCBhcmdjLCBjaGFy
ICphcmd2IFtdKQp7CiAgICBpZiAoISB0ZXN0KCkgICkgeyBwcmludGYgKCIlLTI0cyAlcywgJXNc
biIsIGFyZ3ZbMF0sICJGQUlMRUQiLCBzKE9CSlRZUEUpKTsgcmV0dXJuIDE7IH0KICAgIGVsc2Ug
ICAgICAgICAgICB7IHByaW50ZiAoIiUtMjRzICVzLCAlc1xuIiwgYXJndlswXSwgInBhc3NlZCIs
IHMoT0JKVFlQRSkpOyByZXR1cm4gMDsgfQp9CgpjbGFzcyBDOAp7CnB1YmxpYzoKICAgT0JKVFlQ
RSBvYmo7CiAgIEM4IChpbnQgemVybywgaW50IG9uZSkgeyBvYmogPSBvbmUgKyB6ZXJvOyB9CiAg
IHZvaWQgZiAoKSAgICAgICAgICAgICAgeyBvYmorKzsgfQogIH5DOCAoKSAgICAgICAgICAgICAg
ICAgIHsgb2sgID0gKG9iaiA9PSAxKTsgfQp9OwoKYm9vbCB0ZXN0IChpbnQgemVybywgaW50IG9u
ZSkKewogICBvayA9IDA7CiAgIHRyeQogICB7CiAgICAgIEM4IGM4ICh6ZXJvLCBvbmUpOwogICAg
ICBkb190aHJvdyAoKTsKICAgICAgYzguZiAoKTsKICAgfQoKICAgY2F0Y2ggKC4uLikgeyB9CiAg
IHJldHVybiAob2spOwp9Cgp2b2lkIGRvX3Rocm93ICgpIHsgdGhyb3cgImV4Y2VwdGlvbiI7IH0K


             reply	other threads:[~2001-06-27  6:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-27  6:36 Andreas.Krakowczyk [this message]
2001-11-13  6:56 rodrigc
2001-11-13  7:26 rodrigc

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=20010627133530.13817.qmail@sourceware.cygnus.com \
    --to=andreas.krakowczyk@fujitsu-siemens.com \
    --cc=Erwin.Unruh@fujitsu-siemens.com \
    --cc=Joachim.Canisius@fujitsu-siemens.com \
    --cc=gcc-gnats@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).