public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at physics dot uc dot edu" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/11767] different code behaviour with -fnon-call-exceptions -fprofile-arcs Date: Mon, 04 Aug 2003 23:37:00 -0000 [thread overview] Message-ID: <20030804233704.22992.qmail@sources.redhat.com> (raw) In-Reply-To: <20030801203357.11767.lothar@xcerla.com> PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11767 pinskia at physics dot uc dot edu changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|critical |normal Status|UNCONFIRMED |NEW Ever Confirmed| |1 Keywords| |wrong-code Last reconfirmed|0000-00-00 00:00:00 |2003-08-04 23:37:03 date| | Summary|different code behaviour |different code behaviour |with -fprofile-arcs -ftest- |with -fnon-call-exceptions - |coverage |fprofile-arcs ------- Additional Comments From pinskia at physics dot uc dot edu 2003-08-04 23:37 ------- Okay the problem is not per say with -fprofile-arcs -ftest-coverage but with -fnon-call- exceptions and -fprofile-arcs. I can confirm this on the mainline (20030804) Here is the reduced source but I could not remove the dependent on string: #include <string> typedef unsigned long ACE_UINT32; extern "C" void abort(); static ACE_UINT32 const msc_maxCurrencyID = 9999; class ResourceBalanceType2 { public: explicit ResourceBalanceType2( ACE_UINT32 resourceBalanceTypeID, ACE_UINT32 isoValue, const std::string& rc_shortName, const std::string& rc_symbol ); public: const ACE_UINT32 mc_resBalTypeID; const ACE_UINT32 mc_isoValue; const std::string mc_shortName; const std::string mc_symbol; }; void f(){} ResourceBalanceType2::ResourceBalanceType2( ACE_UINT32 resourceBalanceTypeID, ACE_UINT32 isoValue, const std::string& rc_shortName, const std::string& rc_symbol ): mc_resBalTypeID(resourceBalanceTypeID), mc_isoValue(isoValue), mc_shortName(rc_shortName), mc_symbol(rc_symbol) { bool isGreater = (mc_isoValue > msc_maxCurrencyID); f(); bool temp = mc_isoValue > msc_maxCurrencyID; if(!isGreater) abort(); if(!temp) abort(); } int main ( int argc, char * argv[] ) { ACE_UINT32 const mc_isoValue = 10000; ResourceBalanceType2 rbResourceBalanceType2(3, mc_isoValue, "ATM", "M"); }
next prev parent reply other threads:[~2003-08-04 23:37 UTC|newest] Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-08-01 20:33 [Bug c++/11767] New: different code behaviour with -fprofile-arcs -ftest-coverage lothar at xcerla dot com 2003-08-01 20:45 ` [Bug c++/11767] " lothar at xcerla dot com 2003-08-01 21:59 ` pinskia at physics dot uc dot edu 2003-08-03 14:14 ` pinskia at physics dot uc dot edu 2003-08-04 17:01 ` lothar at xcerla dot com 2003-08-04 17:10 ` lothar at xcerla dot com 2003-08-04 18:18 ` pinskia at physics dot uc dot edu 2003-08-04 21:37 ` lothar at xcerla dot com 2003-08-04 21:40 ` lothar at xcerla dot com 2003-08-04 23:37 ` pinskia at physics dot uc dot edu [this message] 2003-08-05 0:43 ` [Bug target/11767] different code behaviour with -fnon-call-exceptions -fprofile-arcs pinskia at physics dot uc dot edu 2003-08-05 1:51 ` lothar at xcerla dot com 2003-08-23 1:07 ` dhazeghi at yahoo dot com 2003-08-28 16:21 ` pinskia at gcc dot gnu dot org 2004-01-01 0:56 ` [Bug target/11767] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org 2004-03-02 23:39 ` [Bug target/11767] [3.3/3.4/3.5 " rth at gcc dot gnu dot org 2004-03-03 0:45 ` [Bug middle-end/11767] " cvs-commit at gcc dot gnu dot org 2004-03-03 0:46 ` cvs-commit at gcc dot gnu dot org 2004-03-03 0:48 ` cvs-commit at gcc dot gnu dot org 2004-03-03 0:54 ` rth at gcc dot gnu dot org 2004-03-04 7:50 ` cvs-commit 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=20030804233704.22992.qmail@sources.redhat.com \ --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: linkBe 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).