public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/64009] New: ICE when compiling pr48335-2.c with armeb-linux-gnueabi-gcc
@ 2014-11-21  2:18 chenshanyaoboy at gmail dot com
  2014-11-21  2:33 ` [Bug target/64009] " pinskia at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: chenshanyaoboy at gmail dot com @ 2014-11-21  2:18 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64009

            Bug ID: 64009
           Summary: ICE when compiling pr48335-2.c with
                    armeb-linux-gnueabi-gcc
           Product: gcc
           Version: 4.9.3
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: chenshanyaoboy at gmail dot com

armeb-linux-gnueabi-gcc -c -O2  testsuite/gcc.dg/pr48335-2.c 
pr48335-2.c: In function 'f5':
pr48335-2.c:58:1: error: unrecognizable insn:
 }
 ^
(insn 8 7 9 2 (set (zero_extract:SI (subreg:SI (reg/v:SF 112 [ s+4 ]) 0)
            (const_int 16 [0x10])
            (const_int -8 [0xfffffffffffffff8]))
        (reg/v:SI 113 [ x ])) pr48335-2.c:55 -1
     (nil))
pr48335-2.c:58:1: internal compiler error: in extract_insn, at recog.c:2202

small example extracted from pr48335-2.c
cat ice.c

typedef short U __attribute__((may_alias, aligned (1)));

struct S
{
  _Complex float d __attribute__((aligned (8)));
};

void bar(struct S);

void f5 (int x)
{
  struct S s = { .d = 0.0f };
  ((U *)((char *) &s.d + 1))[3] = x;
  __real__ s.d *= 7.0;
  bar (s);
}

This ICE just happened in big-endian mode, it's ok  in little-endian.
aarch64 also have the same problem, when using aarch64-linux-gnu-gcc, it
reported:
aarch64-linux-gnu-gcc -w -c -O1 ice.c -mbig-endian
/tmp/cc9vId7S.s: Assembler messages:
/tmp/cc9vId7S.s:12: Error: immediate value out of range 0 to 31 at operand 3 --
`bfi w1,w0,-8,16'


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/64009] ICE when compiling pr48335-2.c with armeb-linux-gnueabi-gcc
  2014-11-21  2:18 [Bug target/64009] New: ICE when compiling pr48335-2.c with armeb-linux-gnueabi-gcc chenshanyaoboy at gmail dot com
@ 2014-11-21  2:33 ` pinskia at gcc dot gnu.org
  2014-11-21  3:52 ` chenshanyaoboy at gmail dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2014-11-21  2:33 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64009

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |normal

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>aarch64 also have the same problem

Please file that separately since it is a different issue as it is a different
target.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/64009] ICE when compiling pr48335-2.c with armeb-linux-gnueabi-gcc
  2014-11-21  2:18 [Bug target/64009] New: ICE when compiling pr48335-2.c with armeb-linux-gnueabi-gcc chenshanyaoboy at gmail dot com
  2014-11-21  2:33 ` [Bug target/64009] " pinskia at gcc dot gnu.org
@ 2014-11-21  3:52 ` chenshanyaoboy at gmail dot com
  2014-11-27 14:38 ` ramana at gcc dot gnu.org
  2024-03-15 22:04 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: chenshanyaoboy at gmail dot com @ 2014-11-21  3:52 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64009

--- Comment #2 from Shanyao Chen <chenshanyaoboy at gmail dot com> ---
ok, aarch64 target has reported on
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64011

(In reply to Andrew Pinski from comment #1)
> >aarch64 also have the same problem

Please file that separately since it is a different issue as it is a different
target.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/64009] ICE when compiling pr48335-2.c with armeb-linux-gnueabi-gcc
  2014-11-21  2:18 [Bug target/64009] New: ICE when compiling pr48335-2.c with armeb-linux-gnueabi-gcc chenshanyaoboy at gmail dot com
  2014-11-21  2:33 ` [Bug target/64009] " pinskia at gcc dot gnu.org
  2014-11-21  3:52 ` chenshanyaoboy at gmail dot com
@ 2014-11-27 14:38 ` ramana at gcc dot gnu.org
  2024-03-15 22:04 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: ramana at gcc dot gnu.org @ 2014-11-27 14:38 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64009

Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-11-27
                 CC|                            |ramana at gcc dot gnu.org
     Ever confirmed|0                           |1
      Known to fail|                            |5.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/64009] ICE when compiling pr48335-2.c with armeb-linux-gnueabi-gcc
  2014-11-21  2:18 [Bug target/64009] New: ICE when compiling pr48335-2.c with armeb-linux-gnueabi-gcc chenshanyaoboy at gmail dot com
                   ` (2 preceding siblings ...)
  2014-11-27 14:38 ` ramana at gcc dot gnu.org
@ 2024-03-15 22:04 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-15 22:04 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64009

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |5.0
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-03-15 22:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-21  2:18 [Bug target/64009] New: ICE when compiling pr48335-2.c with armeb-linux-gnueabi-gcc chenshanyaoboy at gmail dot com
2014-11-21  2:33 ` [Bug target/64009] " pinskia at gcc dot gnu.org
2014-11-21  3:52 ` chenshanyaoboy at gmail dot com
2014-11-27 14:38 ` ramana at gcc dot gnu.org
2024-03-15 22:04 ` pinskia at gcc dot gnu.org

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).