public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug analyzer/102779] New: gcc.dg/analyzer/capacity-1.c etc.FAIL
@ 2021-10-15 13:11 ro at gcc dot gnu.org
  2021-10-15 13:11 ` [Bug analyzer/102779] " ro at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: ro at gcc dot gnu.org @ 2021-10-15 13:11 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102779
           Summary: gcc.dg/analyzer/capacity-1.c etc.FAIL
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: analyzer
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: ro at gcc dot gnu.org
  Target Milestone: ---
            Target: *-*-solaris2.11, powerpc-ibm-aix7.2.3.0,
                    hppa*-hp-hpux11.11, avr-unknown-none

gcc.dg/analyzer/capacity-1.c and gcc.dg/analyzer/capacity-3.c have been FAILing
on several targets, apparently for the same reason:

FAIL: gcc.dg/analyzer/capacity-1.c (test for excess errors)

Excess errors:
/vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/analyzer/capacity-1.c:56:13:
warning: implicit declaration of function 'alloca'
[-Wimplicit-function-declaration]
/vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/analyzer/capacity-1.c:56:13:
warning: incompatible implicit declaration of built-in function 'alloca'
[-Wbuiltin-declaration-mismatch]

FAIL: gcc.dg/analyzer/capacity-3.c (test for excess errors)

Excess errors:
/vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/analyzer/capacity-3.c:7:13:
warning: implicit declaration of function 'alloca'
[-Wimplicit-function-declaration]
/vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/analyzer/capacity-3.c:7:13:
warning: incompatible implicit declaration of built-in function 'alloca'
[-Wbuiltin-declaration-mismatch]

Unlike Linux, regular system headers don't implicitly declare alloca.  E.g. on
Solaris one needs to include <alloca.h>.  I wonder how best to fix this: just
use __builtin_alloca directly like some tests do, or have

#define alloca __builtin_alloca

like gcc.dg/analyzer/pr93355-localealias.c.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-11-17 21:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-15 13:11 [Bug analyzer/102779] New: gcc.dg/analyzer/capacity-1.c etc.FAIL ro at gcc dot gnu.org
2021-10-15 13:11 ` [Bug analyzer/102779] " ro at gcc dot gnu.org
2021-11-15 23:25 ` dmalcolm at gcc dot gnu.org
2021-11-17  2:00 ` cvs-commit at gcc dot gnu.org
2021-11-17  2:06 ` dmalcolm at gcc dot gnu.org
2021-11-17 21:12 ` ro at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).