[Sdcc-user] Dropping support for returning expression of type void?

2015-01-17 Thread Philipp Klaus Krause
Currently, when compiling using --std-sdcc89 or --std-sdcc99 (but not when using --std-c89, --std-c99 or --std-c11), sdcc allows functions with return type void to return expressions of type void. Example: void f1(void); void f2(void) { return(f1()); } In standard C, this is not allowed (unlik

[Sdcc-user] Dropping support for omitting integer promotion on arguments of vararg functions

2015-01-17 Thread Philipp Klaus Krause
Currently, when compiling using --std-sdcc89 or --std-sdcc99 (but not when using --std-c89, --std-c99 or --std-c11), sdcc does not do integer promotion on explicitly cast arguments to functions with variable arguments: void f1(int, ...); char c; void f2(void) { f1(0, (char)c); // Will pa

Re: [Sdcc-user] Dropping support for omitting integer promotion on arguments of vararg functions

2015-01-17 Thread Kustaa Nyholm
On 17/01/2015 19:03, "Philipp Klaus Krause" wrote: >Currently, when compiling using --std-sdcc89 or --std-sdcc99 (but not >when using --std-c89, --std-c99 or --std-c11), sdcc does not do integer >promotion on explicitly cast arguments to functions with variable >arguments: > >void f1(int, ...); >

Re: [Sdcc-user] Dropping support for returning expression of type void?

2015-01-17 Thread Kustaa Nyholm
On 17/01/2015 18:51, "Philipp Klaus Krause" wrote: >Currently, when compiling using --std-sdcc89 or --std-sdcc99 (but not >when using --std-c89, --std-c99 or --std-c11), sdcc allows functions >with return type void to return expressions of type void. Example: > >void f1(void); > >void f2(void) >{