public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jifl-bugzilla at jifvik dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/20810] New: [ARM thumb] ICE with C++ bitsets in thumb mode Date: Thu, 07 Apr 2005 13:55:00 -0000 [thread overview] Message-ID: <20050407135452.20810.jifl-bugzilla@jifvik.org> (raw) Compile the following testcase with arm-elf-gcc 3.4.3 as follows: arm-elf-gcc -c -mcpu=arm7tdmi -O2 -mthumb bitset1.cxx With bitset1.cxx containing: #include <bitset> extern void check(void); // 64 works, 65 doesn't //#define N 64 #define N 65 int main( int argc, char *argv[] ) { typedef std::bitset<N> B; unsigned int i, j; B b1, b2; b2 = ~b1; if ( b2 != ~b1 ) ; b2.reset(); for ( i = j = 0; i < N; i++ ) { b2.set( j ); if ( i != b1.test(j) ) check(); j++; } b2 = ~b2; } The result is: bitset1.cxx: In function `int main(int, char**)': bitset1.cxx:27: error: insn does not satisfy its constraints: (insn:HI 472 471 473 5 (set (reg:SI 3 r3 [169]) (mem/s:SI (plus:SI (reg:SI 1 r1 [304]) (reg/f:SI 13 sp)) [7 <variable>._M_w S4 A32])) 126 {*thumb_movsi_insn} (nil) (expr_list:REG_EQUIV (mem/s:SI (plus:SI (reg:SI 1 r1 [304]) (reg/f:SI 13 sp)) [7 <variable>._M_w S4 A32]) (nil))) bitset1.cxx:27: internal compiler error: in reload_cse_simplify_operands, at postreload.c:391 Please submit a full bug report, with preprocessed source if appropriate. The testcase is a pared down fragment of a much larger function so it doesn't make much sense any more, but it still reproduces the ICE. I will attach the .ii file separately. -- Summary: [ARM thumb] ICE with C++ bitsets in thumb mode Product: gcc Version: 3.4.3 Status: UNCONFIRMED Severity: normal Priority: P2 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jifl-bugzilla at jifvik dot org CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: arm-elf http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20810
next reply other threads:[~2005-04-07 13:55 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-04-07 13:55 jifl-bugzilla at jifvik dot org [this message] 2005-04-07 13:56 ` [Bug target/20810] " jifl-bugzilla at jifvik dot org 2005-04-15 19:57 ` [Bug target/20810] ICE in reload_cse_simplify_operands, at postreload.c:391 belyshev at depni dot sinp dot msu dot ru
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=20050407135452.20810.jifl-bugzilla@jifvik.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: 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).