public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/59946] -mpcrel -O2 produces illegal asm code
       [not found] <bug-59946-4@http.gcc.gnu.org/bugzilla/>
@ 2014-01-26 18:17 ` vincent.riviere at freesbee dot fr
  2014-01-26 19:51 ` mikpelinux at gmail dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: vincent.riviere at freesbee dot fr @ 2014-01-26 18:17 UTC (permalink / raw)
  To: gcc-bugs

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

Vincent Riviere <vincent.riviere at freesbee dot fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vincent.riviere at freesbee dot fr

--- Comment #1 from Vincent Riviere <vincent.riviere at freesbee dot fr> ---
Confirmed with the following compilers:

m68k-atari-mint-gcc 4.7.1
m68k-atari-mint-gcc 4.6.4
m68k-elf-gcc 4.5.2


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

* [Bug c/59946] -mpcrel -O2 produces illegal asm code
       [not found] <bug-59946-4@http.gcc.gnu.org/bugzilla/>
  2014-01-26 18:17 ` [Bug c/59946] -mpcrel -O2 produces illegal asm code vincent.riviere at freesbee dot fr
@ 2014-01-26 19:51 ` mikpelinux at gmail dot com
  2015-01-19 22:46 ` [Bug target/59946] " law at redhat dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: mikpelinux at gmail dot com @ 2014-01-26 19:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Mikael Pettersson <mikpelinux at gmail dot com> ---
Reproduced with m68k-elf and m68k-linux toolchains built from binutils-2.23.2
and gcc-4.9-20140119, 4.8.2, and 4.7.3.  Removing "-m68000" causes the ".l"
suffix to disappear and gas to accept the generated code.


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

* [Bug target/59946] -mpcrel -O2 produces illegal asm code
       [not found] <bug-59946-4@http.gcc.gnu.org/bugzilla/>
  2014-01-26 18:17 ` [Bug c/59946] -mpcrel -O2 produces illegal asm code vincent.riviere at freesbee dot fr
  2014-01-26 19:51 ` mikpelinux at gmail dot com
@ 2015-01-19 22:46 ` law at redhat dot com
  2015-01-20  1:59 ` law at redhat dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: law at redhat dot com @ 2015-01-19 22:46 UTC (permalink / raw)
  To: gcc-bugs

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

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-01-19
     Ever confirmed|0                           |1


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

* [Bug target/59946] -mpcrel -O2 produces illegal asm code
       [not found] <bug-59946-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2015-01-19 22:46 ` [Bug target/59946] " law at redhat dot com
@ 2015-01-20  1:59 ` law at redhat dot com
  2015-01-21  6:18 ` law at gcc dot gnu.org
  2015-01-21  6:19 ` law at redhat dot com
  5 siblings, 0 replies; 6+ messages in thread
From: law at redhat dot com @ 2015-01-20  1:59 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jeffrey A. Law <law at redhat dot com> ---
The m68000 does not support compare imm,pc-relative.  Sadly the various
comparison patterns play things fast and loose in terms of what order they emit
their operands.  That makes it nontrivial to write operand predicates and
constraints which would allow the PC-relative addresses.

I think the best solution is going to be to disallow pc-relative memory
addresses in the comparison patterns/expanders.


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

* [Bug target/59946] -mpcrel -O2 produces illegal asm code
       [not found] <bug-59946-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2015-01-20  1:59 ` law at redhat dot com
@ 2015-01-21  6:18 ` law at gcc dot gnu.org
  2015-01-21  6:19 ` law at redhat dot com
  5 siblings, 0 replies; 6+ messages in thread
From: law at gcc dot gnu.org @ 2015-01-21  6:18 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Author: law
Date: Wed Jan 21 06:17:50 2015
New Revision: 219927

URL: https://gcc.gnu.org/viewcvs?rev=219927&root=gcc&view=rev
Log:
2015-01-20  Jeff Law  <law@redhat.com>

    PR target/59946
    * config/m68k/m68k.md (Comparison expanders and patterns): Do not
    allow pc-relative addresses in operand predicates or constraints.

    PR target/59946
    * gcc.target/m68k/pr59946.c: New test.

Added:
    trunk/gcc/testsuite/gcc.target/m68k/pr59946.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/m68k/m68k.md
    trunk/gcc/testsuite/ChangeLog


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

* [Bug target/59946] -mpcrel -O2 produces illegal asm code
       [not found] <bug-59946-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2015-01-21  6:18 ` law at gcc dot gnu.org
@ 2015-01-21  6:19 ` law at redhat dot com
  5 siblings, 0 replies; 6+ messages in thread
From: law at redhat dot com @ 2015-01-21  6:19 UTC (permalink / raw)
  To: gcc-bugs

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

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Jeffrey A. Law <law at redhat dot com> ---
Fixed on trunk.  No plans to backport to any release branches.


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

end of thread, other threads:[~2015-01-21  6:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-59946-4@http.gcc.gnu.org/bugzilla/>
2014-01-26 18:17 ` [Bug c/59946] -mpcrel -O2 produces illegal asm code vincent.riviere at freesbee dot fr
2014-01-26 19:51 ` mikpelinux at gmail dot com
2015-01-19 22:46 ` [Bug target/59946] " law at redhat dot com
2015-01-20  1:59 ` law at redhat dot com
2015-01-21  6:18 ` law at gcc dot gnu.org
2015-01-21  6:19 ` law at redhat dot com

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