public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Mike Frysinger" <vapier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sandbox:master commit in: /
Date: Sun, 20 Sep 2015 08:15:27 +0000 (UTC)	[thread overview]
Message-ID: <1442730758.5923bf16687481d275aa8d2e8ebaf4d9c5b32676.vapier@gentoo> (raw)

commit:     5923bf16687481d275aa8d2e8ebaf4d9c5b32676
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 20 06:32:38 2015 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Sun Sep 20 06:32:38 2015 +0000
URL:        https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=5923bf16

build: do not let gcc rewrite memory calls

We don't want gcc to rewrite malloc/memset calls to calloc as it
will make calloc recursively call itself.  Add other memory calls
just to be safe.

Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>

 configure.ac | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/configure.ac b/configure.ac
index 686ae4d..73227db 100644
--- a/configure.ac
+++ b/configure.ac
@@ -391,6 +391,10 @@ AC_DEFUN([SB_CHECK_CFLAG],[AX_CHECK_COMPILE_FLAG([$1],[CFLAGS="$CFLAGS $1"])])
 SB_CHECK_CFLAG([-Winvalid-pch])
 SB_CHECK_CFLAG([-fdata-sections])
 SB_CHECK_CFLAG([-ffunction-sections])
+dnl We have our own wrapped memory functions.
+SB_CHECK_CFLAG([-fno-builtin-calloc])
+SB_CHECK_CFLAG([-fno-builtin-malloc])
+SB_CHECK_CFLAG([-fno-builtin-realloc])
 AC_DEFUN([SB_CHECK_LDFLAG],[AX_CHECK_LINK_FLAG([-Wl,$1],[LDFLAGS="$LDFLAGS -Wl,$1"])])
 SB_CHECK_LDFLAG([--as-needed])
 SB_CHECK_LDFLAG([--gc-sections])


             reply	other threads:[~2015-09-20  8:15 UTC|newest]

Thread overview: 77+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-20  8:15 Mike Frysinger [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-23 20:11 [gentoo-commits] proj/sandbox:master commit in: / Mike Gilbert
2025-02-22 19:55 Mike Gilbert
2025-01-19 21:21 Mike Gilbert
2025-01-17 21:27 Mike Gilbert
2025-01-17 21:08 Mike Gilbert
2025-01-17 18:35 Mike Gilbert
2025-01-17 18:28 Mike Gilbert
2025-01-17 17:58 Mike Gilbert
2025-01-08  2:12 [gentoo-commits] proj/sandbox:stable-2.x " Mike Gilbert
2025-01-14  4:38 ` [gentoo-commits] proj/sandbox:master " Mike Gilbert
2024-12-22 19:19 [gentoo-commits] proj/sandbox:stable-2.x " Mike Gilbert
2025-01-14  4:38 ` [gentoo-commits] proj/sandbox:master " Mike Gilbert
2024-12-22  3:49 [gentoo-commits] proj/sandbox:stable-2.x " Mike Gilbert
2025-01-14  4:38 ` [gentoo-commits] proj/sandbox:master " Mike Gilbert
2024-11-04 19:27 [gentoo-commits] proj/sandbox:stable-2.x " Mike Gilbert
2025-01-14  4:38 ` [gentoo-commits] proj/sandbox:master " Mike Gilbert
2024-05-04 12:03 Sam James
2023-08-05  4:32 Sam James
2023-08-05  4:32 Sam James
2023-06-23 17:25 Mike Gilbert
2023-02-16 22:59 Sam James
2021-11-06  3:51 Mike Frysinger
2021-11-06  3:51 Mike Frysinger
2021-11-03  6:59 Mike Frysinger
2021-11-03  0:34 Mike Frysinger
2021-11-03  0:34 Mike Frysinger
2021-10-28  7:38 Mike Frysinger
2021-10-24  4:16 Mike Frysinger
2021-10-22 17:49 Mike Frysinger
2021-10-22  2:48 Mike Frysinger
2021-10-21 20:37 Mike Frysinger
2021-10-21  7:57 Mike Frysinger
2021-10-21  6:10 Michał Górny
2021-10-18  8:48 Mike Frysinger
2021-10-18  8:48 Mike Frysinger
2021-09-07 15:58 Michał Górny
2021-05-04 22:13 Sergei Trofimovich
2021-05-04  8:00 Sergei Trofimovich
2021-04-10 20:17 Sergei Trofimovich
2021-03-27 11:45 Sergei Trofimovich
2021-03-27 11:45 Sergei Trofimovich
2021-03-11  9:08 Michał Górny
2021-03-11  8:04 Sergei Trofimovich
2020-05-31 10:52 Michał Górny
2020-02-28  7:00 Michał Górny
2019-07-12  6:47 Sergei Trofimovich
2019-03-13 10:12 Andreas K. Hüttel
2019-03-13 10:12 Andreas K. Hüttel
2019-03-11 12:48 Andreas K. Hüttel
2019-03-09 19:21 Sergei Trofimovich
2019-01-13 11:39 Michał Górny
2019-01-09 13:45 Michał Górny
2018-12-02 15:28 Michał Górny
2017-10-03 21:24 Michał Górny
2016-03-29 12:24 Mike Frysinger
2015-12-20 21:12 Mike Frysinger
2015-12-20  8:41 Mike Frysinger
2015-12-20  8:41 Mike Frysinger
2015-12-19 18:10 Mike Frysinger
2015-09-27  6:30 Mike Frysinger
2015-09-27  6:30 Mike Frysinger
2015-09-20  8:16 Mike Frysinger
2015-09-20  8:15 Mike Frysinger
2015-09-20  8:15 Mike Frysinger
2015-09-20  8:15 Mike Frysinger
2015-09-11  7:53 Mike Frysinger
2012-11-26 10:10 Mike Frysinger
2012-11-17 19:16 Mike Frysinger
2012-11-17 19:16 Mike Frysinger
2012-11-17 19:16 Mike Frysinger
2012-07-03 19:42 Mike Frysinger
2012-07-03 19:41 Mike Frysinger
2012-06-23 23:12 Mike Frysinger
2012-06-23 21:36 Mike Frysinger
2012-06-23 21:36 Mike Frysinger
2012-03-06  5:17 Mike Frysinger
2012-03-05  7:01 Mike Frysinger
2011-02-14  6:19 Mike Frysinger
2011-02-14  6:19 Mike Frysinger
2011-02-14  6:19 Mike Frysinger

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=1442730758.5923bf16687481d275aa8d2e8ebaf4d9c5b32676.vapier@gentoo \
    --to=vapier@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.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