diff options
| author | domob <domob@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-07-22 17:05:55 +0000 |
|---|---|---|
| committer | domob <domob@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-07-22 17:05:55 +0000 |
| commit | cd18d5cd1a79220502f9ac670fbf025280f6b576 (patch) | |
| tree | 67b495422c086b17e39317d3339ecd1b1cfb0040 /gcc/gensupport.c | |
| parent | c2a9c40270625414ac9c30354107f261697d8405 (diff) | |
| download | ppe42-gcc-cd18d5cd1a79220502f9ac670fbf025280f6b576.tar.gz ppe42-gcc-cd18d5cd1a79220502f9ac670fbf025280f6b576.zip | |
2008-07-22 Daniel Kraft <d@domob.eu>
PR fortran/29835
* io.c (error_element), (format_locus): New static globals.
(unexpected_element): Spelled out this message fully.
(next_char): Keep track of locus when not MODE_STRING.
(next_char_not_space): Remember last parsed element in error_element.
(format_lex): Fix two indentation errors.
(check_format): Use format_locus and possibly error_element for a
slightly better error message on invalid format.
(check_format_string): Set format_locus to start of the string
expression used as format.
2008-07-22 Daniel Kraft <d@domob.eu>
PR fortran/29835
* io/format.c (struct format_data): New member error_element.
(unexpected_element): Added '%c' to message.
(next_char): Keep track of last parsed character in fmt->error_element.
(format_error): If the message is unexpected_element, output the
offending character, too.
2008-07-22 Daniel Kraft <d@domob.eu>
PR fortran/29835
* gfortran.dg/fmt_error_3.f90: New test.
* gfortran.dg/fmt_error_4.f90: New test.
* gfortran.dg/fmt_error_5.f90: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138063 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gensupport.c')
0 files changed, 0 insertions, 0 deletions

