From: Rod B. <ro...@bo...> - 2005-03-21 17:54:38
|
All, I have just discovered an interesting possible bug with the sdcc compiler. I have a file named te-st.c and when I try and compiler that file with the debug option I get the following error: [rod@celeron projects]$ sdcc --debug te-st.c ?ASxxxx-Error-<o> in line 113 of te-st.asm <o> .org in REL area or directive / mnemonic error ?ASxxxx-Error-<o> in line 127 of te-st.asm <o> .org in REL area or directive / mnemonic error ?ASxxxx-Error-<o> in line 132 of te-st.asm <o> .org in REL area or directive / mnemonic error ?ASxxxx-Error-<o> in line 140 of te-st.asm <o> .org in REL area or directive / mnemonic error ?ASxxxx-Error-<o> in line 149 of te-st.asm <o> .org in REL area or directive / mnemonic error ?ASxxxx-Error-<o> in line 155 of te-st.asm <o> .org in REL area or directive / mnemonic error ?ASxxxx-Error-<o> in line 158 of te-st.asm <o> .org in REL area or directive / mnemonic error removing te-st.rel When I look at the te-st.asm file at the first offending line I see the following: ;------------------------------------------------------------ G$main$0$0 ==. C$te-st.c$14$0$0 ==. <<< line 113 ;te-st.c:14: main( void ) ; ----------------------------------------- ; function main ; ----------------------------------------- _main: It would seen to me that the problem is the hyphen in the file name if I rename this file with and under-score I have no problem. I also have not seen any mention of this issue in the mailing list so I though I would mention it here if anybody wants me to fill in a bug report I would be happy to do so. But I not yet convinced that this is a bug just yet it is just something very odd that I have never seen before that may qualify it as a bug but I would like a second opinion first. Regards, Rod |