https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52952

--- Comment #38 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
Author: manu
Date: Thu May 21 06:49:38 2015
New Revision: 223470

URL: https://gcc.gnu.org/viewcvs?rev=223470&root=gcc&view=rev
Log:
gcc/testsuite/ChangeLog:

2015-05-21  Manuel López-Ibáñez  <m...@gcc.gnu.org>

        PR c/52952
        * gcc.dg/redecl-4.c: Update column numbers.
        * gcc.dg/format/bitfld-1.c: Likewise.
        * gcc.dg/format/attr-2.c: Likewise.
        * gcc.dg/format/attr-6.c: Likewise.
        * gcc.dg/format/attr-7.c (baz): Likewise.
        * gcc.dg/format/asm_fprintf-1.c: Likewise.
        * gcc.dg/format/attr-4.c: Likewise.
        * gcc.dg/format/branch-1.c: Likewise.
        * gcc.dg/format/c90-printf-1.c: Likewise. Add tests for column
        locations within strings with embedded escape sequences.

gcc/c-family/ChangeLog:

2015-05-21  Manuel López-Ibáñez  <m...@gcc.gnu.org>

        PR c/52952
        * c-format.c (location_column_from_byte_offset): New.
        (location_from_offset): New.
        (struct format_wanted_type): Add offset_loc field.
        (check_format_info): Move handling of location for extra arguments
        closer to the point of warning.
        (check_format_info_main): Pass the result of location_from_offset
        to warning_at.
        (format_type_warning): Pass the result of location_from_offset
        to warning_at.


Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-format.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/format/asm_fprintf-1.c
    trunk/gcc/testsuite/gcc.dg/format/attr-2.c
    trunk/gcc/testsuite/gcc.dg/format/attr-4.c
    trunk/gcc/testsuite/gcc.dg/format/attr-6.c
    trunk/gcc/testsuite/gcc.dg/format/attr-7.c
    trunk/gcc/testsuite/gcc.dg/format/bitfld-1.c
    trunk/gcc/testsuite/gcc.dg/format/branch-1.c
    trunk/gcc/testsuite/gcc.dg/format/c90-printf-1.c
    trunk/gcc/testsuite/gcc.dg/redecl-4.c

Reply via email to