Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-6]: src/external/gpl3/gcc/dist/gcc/config/m68k Pull up following ...



details:   https://anonhg.NetBSD.org/src/rev/b931da6dd047
branches:  netbsd-6
changeset: 774059:b931da6dd047
user:      riz <riz%NetBSD.org@localhost>
date:      Mon May 07 16:30:19 2012 +0000

description:
Pull up following revision(s) (requested by christos in ticket #219):
        external/gpl3/gcc/dist/gcc/config/m68k/constraints.md: revision 1.2
Bring in fix from:
http://gcc.gnu.org/bugzilla/show_bug.cgi?format=multiple&id=43804
Allows libmudflap to compile on m68k:
/usr/src/external/gpl3/gcc/dist/libmudflap/mf-hooks1.c: In function
'__mf_wrap_alloca_indirect':
/usr/src/external/gpl3/gcc/dist/libmudflap/mf-hooks1.c:492:1: error:
insn does not satisfy its constraints:
(insn 360 142 68 13
/usr/src/external/gpl3/gcc/dist/libmudflap/mf-impl.h:257 (set (reg/f:SI
6 %d6 [159])
        (const:SI (unspec:SI [
                    (symbol_ref:SI ("__mf_state_1") [flags 0x50]
<var_decl 0x7f7ff7304d20 __mf_state_1>)
                     (const_int 1 [0x1])
                 ] 6))) 36 {*movsi_m68k}
(nil))/usr/src/external/gpl3/gcc/dist/libmudflap/mf-hooks1.c:492:1:
internal compiler error: in reload_cse_simplify_operands, at postreload.c:396

diffstat:

 external/gpl3/gcc/dist/gcc/config/m68k/constraints.md |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 8931030756e1 -r b931da6dd047 external/gpl3/gcc/dist/gcc/config/m68k/constraints.md
--- a/external/gpl3/gcc/dist/gcc/config/m68k/constraints.md     Mon May 07 16:28:42 2012 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/m68k/constraints.md     Mon May 07 16:30:19 2012 +0000
@@ -94,7 +94,8 @@
 (define_constraint "T"
   "Used for operands that satisfy 's' when -mpcrel is not in effect."
   (and (match_code "symbol_ref,label_ref,const")
-       (match_test "!flag_pic")))
+       (match_test "!TARGET_PCREL")
+       (match_test "!flag_pic || LEGITIMATE_PIC_OPERAND_P (op)")))
 
 (define_memory_constraint "Q"
   "Means address register indirect addressing mode."



Home | Main Index | Thread Index | Old Index