This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libmudflap/14588] New: -fmudflap doesn't define MREMAP_MAYMOVE
- From: "wcohen at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Mar 2004 20:41:10 -0000
- Subject: [Bug libmudflap/14588] New: -fmudflap doesn't define MREMAP_MAYMOVE
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Have the following example code:
/* replicate problem observed in
oprofiles libdb/db_manage.c
gcc-ssa -fmudflap -c mudflapx.c
*/
#define _GNU_SOURCE
#include <unistd.h>
#include <sys/mman.h>
void *odb_hash_add_node(void *old_address, size_t old_file_size,
size_t new_file_size)
{
void *new_map;
new_map = mremap(old_address, old_file_size, new_file_size, MREMAP_MAYMOVE);
return new_map;
}
On Red Hat Linux 9 and RHEL 3 the current FSF tree-ssa compiler
(tree-ssa-20020619-branch checked out 2004-03-15) it compiles successfully
without the "-fmudflap", but it fails when compiled with the the "-lmudflap" option:
/home/wcohen/gcc/tree-ssa-20020619-branch/inst/bin/gcc mudflapx.c -fmudflap -c
mudflapx.c: In function `odb_hash_add_node':
mudflapx.c:17: error: `MREMAP_MAYMOVE' undeclared (first use in this function)
mudflapx.c:17: error: (Each undeclared identifier is reported only once
mudflapx.c:17: error: for each function it appears in.)
--
Summary: -fmudflap doesn't define MREMAP_MAYMOVE
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libmudflap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: wcohen at redhat dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14588