[M3devel] CM3 problems

Jay K jay.krell at cornell.edu
Sun Aug 8 05:09:07 CEST 2010


Not very useful of me, but standard questions:


Is this your code?
Can we see it?
Is cm3cg current?
Can you try with optimization?
 -O1, -O2, -O3 cheating perhaps to use optimization  
   They should all generally work..though you should also generally never see such errors..
Tony might ask to see the IR via 
  rm -rf FreeBSD4  
  cm3 -keep   ordinarily the *.mc files are deleted  
  cm3cg -y FreeBSD4/Main.mc   (it goes to stderr not stdout)  
 or more accurately (at least for other purposes)  
  rm -rf FreeBSD4  

  cm3 -keep -commands  
  find the cm3cg command  
  cd FreBSD4 
  rerun cm3cg command but with -y added  



though I probably won't be able to glean anything from it.


Is cm3cg 4.3.0 or 4.3.5? I'm curious.
I upgraded is recently to 4.3.5.
  I don't know of any problems it fixed or caused.
cm3cg -v will tell you.


This is FreeBSD5/x86, right?
Can you try on any other machines? e.g. your Alpha?
eh. that's probably changing too much. x86 is by far the register-poorest.


Search the web for this error? Maybe it occurs using C as well with "similar" code?


 - Jay

----------------------------------------
> To: m3devel at elegosoft.com
> Date: Sat, 7 Aug 2010 19:51:30 -0700
> From: mika at async.async.caltech.edu
> Subject: [M3devel] CM3 problems
>
> With what I found in CVS today, I see the following for a program
> of mine I'm trying to compile:
>
>
> new source -> compiling Main.m3
> "../src/Main.m3", line 258: warning: potentially unhandled exception: Main.ParamErr
> "../src/Main.m3", line 260: warning: potentially unhandled exception: Main.ParamErr
> "../src/Main.m3", line 261: warning: potentially unhandled exception: Main.ParamErr
> 3 warnings encountered
> ../src/Main.m3: In function 'Main__DumpMatching__DumpOne':
> ../src/Main.m3:225: error: unable to find a register to spill in class 'CREG'
> ../src/Main.m3:225: error: this is the insn:
> (insn 5 4 6 2 ../src/Main.m3:204 (parallel [
> (set (reg:SI 112)
> (const_int 0 [0x0]))
> (set (reg:SI 110)
> (plus:SI (ashift:SI (reg:SI 112)
> (const_int 2 [0x2]))
> (reg:SI 110)))
> (set (reg:SI 111)
> (plus:SI (ashift:SI (reg:SI 112)
> (const_int 2 [0x2]))
> (reg:SI 111)))
> (set (mem/s/c:BLK (reg:SI 110) [0 M3_A91vEE_trade+0 S24 A64])
> (mem/s/c:BLK (reg:SI 111) [0 M3_A91vEE_trade+0 S24 A32]))
> (use (reg:SI 112))
> ]) 586 {*rep_movsi} (expr_list:REG_UNUSED (reg:SI 112)
> (expr_list:REG_UNUSED (reg:SI 111)
> (expr_list:REG_UNUSED (reg:SI 110)
> (nil)))))
> ../src/Main.m3:225: confused by earlier errors, bailing out
> m3_backend => 4
> m3cc (aka cm3cg) failed compiling: Main.mc
> compilation failed => not building program "ximport"
> Fatal Error: package build failed
>
> Any hints as to how to deal with this? I have optimization turned off.
>
> Mika
>
>
 		 	   		  


More information about the M3devel mailing list