Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/27/09 21:43
Read: times


 
#165637 - findings2
Responding to: ???'s previous message
I know I should be posting a bug on SDCC's tracker with this, but 1. I am lazy, and this Forum is WAY easier to use ;-) 2. I don't know how relevant this might be, given the OS I run here is a venerable W98SE; 3. most of the '51-related SDCC folks are quite regular here (including cmon's author).

When trying to compile cmon on today's flavour of SDCC : 2.9.1 #5464 (May 27 2009) (MINGW32), I got (mainly in cmon51.c)

  • a lot of "comparison of 'signed char' with 'unsigned char' requires promotion to int" warnings
  • "error 10: 'lvalue' required for '=' operation" -- on the following "true-C" statement: ++k&=7;
    (OK this IS naughty, but is this supposed to be an error by C standard?)
  • "error 78: incompatible types [etc]" - some pointer type mismatch
  • some other "unimportant" warning


I fixed the errors, and then I thought I will fix all the "signed/unsigned char" problems by using the --funsigned-char switch. But when run on cmon51.c with this switch, the "command" window (with "SDCPP" label) froze (and had to be "killed", as "not responding"), with the following message: "Internal error: validateLink failed in SPEC_NOUN((yyvsp[(1) - (2)].lnk)) @ /home/sdcc-builder/build/sdcc-build/orig/sdcc/src/SDCC.y:1297: expected SPECIFIER, got DECLARATOR"

JW


List of 24 messages in thread
TopicAuthorDate
SDCC Linker problem with CMON51            01/01/70 00:00      
   a wild, wild guess            01/01/70 00:00      
      I already tried a typecast            01/01/70 00:00      
         Why not take this to the SDCC forum?            01/01/70 00:00      
            Already considered this...            01/01/70 00:00      
      another possibility which is easy to check if ...            01/01/70 00:00      
         I assume so...            01/01/70 00:00      
            findings            01/01/70 00:00      
               findings2            01/01/70 00:00      
                  Temporary fix            01/01/70 00:00      
                     back to the drawing board...            01/01/70 00:00      
                        it's much less for DATA            01/01/70 00:00      
                  fix for --funsigned-char            01/01/70 00:00      
                     I'd like to but...            01/01/70 00:00      
                        how to patch            01/01/70 00:00      
                           Patch worked but SDCC doesn't compile anymore...            01/01/70 00:00      
                              HOW doesn't compile?            01/01/70 00:00      
               Buffer cut            01/01/70 00:00      
   not enough direct-addressable memory            01/01/70 00:00      
      Nice idea but....            01/01/70 00:00      
         I can try with the versions I have here...            01/01/70 00:00      
            Sure, why not            01/01/70 00:00      
   Solution found            01/01/70 00:00      
   SDCC Linker problem with CMON51            01/01/70 00:00      

Back to Subject List