Thanks for including it!
Btw, I'm planning in submit some a patch adding a call to dominator analysis.
Is there any trick for the copyright? I have no problems with GPL.
The error without -fPIC is:
Stderr:
/usr/bin/ld: /tmp/ccnYvmYr.o: relocation R_X86_64_32 against
`.rodata.str1.1' can not be used when making a shared object;
recompile with -fPIC
/tmp/ccnYvmYr.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
And what I get in my system from python config is this:
$ python-config --cflags
-I/usr/include/python2.7 -I/usr/include/python2.7 -fno-strict-aliasing
-g -O2 -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes
$ python-config --ldflags
-L/usr/lib/python2.7/config -lpthread -ldl -lutil -lm -lpython2.7
-Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions
$ python -c "from distutils import sysconfig as sc;
print(sc.get_config_var('CFLAGS'))"
-fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes
ew@arrakis:~/gcc-python-plugin/gcc-python-plugin$
Its the default from ubuntu. I've not changed anything.
Hey, I have a question.
How do I create a pass that will run only once after "ira" pass?
Something like an SimpleIpaPass, but after "ira".
Any ideas?
On Fri, Feb 3, 2012 at 6:47 PM, David Malcolm <dmalcolm(a)redhat.com> wrote:
On Fri, 2012-02-03 at 15:13 -0500, David Narvaez wrote:
> On Fri, Feb 3, 2012 at 2:11 PM, Emílio Wuerges <wuerges(a)gmail.com> wrote:
> >
> > Hello, I starting to use the python plugin today.
> >
> > In order to build it, I had to 2 two things:
> >
> > 1) add -fPIC to testcpybuilder.py compile flags. (in the patch)
>
> +1
>
>
https://fedorahosted.org/pipermail/gcc-python-plugin/2012-January/000167....
Ah, thanks.
For some reason I can't find that email in my inbox (perhaps I got
trigger-happy with the delete key? sorry).
It makes sense to add -fPIC, and I don't think it can hurt; I've added
it in c1433651f0bee9f9e0e568a863f195b5209c435d
[I'm a bit nervous about the python builds that don't supply it
automatically within distutils.sysconfig's CFLAGS configvar; are they
buggy, or have I misunderstood that part of distutils?]
Thanks!
Dave
_______________________________________________
gcc-python-plugin mailing list
gcc-python-plugin(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/gcc-python-plugin
--
Emilio Wuerges
ECL - Embedded Computing Lab
UFSC - Universidade Federal de Santa Catarina
Brasil