public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/11999] New: illegal instruction in libunwind-ia64.c
@ 2003-08-20 22:26 rscohnlkjh at netscape dot net
  2003-08-20 22:30 ` [Bug target/11999] " pinskia at gcc dot gnu dot org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: rscohnlkjh at netscape dot net @ 2003-08-20 22:26 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11999

           Summary: illegal instruction in libunwind-ia64.c
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rscohnlkjh at netscape dot net
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: ia64
GCC target triplet: ia64

There is an asm on line 2239 in gcc/config/ia64/libunwind-ia64.c that contains
the following instruction:
	"(p6) mov.i ar.fpsr = r30		\n\t"

The fpsr application register can only be referenced on the m unit and this
instruction attempts to reference it on the i unit. It would cause an illegal
instruction fault if it was executed. It should be:

"(p6) mov.m ar.fpsr = r30		\n\t"

See table 3.3 of the "Intel Itanium architecture software devloper's manual, vol 1"

I don't have a reproducer for this. The problem was found by a program that
inspects code, not by running a gcc compiled binary that executes the code.

Robert


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

end of thread, other threads:[~2004-05-28 20:30 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-20 22:26 [Bug c/11999] New: illegal instruction in libunwind-ia64.c rscohnlkjh at netscape dot net
2003-08-20 22:30 ` [Bug target/11999] " pinskia at gcc dot gnu dot org
2003-08-21 14:35 ` [Bug target/11999] illegal instruction in unwind-ia64.c pinskia at gcc dot gnu dot org
2003-08-22 18:59 ` rscohnlkjh at netscape dot net
2003-08-22 19:06 ` pinskia at gcc dot gnu dot org
2003-08-23  1:25 ` dhazeghi at yahoo dot com
2003-12-09 23:58 ` dhazeghi at yahoo dot com
2003-12-11  8:29 ` dhazeghi at yahoo dot com
2003-12-11  8:58 ` wilson at tuliptree dot org
2003-12-11  9:15 ` dhazeghi at yahoo dot com
2003-12-11 18:40 ` wilson at tuliptree dot org
2004-01-19 20:54 ` dhazeghi at yahoo dot com
2004-01-20 21:41 ` wilson at specifixinc dot com
2004-01-21  1:00 ` [Bug target/11999] [binutils bug] illegal instruction in unwind-ia64.c accepts by gas dhazeghi at yahoo dot com
2004-05-29 14:41 ` wilson at gcc dot gnu dot 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).