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

            Bug ID: 88638
           Summary: [9 Regression] FAIL: *string-format-1.* on darwin
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dominiq at lps dot ens.fr
                CC: iains at gcc dot gnu.org, msebor at gcc dot gnu.org
  Target Milestone: ---
              Host: x86_64-apple-darwin18
            Target: x86_64-apple-darwin18
             Build: x86_64-apple-darwin18

I now see the following failures on darwin

FAIL: gcc.dg/darwin-cfstring-format-1.c  (test for errors, line 18)
FAIL: gcc.dg/darwin-cfstring-format-1.c  (test for errors, line 21)
FAIL: gcc.dg/darwin-cfstring-format-1.c  (test for errors, line 26)
FAIL: gcc.dg/darwin-cfstring-format-1.c  (test for errors, line 27)
FAIL: gcc.dg/darwin-cfstring-format-1.c (test for excess errors)
FAIL: obj-c++.dg/fsf-nsstring-format-1.mm -fnext-runtime  (test for errors,
line 27)
FAIL: obj-c++.dg/fsf-nsstring-format-1.mm -fnext-runtime  (test for errors,
line 31)
FAIL: obj-c++.dg/fsf-nsstring-format-1.mm -fnext-runtime  (test for errors,
line 34)
FAIL: obj-c++.dg/fsf-nsstring-format-1.mm -fnext-runtime  (test for errors,
line 39)
FAIL: obj-c++.dg/fsf-nsstring-format-1.mm -fnext-runtime  (test for errors,
line 40)
FAIL: obj-c++.dg/fsf-nsstring-format-1.mm -fnext-runtime (test for excess
errors)
FAIL: objc.dg/fsf-nsstring-format-1.m -fnext-runtime  (test for errors, line
20)
FAIL: objc.dg/fsf-nsstring-format-1.m -fnext-runtime  (test for errors, line
24)
FAIL: objc.dg/fsf-nsstring-format-1.m -fnext-runtime  (test for errors, line
27)
FAIL: objc.dg/fsf-nsstring-format-1.m -fnext-runtime  (test for errors, line
32)
FAIL: objc.dg/fsf-nsstring-format-1.m -fnext-runtime  (test for errors, line
33)
FAIL: objc.dg/fsf-nsstring-format-1.m -fnext-runtime (test for excess errors)

Comparing

% /opt/gcc/gcc9p-266174p2/bin/gcc
/opt/gcc/_clean/gcc/testsuite/gcc.dg/darwin-cfstring-format-1.c -Wall
-fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers
-fdiagnostics-color=never
/opt/gcc/_clean/gcc/testsuite/gcc.dg/darwin-cfstring-format-1.c:18:1: error:
format string argument follows the args to be formatted
/opt/gcc/_clean/gcc/testsuite/gcc.dg/darwin-cfstring-format-1.c:20:1: error:
format argument should be a 'CFString' reference but a string was found
/opt/gcc/_clean/gcc/testsuite/gcc.dg/darwin-cfstring-format-1.c:21:1: error:
found a 'CFStringRef' {aka 'const struct __CFString *'} but the format argument
should be a string
/opt/gcc/_clean/gcc/testsuite/gcc.dg/darwin-cfstring-format-1.c:26:1: error:
format string argument is not a string type
/opt/gcc/_clean/gcc/testsuite/gcc.dg/darwin-cfstring-format-1.c:27:1: error:
function does not return string type
/opt/gcc/_clean/gcc/testsuite/gcc.dg/darwin-cfstring-format-1.c: In function
'foo':
/opt/gcc/_clean/gcc/testsuite/gcc.dg/darwin-cfstring-format-1.c:33:35: warning:
format '%s' expects argument of type 'char *', but argument 3 has type 'int'
[-Wformat=]
/opt/gcc/_clean/gcc/testsuite/gcc.dg/darwin-cfstring-format-1.c:33:10: warning:
too many arguments for format [-Wformat-extra-args]
/opt/gcc/_clean/gcc/testsuite/gcc.dg/darwin-cfstring-format-1.c:35:40: warning:
format '%s' expects argument of type 'char *', but argument 4 has type 'int'
[-Wformat=]

and

% /opt/gcc/gcc9p-266240p3/bin/gcc
/opt/gcc/_clean/gcc/testsuite/gcc.dg/darwin-cfstring-format-1.c -Wall
-fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers
-fdiagnostics-color=never
/opt/gcc/_clean/gcc/testsuite/gcc.dg/darwin-cfstring-format-1.c:15:1: warning:
'format' attribute argument 2 value '1' refers to parameter type 'CFStringRef'
{aka 'const struct __CFString *'} [-Wattributes]
/opt/gcc/_clean/gcc/testsuite/gcc.dg/darwin-cfstring-format-1.c:16:1: warning:
'format' attribute argument 2 value '2' refers to parameter type 'CFStringRef'
{aka 'const struct __CFString *'} [-Wattributes]
/opt/gcc/_clean/gcc/testsuite/gcc.dg/darwin-cfstring-format-1.c:18:1: warning:
'format' attribute argument 2 value '2' refers to parameter type 'CFStringRef'
{aka 'const struct __CFString *'} [-Wattributes]
/opt/gcc/_clean/gcc/testsuite/gcc.dg/darwin-cfstring-format-1.c:20:1: error:
format argument should be a 'CFString' reference but a string was found
/opt/gcc/_clean/gcc/testsuite/gcc.dg/darwin-cfstring-format-1.c:21:1: warning:
'format' attribute argument 2 value '1' refers to parameter type 'CFStringRef'
{aka 'const struct __CFString *'} [-Wattributes]
/opt/gcc/_clean/gcc/testsuite/gcc.dg/darwin-cfstring-format-1.c:24:1: warning:
'format_arg' attribute argument value '2' refers to parameter type
'CFStringRef' {aka 'const struct __CFString *'} [-Wattributes]
/opt/gcc/_clean/gcc/testsuite/gcc.dg/darwin-cfstring-format-1.c:26:1: warning:
'format_arg' attribute argument value '2' refers to parameter type 'void *'
[-Wattributes]
/opt/gcc/_clean/gcc/testsuite/gcc.dg/darwin-cfstring-format-1.c:27:1: warning:
'format_arg' attribute argument value '2' refers to parameter type
'CFStringRef' {aka 'const struct __CFString *'} [-Wattributes]
/opt/gcc/_clean/gcc/testsuite/gcc.dg/darwin-cfstring-format-1.c: In function
'foo':
/opt/gcc/_clean/gcc/testsuite/gcc.dg/darwin-cfstring-format-1.c:33:35: warning:
format '%s' expects argument of type 'char *', but argument 3 has type 'int'
[-Wformat=]
/opt/gcc/_clean/gcc/testsuite/gcc.dg/darwin-cfstring-format-1.c:33:10: warning:
too many arguments for format [-Wformat-extra-args]
/opt/gcc/_clean/gcc/testsuite/gcc.dg/darwin-cfstring-format-1.c:35:40: warning:
format '%s' expects argument of type 'char *', but argument 4 has type 'int'
[-Wformat=]

I see that errors have been changed to warnings, likely caused by r266195, is
this expected?

Reply via email to