public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Richard Earnshaw <rearnsha@cambridge.arm.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, Subject: Re: c/7873: arm-linux-gcc fails when assigning address to a bit field Date: Tue, 10 Sep 2002 02:56:00 -0000 [thread overview] Message-ID: <20020910095606.3384.qmail@sources.redhat.com> (raw) The following reply was made to PR c/7873; it has been noted by GNATS. From: Richard Earnshaw <rearnsha@cambridge.arm.com> To: alex.zatsman@analog.com Cc: gcc-gnats@gcc.gnu.org, debian-gcc@lists.debian.org, Richard.Earnshaw@arm.com Subject: Re: c/7873: arm-linux-gcc fails when assigning address to a bit field Date: Tue, 10 Sep 2002 10:50:50 +0100 > >How-To-Repeat: > > /** Run "arm-linux-gcc -c" on this preprocessed segment : **/ > > > unsigned int x0 = 0; > > typedef struct { > unsigned int field1 : 20; > unsigned int field2 : 12; > } XX; > > static XX yy; > > static void foo (void) > { > yy.field1 = (unsigned int ) (&x0); > } Please try the following patch: 2002-09-10 Richard Earnshaw <rearnsha@arm.com> * arm.md (insv): Use reg_or_int_operand for operand[3]. Index: arm.md =================================================================== RCS file: /cvs/gcc/gcc/gcc/config/arm/arm.md,v retrieving revision 1.104 diff -p -r1.104 arm.md *** arm.md 29 Jul 2002 12:41:46 -0000 1.104 --- arm.md 10 Sep 2002 09:44:07 -0000 *************** *** 1866,1872 **** [(set (zero_extract:SI (match_operand:SI 0 "s_register_operand" "") (match_operand:SI 1 "general_operand" "") (match_operand:SI 2 "general_operand" "")) ! (match_operand:SI 3 "nonmemory_operand" ""))] "TARGET_ARM" " { --- 1866,1872 ---- [(set (zero_extract:SI (match_operand:SI 0 "s_register_operand" "") (match_operand:SI 1 "general_operand" "") (match_operand:SI 2 "general_operand" "")) ! (match_operand:SI 3 "reg_or_int_operand" ""))] "TARGET_ARM" " {
next reply other threads:[~2002-09-10 9:56 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-09-10 2:56 Richard Earnshaw [this message] -- strict thread matches above, loose matches on Subject: below -- 2002-09-10 8:47 rearnsha 2002-09-09 15:26 alex.zatsman
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=20020910095606.3384.qmail@sources.redhat.com \ --to=rearnsha@cambridge.arm.com \ --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).