]> gcc.gnu.org Git - gcc.git/commit
c-common.c (format_wanted_type): Add reading_from_flag.
authorJoseph Myers <jsm28@cam.ac.uk>
Thu, 7 Dec 2000 07:40:45 +0000 (07:40 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Thu, 7 Dec 2000 07:40:45 +0000 (07:40 +0000)
commit014e7f1d30678868964dcfbeaef278736ff932f5
treeb240467cf5021de53c1a5fc93a3f6ef62f2878e3
parent8308e0b7867616fda51ec1bd82833702880e85f4
c-common.c (format_wanted_type): Add reading_from_flag.

* c-common.c (format_wanted_type): Add reading_from_flag.
(print_char_table): Mark %s and %S formats with flag "R".
(check_format_info_main): Set up reading_from_flag appropriately.
If aflag, always set writing_in_flag rather than relying on the
format used being a scanf format and so having it set.
(check_format_types): Check for formats reading through null
pointers.

testsuite:
* gcc.dg/c90-printf-1.c: Add test for printf formats reading
through a null pointer.

From-SVN: r38104
gcc/ChangeLog
gcc/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/c90-printf-1.c
This page took 0.066438 seconds and 5 git commands to generate.