From: SourceForge.net <no...@so...> - 2010-07-25 20:01:54
|
Bugs item #3034400, was opened at 2010-07-25 22:01 Message generated for change (Tracker Item Submitted) made by borutr You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3034400&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Icode generator Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Borut Ražem (borutr) Assigned to: Nobody/Anonymous (nobody) Summary: cannot use generic pointer to initialize <null> Initial Comment: sdcc throws the error: error 151: cannot use generic pointer to initialize <null> when compiling the following line: char * correct() { return (char __code *) 0x1234; } This bug is a side effect of fixing bug #3027957: "Subscript of pointer cast from const causes internal error." If I revert the change in SDCCgluec, function aopLiteralLong(), the line compiles without error. $ ../../sdcc.build/bin/sdcc -v SDCC : mcs51/gbz80/z80/ds390/pic16/pic14/TININative/ds400/hc08 2.9.7 #5890 (Jul 25 2010) (Linux) Borut ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3034400&group_id=599 |
From: SourceForge.net <no...@so...> - 2010-07-25 20:09:29
|
Bugs item #3034400, was opened at 2010-07-25 22:01 Message generated for change (Comment added) made by borutr You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3034400&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Icode generator Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Borut Ražem (borutr) Assigned to: Nobody/Anonymous (nobody) Summary: cannot use generic pointer to initialize <null> Initial Comment: sdcc throws the error: error 151: cannot use generic pointer to initialize <null> when compiling the following line: char * correct() { return (char __code *) 0x1234; } This bug is a side effect of fixing bug #3027957: "Subscript of pointer cast from const causes internal error." If I revert the change in SDCCgluec, function aopLiteralLong(), the line compiles without error. $ ../../sdcc.build/bin/sdcc -v SDCC : mcs51/gbz80/z80/ds390/pic16/pic14/TININative/ds400/hc08 2.9.7 #5890 (Jul 25 2010) (Linux) Borut ---------------------------------------------------------------------- >Comment By: Borut Ražem (borutr) Date: 2010-07-25 22:09 Message: Regression test for this bug is offsetof-bug.c in the patch #2801126: "__builtin_offsetof implementation" at https://sourceforge.net/tracker/index.php?func=detail&aid=2801126&group_id=599&atid=300599. When this bug is fixed, the regression test offsetof-bug.c should be included and #2801126 should be closed. Borut ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3034400&group_id=599 |
From: SourceForge.net <no...@so...> - 2010-08-02 20:05:07
|
Bugs item #3034400, was opened at 2010-07-25 22:01 Message generated for change (Comment added) made by maartenbrock You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3034400&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Icode generator >Group: fixed >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Borut Ražem (borutr) >Assigned to: Maarten Brock (maartenbrock) Summary: cannot use generic pointer to initialize <null> Initial Comment: sdcc throws the error: error 151: cannot use generic pointer to initialize <null> when compiling the following line: char * correct() { return (char __code *) 0x1234; } This bug is a side effect of fixing bug #3027957: "Subscript of pointer cast from const causes internal error." If I revert the change in SDCCgluec, function aopLiteralLong(), the line compiles without error. $ ../../sdcc.build/bin/sdcc -v SDCC : mcs51/gbz80/z80/ds390/pic16/pic14/TININative/ds400/hc08 2.9.7 #5890 (Jul 25 2010) (Linux) Borut ---------------------------------------------------------------------- >Comment By: Maarten Brock (maartenbrock) Date: 2010-08-02 22:05 Message: Fixed in SDCC 2.9.7 #5905. The error has been turned into a warning and moved from icode to ast level. ---------------------------------------------------------------------- Comment By: Borut Ražem (borutr) Date: 2010-07-25 22:09 Message: Regression test for this bug is offsetof-bug.c in the patch #2801126: "__builtin_offsetof implementation" at https://sourceforge.net/tracker/index.php?func=detail&aid=2801126&group_id=599&atid=300599. When this bug is fixed, the regression test offsetof-bug.c should be included and #2801126 should be closed. Borut ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3034400&group_id=599 |