| ??? 01/10/11 03:26 Read: times |
#180490 - sdcc internal error / C syntax |
Hello,
I am getting an internal error from SDCC trying to compile some legacy code I'm trying to port from Keil to SDCC. lib/UART.C:79: error 9: FATAL Compiler Internal Error in file '/home/sdcc-builde r/build/sdcc-build/orig/sdcc/src/SDCCicode.c' line number '2865' : code generato r internal error Contact Author with source code Internal error: validateLink failed in DCL_TYPE(ptr) @ /home/sdcc-builder/build/ sdcc-build/orig/sdcc/src/SDCCicode.c:2813: expected DECLARATOR, got SPECIFIER The line in question, after all the macro expansions, is this ((unsigned char volatile __xdata *)0)[0x2503] |= 0x80; I know I expanded it right because substituting this line into the original file triggers the same error. The line looks like valid C to me... am I missing something? Thanks! |
| Topic | Author | Date |
| sdcc internal error / C syntax | 01/01/70 00:00 | |
| legality of indexing NULL pointer | 01/01/70 00:00 | |
| bug | 01/01/70 00:00 | |
| version | 01/01/70 00:00 | |
| version revisited | 01/01/70 00:00 | |
| thank you | 01/01/70 00:00 | |
| Fixed | 01/01/70 00:00 | |
| no snapshot | 01/01/70 00:00 | |
| works | 01/01/70 00:00 | |
| 0 is special - but so is NULL. indexing around NULL is bad | 01/01/70 00:00 | |
| No guarantee that a NULL pointer points to any memory | 01/01/70 00:00 | |
| time | 01/01/70 00:00 | |
| I know :-( | 01/01/70 00:00 | |
| Use of __at ? | 01/01/70 00:00 | |
| What is "that way"? | 01/01/70 00:00 | |
| the antique version.... | 01/01/70 00:00 | |
| XBYTE macro | 01/01/70 00:00 | |
| Okay, then the following definition... | 01/01/70 00:00 | |
| RE: David's remarks about volatility | 01/01/70 00:00 | |
| Close, but no cigar | 01/01/70 00:00 | |
| Avoid the 'volatile' | 01/01/70 00:00 | |
| instead of offsetting... | 01/01/70 00:00 | |
| Dereferencing a '_REG | 01/01/70 00:00 | |
I agree | 01/01/70 00:00 | |
| Use of __at ? [ed] | 01/01/70 00:00 |



