dynamic plugin in c++

avantikagupta avantikagupta@cse.iitb.ac.in
Mon Aug 26 16:58:00 GMT 2013


hi,

i am writing a dynamic plugin,


however, sometimes it run succesfully and sometimes it give following 
error:

/home/avantika/Downloads/gcc/gccpackage/install/bin/g++ -o result -flto 
-fplugin=./plugin.so test1.o -O3 -fdump-ipa-all
In function ‘main’:
lto1: internal compiler error: in rebuild_frequencies, at 
predict.c:2396
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: /home/avantika/Downloads/gcc/gccpackage/install/bin/g++ 
returned 1 exit status
/usr/bin/ld: lto-wrapper failed
collect2: error: ld returned 1 exit status
make: *** [test] Error 1


code : following are the name of files constraint.cpp, dataflow.cpp , 
constraint.hpp, dataflow.hpp;

the main file named pointo-callstring.c includes both the hpp files, 
and is defining some object and class map.

i have attached the files.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: constraint.cpp
Type: text/x-c
Size: 2435 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20130826/ab887c6f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: constraint.hpp
Type: text/x-c++
Size: 1630 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20130826/ab887c6f/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dataflow.hpp
Type: text/x-c++
Size: 943 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20130826/ab887c6f/attachment-0002.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dataflow.cpp
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20130826/ab887c6f/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pointsto-callstrings.c
Type: text/x-c
Size: 2475 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20130826/ab887c6f/attachment-0003.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Makefile
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20130826/ab887c6f/attachment-0001.ksh>


More information about the Gcc-help mailing list