diff options
author | Joseph Myers <jsm28@cam.ac.uk> | 2000-12-07 07:40:45 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2000-12-07 07:40:45 +0000 |
commit | 014e7f1d30678868964dcfbeaef278736ff932f5 (patch) | |
tree | b240467cf5021de53c1a5fc93a3f6ef62f2878e3 /libjava/java | |
parent | 8308e0b7867616fda51ec1bd82833702880e85f4 (diff) | |
download | gcc-014e7f1d30678868964dcfbeaef278736ff932f5.zip gcc-014e7f1d30678868964dcfbeaef278736ff932f5.tar.gz gcc-014e7f1d30678868964dcfbeaef278736ff932f5.tar.bz2 |
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
Diffstat (limited to 'libjava/java')
0 files changed, 0 insertions, 0 deletions