Mudlfap disable doesn't work as expected.

Marcin Dalecki martin@dalecki.de
Wed Mar 2 14:46:00 GMT 2005


Apparently largely unnoticed by compilation with a C compiler the 
tree-mudflap.c and
tree-nomudflap.c files are used both at the same time on my system 
(powerpc-apple-darwin7.8.0):

c++   -O2 -fsigned-char -DIN_GCC   -W -Wall -Wwrite-strings 
-Wstrict-prototypes -Wmissing-prototypes  -fno-common   -DHAVE_CONFIG_H 
  -o cc1 \
         c-lang.o stub-objc.o attribs.o c-errors.o c-lex.o c-pragma.o 
c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o 
c-format.
o c-semantics.o c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o 
prefix.o c-objc-common.o c-dump.o c-pch.o c-parser.o darwin-c.o 
rs6000-c.o
  c-gimplify.o tree-mudflap.o c-pretty-print.o main.o tree-browser.o 
libbackend.a ../libcpp/libcpp.a ../libcpp/libcpp.a ./../intl/libintl.a 
-lic
onv  ../libiberty/libiberty.a
ld: multiple definitions of symbol _Z19mudflap_finish_filev.eh
tree-mudflap.o definition of _Z19mudflap_finish_filev.eh in section 
(__TEXT,__eh_frame)
libbackend.a(tree-nomudflap.o) definition of absolute 
_Z19mudflap_finish_filev.eh (value 0x0)
ld: multiple definitions of symbol 
_Z20mudflap_enqueue_declP9tree_node.eh
tree-mudflap.o definition of _Z20mudflap_enqueue_declP9tree_node.eh in 
section (__TEXT,__eh_frame)
libbackend.a(tree-nomudflap.o) definition of absolute 
_Z20mudflap_enqueue_declP9tree_node.eh (value 0x0)
ld: multiple definitions of symbol 
_Z24mudflap_enqueue_constantP9tree_node.eh
tree-mudflap.o definition of _Z24mudflap_enqueue_constantP9tree_node.eh 
in section (__TEXT,__eh_frame)

Oj waj....



More information about the Gcc mailing list