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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Jan Waclawek
05/27/09 16:43
Read: 311 times
Bratislava
Slovakia


 
#165637 - findings2
Responding to: Jan Waclawek'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      Matthias Arndt      05/27/09 11:51      
   a wild, wild guess      Erik Malund      05/27/09 12:04      
      I already tried a typecast      Matthias Arndt      05/27/09 12:07      
         Why not take this to the SDCC forum?      Richard Erlacher      05/27/09 13:01      
            Already considered this...      Matthias Arndt      05/27/09 14:06      
      another possibility which is easy to check if ...      Erik Malund      05/27/09 15:21      
         I assume so...      Matthias Arndt      05/27/09 15:40      
            findings      Jan Waclawek      05/27/09 16:18      
               findings2      Jan Waclawek      05/27/09 16:43      
                  Temporary fix      Matthias Arndt      05/28/09 11:08      
                     back to the drawing board...      Matthias Arndt      05/28/09 11:43      
                        it's much less for DATA      Jan Waclawek      05/28/09 16:29      
                  fix for --funsigned-char      Jan Waclawek      06/01/09 03:34      
                     I'd like to but...      Matthias Arndt      06/01/09 12:24      
                        how to patch      Jan Waclawek      06/01/09 15:35      
                           Patch worked but SDCC doesn't compile anymore...      Matthias Arndt      06/01/09 15:58      
                              HOW doesn't compile?      Jan Waclawek      06/01/09 16:07      
               Buffer cut      Matthias Arndt      05/27/09 16:45      
   not enough direct-addressable memory      Jan Waclawek      05/27/09 13:07      
      Nice idea but....      Matthias Arndt      05/27/09 14:04      
         I can try with the versions I have here...      Jan Waclawek      05/27/09 14:26      
            Sure, why not      Matthias Arndt      05/27/09 14:59      
   Solution found      Matthias Arndt      05/29/09 11:51      
   SDCC Linker problem with CMON51      Yathish Kumar.N.S      06/19/09 08:29      

Back to Subject List