What I really don't like about the current behaviour of sdcc here is
that it breakss standard-conforming programs. There are two other
differences between standard C and the default dialect in sdcc, but
those just allow something that would be a syntax error in standard C.
But omitting integer promotions on arguments of vararg functions changes
the semantics.

How about having a way to pass unpromoted chars to vararg functions that
uses a different syntax? Maybe something like

f(x, __nopromote(c));

instead of

f(x, (char)c);

Philipp


Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to