public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "ro at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug analyzer/102779] New: gcc.dg/analyzer/capacity-1.c etc.FAIL
Date: Fri, 15 Oct 2021 13:11:46 +0000	[thread overview]
Message-ID: <bug-102779-4@http.gcc.gnu.org/bugzilla/> (raw)

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.

             reply	other threads:[~2021-10-15 13:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-15 13:11 ro at gcc dot gnu.org [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-102779-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).