public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libmudflap/14588] New: -fmudflap doesn't define MREMAP_MAYMOVE
@ 2004-03-15 20:41 wcohen at redhat dot com
2004-03-15 20:43 ` [Bug libmudflap/14588] " pinskia at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: wcohen at redhat dot com @ 2004-03-15 20:41 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libmudflap/14588] -fmudflap doesn't define MREMAP_MAYMOVE
2004-03-15 20:41 [Bug libmudflap/14588] New: -fmudflap doesn't define MREMAP_MAYMOVE wcohen at redhat dot com
@ 2004-03-15 20:43 ` pinskia at gcc dot gnu dot org
2004-03-16 21:29 ` fche at redhat dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-15 20:43 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Target Milestone|--- |tree-ssa
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14588
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libmudflap/14588] -fmudflap doesn't define MREMAP_MAYMOVE
2004-03-15 20:41 [Bug libmudflap/14588] New: -fmudflap doesn't define MREMAP_MAYMOVE wcohen at redhat dot com
2004-03-15 20:43 ` [Bug libmudflap/14588] " pinskia at gcc dot gnu dot org
@ 2004-03-16 21:29 ` fche at redhat dot com
2004-03-23 16:23 ` wcohen at redhat dot com
2004-04-04 7:30 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: fche at redhat dot com @ 2004-03-16 21:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From fche at redhat dot com 2004-03-16 21:29 -------
mudflap does not intend to interfere with the definition of macro constants
such as this linux-specific one that comes from */mman.h. Could you
provide a preprocessed version of your source file?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14588
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libmudflap/14588] -fmudflap doesn't define MREMAP_MAYMOVE
2004-03-15 20:41 [Bug libmudflap/14588] New: -fmudflap doesn't define MREMAP_MAYMOVE wcohen at redhat dot com
2004-03-15 20:43 ` [Bug libmudflap/14588] " pinskia at gcc dot gnu dot org
2004-03-16 21:29 ` fche at redhat dot com
@ 2004-03-23 16:23 ` wcohen at redhat dot com
2004-04-04 7:30 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: wcohen at redhat dot com @ 2004-03-23 16:23 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From wcohen at redhat dot com 2004-03-23 16:23 -------
Created an attachment (id=5980)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5980&action=view)
preprocessed version of problem file.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14588
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libmudflap/14588] -fmudflap doesn't define MREMAP_MAYMOVE
2004-03-15 20:41 [Bug libmudflap/14588] New: -fmudflap doesn't define MREMAP_MAYMOVE wcohen at redhat dot com
` (2 preceding siblings ...)
2004-03-23 16:23 ` wcohen at redhat dot com
@ 2004-04-04 7:30 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-04 7:30 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-04 07:30 -------
The problem is that -fmudflap includes some header files before the main source, to do
the right thing, use the -D option like so -D_GNU_SOURCE and that will fix the issue.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14588
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-04-04 7:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-15 20:41 [Bug libmudflap/14588] New: -fmudflap doesn't define MREMAP_MAYMOVE wcohen at redhat dot com
2004-03-15 20:43 ` [Bug libmudflap/14588] " pinskia at gcc dot gnu dot org
2004-03-16 21:29 ` fche at redhat dot com
2004-03-23 16:23 ` wcohen at redhat dot com
2004-04-04 7:30 ` pinskia at gcc dot gnu dot 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).