public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug gcov-profile/99406] New: [11 regression] MAP_ANONYMOUS undeclared in libgcov.h
@ 2021-03-05 13:32 ro at gcc dot gnu.org
  2021-03-05 13:33 ` [Bug gcov-profile/99406] " ro at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: ro at gcc dot gnu.org @ 2021-03-05 13:32 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99406
           Summary: [11 regression] MAP_ANONYMOUS undeclared in libgcov.h
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: gcov-profile
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ro at gcc dot gnu.org
                CC: iains at gcc dot gnu.org, marxin at gcc dot gnu.org
  Target Milestone: ---
            Target: *-apple-darwin11

The unconditional use of MAP_ANONYMOUS in libgcov.h broke Mac OS X 10.7/Darwin
11
bootstrap:

In file included from /vol/gcc/src/hg/master/darwin/libgcc/libgcov-merge.c:26:
/vol/gcc/src/hg/master/darwin/libgcc/libgcov.h: In function 'malloc_mmap':
In file included from /vol/gcc/src/hg/master/darwin/libgcc/libgcov-merge.c:26:
/vol/gcc/src/hg/master/darwin/libgcc/libgcov.h: In function 'malloc_mmap':
/vol/gcc/src/hg/master/darwin/libgcc/libgcov.h:420:30: error: 'MAP_ANONYMOUS'
undeclared (first use in this function); did you mean 'MAP_ANON'?
  420 |                MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
      |                              ^~~~~~~~~~~~~
      |                              MAP_ANON
/vol/gcc/src/hg/master/darwin/libgcc/libgcov.h:420:30: note: each undeclared
identifier is reported only once for each function it appears in

I haven't checked which macOS version introduced MAP_ANONYMOUS as alias for
MAP_ANON, but macOS 11/Darwin 20 has it.

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

end of thread, other threads:[~2021-03-06 15:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-05 13:32 [Bug gcov-profile/99406] New: [11 regression] MAP_ANONYMOUS undeclared in libgcov.h ro at gcc dot gnu.org
2021-03-05 13:33 ` [Bug gcov-profile/99406] " ro at gcc dot gnu.org
2021-03-05 13:37 ` iains at gcc dot gnu.org
2021-03-05 13:39 ` jakub at gcc dot gnu.org
2021-03-05 13:42 ` marxin at gcc dot gnu.org
2021-03-05 13:43 ` jakub at gcc dot gnu.org
2021-03-06 15:23 ` cvs-commit at gcc dot gnu.org
2021-03-06 15:24 ` jakub 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).