public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Wolfgang Bangerth <bangerth@ticam.utexas.edu> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, Subject: Re: c++/2182: -fpic flag gives: ICE instantiate_virtual_regs_1, at function.c:3897 Date: Thu, 21 Nov 2002 03:08:00 -0000 [thread overview] Message-ID: <20021114214603.4110.qmail@sources.redhat.com> (raw) The following reply was made to PR c++/2182; it has been noted by GNATS. From: Wolfgang Bangerth <bangerth@ticam.utexas.edu> To: gcc-gnats@gcc.gnu.org Cc: Subject: Re: c++/2182: -fpic flag gives: ICE instantiate_virtual_regs_1, at function.c:3897 Date: Thu, 14 Nov 2002 15:48:10 -0600 (CST) Here are 4 variations that generate various internal errors. Please don't ask me whether they make sense, I just tried to trim this down to a minimum and discovered that one can trigger more than one ICE. Some can be reproduced with a plain C compiler, at least one needs the C++ compiler. --------------1-------------------- void foo(unsigned char * destination, const unsigned char * Y, const unsigned char * Cb, const unsigned char * Cr, int width, int height, int stride) { static const unsigned short delta[] = {1}; static const short scale[] = {1}; asm volatile( "emms\n" : : "r" (destination), "r" (Cb), "r" (Cr), "r" (stride), "m" (delta) ); -----------------2-------------------- void foo(unsigned char * destination, const unsigned char * Y, const unsigned char * Cb, const unsigned char * Cr, int width, int height, int stride) { static const unsigned short delta[] = {1}; static const short scale[] = {1}; asm volatile( "emms\n" : : "r" (destination), "r" (Cb), "r" (Cr), "r" (stride), "m" (delta), "m" (scale) ); } -------------3-------------------------- void foo(unsigned char * destination, const unsigned char * Y, const unsigned char * Cb, const unsigned char * Cr, int width, int height, int stride) { static const unsigned short delta[] = {1}; static const short scale[] = {1}; asm volatile( "emms\n" : : "r" (destination), "r" (Cb), "r" (Cr), "r" (stride), "m" (delta), "m" (scale), "m" (width) ); } ------------4-------------------------- void foo(unsigned char * destination, const unsigned char * Y, const unsigned char * Cb, const unsigned char * Cr, int width, int height, int stride) { static const unsigned short delta[]; static const short scale[]; asm volatile( "emms\n" : : "r" (destination), "r" (Cb), "r" (Cr), "r" (stride), "m" (delta), "m" (scale), "m" (width) ); } ------------------------------------------------------------------------- Wolfgang Bangerth email: bangerth@ticam.utexas.edu www: http://www.ticam.utexas.edu/~bangerth
reply other threads:[~2002-11-14 21:46 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20021114214603.4110.qmail@sources.redhat.com \ --to=bangerth@ticam.utexas.edu \ --cc=gcc-prs@gcc.gnu.org \ --cc=nobody@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).