public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/13749] New: Internal compiler error when cross-compiling C code for IP2K processor
@ 2004-01-19 21:21 ryan at radialink dot net
  2004-01-19 22:46 ` [Bug target/13749] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ryan at radialink dot net @ 2004-01-19 21:21 UTC (permalink / raw)
  To: gcc-bugs

I'm getting the following error when trying to cross compile some code for the
IP2K processor.  I'm currently using ip2k-elf-gcc version 3.3.3 20040105, but
the problem also occurred for 3.3.2.  I'm running Mandrake Linux 9.2 Download
Edition, but I don't have the latest Mandrake updates.  GCC was configured with
the following options:
--prefix=/radialink1/ip2ktools --host=i686-pc-linux-gnu --target=ip2k-elf 

I'm compiling this file using these options:
-Wall -g -I. -I../apps/httpd -I../apps/resolv -I../apps/webclient -I../apps/smtp
 -I../apps/telnet -I /radialink1/ip2ktools/lib/gcc-lib/ip2k-elf/3.3.3/include -I
/radialink1/ip2ktools/lib/gcc-lib/ip2k-elf/3.3.3/src -fpack-struct -nodefaultlibs

This is the error message in its entirety(line 1496 in uip.c corresponds with
line 1304 of the preprocessed source):
uip.c:1496: error: insn does not satisfy its constraints:
(insn 14 2435 15 0x40204790 (set (cc0)
        (compare (mem/f:QI (plus:HI (reg:HI 4 iph)
                    (const_int 4 [0x4])) [0 flag+0 S1 A8])
            (const_int 2 [0x2]))) 135 {cmpqi} (nil)
    (nil))
uip.c:1496: internal compiler error: in final_scan_insn, at final.c:2722

I did manage to find that changing the machine description file(ip2k.md)
slightly would eliminate this error.  However, I have no idea if this change
will cause the compiler to produce valid code.  I should have a board to test on
by this week, so I'll post a follow up once I've determined if this change fixes
anything:
ip2k.md line 4690: (compare (match_operand:QI 0 "nonimmediate_operand" "roR, rS")
change to: (compare (match_operand:QI 0 "nonimmediate_operand" "rmR,  rS")

I also got a similar bug in a different source file that I ended up not needing.
 That error came in insn tstqi(this bug is in cmpqi).  The problems may be
related, but currently they don't effect me and I can't produce a source file
that will compile(this source file depended on Linux-specific libraries that are
not present when compiling for the IP2K.

Here's the preprocessed source of uip.c(uuencoded and compressed with bzip2)
begin 644 uip.i.bz2
M0EIH.3%!62936>%Q1VD`"_[[@']\0`![?___@`J_[___8!:^>#H`/N;O7>2W
MLP]<<M[IR=UYJX>TUFL]X`/<;AJ<D\HD5HNW2V;MHTK00=86=7=3@TT$T$`I
MZFA)Y3U`>HT&@&0T```D31(1%,C`GJ80Q-`-&30:!HT`',`1@F(!@$P31D-#
M`)@C$PDTB2$*:1IZ@'J!Z31ZAIH`:`#0-`A2B)A-$TG@GI2?DFIZ>J:&0,AD
M`#30")(2:$VA/5--/4])J/(U&B:&AZGJ#0-`&F]7ZRZDPE>T9$TA`(D+!,59
M8`,%B60&@!()"(F$BD!&!(,($/^?/[K^(<E@H87#,+9,%2CB8GM9NNF6)4S"
MF"(XU1`63FR_8RR#KQSCML<JVHRJ;<:E<<H6V48J@LUHM*U*6*QC#8T<0I:O
M3D'*C1-C:E+*%2'?=798GM%C8#;K-LP[NB2G3;=3,@[.Q%(]7I)G$U*]8V,+
M$8KMDT0$1B"GV?G[L[:(Q\)8'7?`Q6RBU'*M&Y>MH:PUF8A9B"E8S*9EE3$@
MJUKV@=BFO"G*8IB5M<S,M5(HB)52U,$-CNK.C,C\=W(JI4ZRHHCB+UCSM4^3
MOY3S[R3OL:"@J@*")65I<I23(QD4%%\'DM,G,JR;$VI8B,6(U"C!BUHK+;G,
M(8Q5)5?*)JL76HC!0K1*"Q.FHV8E</3KF$6#\137'EH[8*3U)O9E2_-<$P5@
MJ,7]O/:E!:Y,1:3FM6VQD')%4$PAWQ#NB`W?FDIEXQK*BTE+2@M.DBFDADFE
MD`U2.PF2,D'643)2:D6/UBS&4>FY=0ML("P)K)"M)!VO.>PZ75'YL]?JL7F]
M!VPKN3ZO-,^MO)Y]5)MF03],_4];58/%85:*M;,>P;`#(^`_3<(""B`^#A*/
MHTG-1R<BJ?OGI8>07-4N=EA`;%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7`-S=CVAS+=MM
M`M4!J0(`5"0AAL0BC0H")7LA-PIW&5[Q$3]X(*`-M4UNUR:C\-/2*/8@2!G,
M_W_H>FWRAI@K:-VRZG'*99\S7O9BTJ.J23+2W]JC1J\XS^W-BQ8L)Q%V.(HH
MN.+)W[<X913;&_^UWW"^6I=,:Z6/>'G@4D7RTC54=U-`Y!]&B@Z=1YUM8O""
MQ6=)S*7+%X:%W)V;IL<G0!B;12-B11*D@!2*Q,2!ANM]OT(W[#4/:GR@GF'K
M+A5"6A.@W\5\6X?`(10+[29$#PF@.HV41'^BR\]QT#V<5/M`2@`V!\5!D=H&
MH/X]RJ.\9I_F!50@[_''ME.T7$M0H5LBI)1)8+#NZ1B#392-&-V:DLN%+`\#
-&4?^+N2*<*$APN*.T@``
`
end

-- 
           Summary: Internal compiler error when cross-compiling C code for
                    IP2K processor
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ryan at radialink dot net
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: Mandrake Linux 9.2
GCC target triplet: Ubicom IP2K processor


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


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

* [Bug target/13749] Internal compiler error when cross-compiling C code for IP2K processor
  2004-01-19 21:21 [Bug c/13749] New: Internal compiler error when cross-compiling C code for IP2K processor ryan at radialink dot net
@ 2004-01-19 22:46 ` pinskia at gcc dot gnu dot org
  2004-01-20  0:25 ` dhazeghi at yahoo dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-19 22:46 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |target
           Keywords|                            |ice-on-valid-code


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


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

* [Bug target/13749] Internal compiler error when cross-compiling C code for IP2K processor
  2004-01-19 21:21 [Bug c/13749] New: Internal compiler error when cross-compiling C code for IP2K processor ryan at radialink dot net
  2004-01-19 22:46 ` [Bug target/13749] " pinskia at gcc dot gnu dot org
@ 2004-01-20  0:25 ` dhazeghi at yahoo dot com
  2004-01-20  0:27 ` dhazeghi at yahoo dot com
  2005-07-20  6:44 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: dhazeghi at yahoo dot com @ 2004-01-20  0:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dhazeghi at yahoo dot com  2004-01-20 00:25 -------
Created an attachment (id=5528)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5528&action=view)
testcase


-- 


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


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

* [Bug target/13749] Internal compiler error when cross-compiling C code for IP2K processor
  2004-01-19 21:21 [Bug c/13749] New: Internal compiler error when cross-compiling C code for IP2K processor ryan at radialink dot net
  2004-01-19 22:46 ` [Bug target/13749] " pinskia at gcc dot gnu dot org
  2004-01-20  0:25 ` dhazeghi at yahoo dot com
@ 2004-01-20  0:27 ` dhazeghi at yahoo dot com
  2005-07-20  6:44 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: dhazeghi at yahoo dot com @ 2004-01-20  0:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dhazeghi at yahoo dot com  2004-01-20 00:27 -------
Confirmed with current (3.3,3.4) branch and mainline.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-01-20 00:27:34
               date|                            |


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


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

* [Bug target/13749] Internal compiler error when cross-compiling C code for IP2K processor
  2004-01-19 21:21 [Bug c/13749] New: Internal compiler error when cross-compiling C code for IP2K processor ryan at radialink dot net
                   ` (2 preceding siblings ...)
  2004-01-20  0:27 ` dhazeghi at yahoo dot com
@ 2005-07-20  6:44 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-20  6:44 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-20 06:44 -------
Closing as will not fix as this target has been removed from the mainline for 4.1.0.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX
   Target Milestone|---                         |4.1.0


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


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

end of thread, other threads:[~2005-07-20  6:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-19 21:21 [Bug c/13749] New: Internal compiler error when cross-compiling C code for IP2K processor ryan at radialink dot net
2004-01-19 22:46 ` [Bug target/13749] " pinskia at gcc dot gnu dot org
2004-01-20  0:25 ` dhazeghi at yahoo dot com
2004-01-20  0:27 ` dhazeghi at yahoo dot com
2005-07-20  6:44 ` pinskia 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).