http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36437
--- Comment #6 from Tobias Burnus <burnus at gcc dot gnu.org> 2010-12-20 11:02:27 UTC --- Created attachment 22829 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22829 Draft patch A different draft patch (I forgot about attachment 15721 - maybe one can move something over). This patch implements simplification for c_sizeof/sizeof and for storage_size. TODO: - The code (in target-memory.c) currently expects character literal strings or PARAMETERs and thus fails for character variables - There needs to be a "return NULL" for characters with only run-time known length. - Maybe some other return-early checks? - Presumably refs of the kind foo%bar(1)%blub(1:5)(1:2) are mishandled - Test cases are missing