davidmalcolm / gcc-python-plugin

GCC plugin that embeds CPython inside the compiler
GNU General Public License v3.0
197 stars 58 forks source link

[v9] Testdemo #139

Closed vries closed 5 years ago

vries commented 5 years ago

Hmm, when looking at the details, it looks like all builds passed. But here, I see "Some checks haven’t completed yet".

vries commented 5 years ago

With python3, we have:

Demo: gcc version: 8002
Demo: reference file used: demo.expected.no-refcounts
1a2,3
> demo.c:34:: warning: implicit declaration of function ‘PyInt_FromLong’; did you mean ‘PyLong_FromLong’? [-Wimplicit-function-declaration]
> demo.c:34:: warning: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion]
make: *** [Makefile:302: testdemo] Error 1
vries commented 5 years ago

With python3, we have:

Demo: gcc version: 8002
Demo: reference file used: demo.expected.no-refcounts
1a2,3
> demo.c:34:: warning: implicit declaration of function ‘PyInt_FromLong’; did you mean ‘PyLong_FromLong’? [-Wimplicit-function-declaration]
> demo.c:34:: warning: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion]
make: *** [Makefile:302: testdemo] Error 1

Fixed in https://github.com/davidmalcolm/gcc-python-plugin/pull/141

vries commented 5 years ago

Makefile: Verify demo run for target test-suite

Split off part that disables reference counting for gcc-7+, submitted as https://github.com/davidmalcolm/gcc-python-plugin/pull/140.

vries commented 5 years ago

Updated version v11 submitted.