Michael Felt <aixto...@felt.demon.nl> added the comment:

xlc has an option -qsource that creates output like this - first showing
the code with macro, then showing the expansion

>>>>> SOURCE SECTION <<<<<
...
       16 |         dev = st.st_dev;
       17 |         minor = minor(dev);
       17 +         minor = (int)((dev)&0xFFFF);
       18 |         major = major(dev);
       18 +         major = (int)((unsigned)(dev)>>16);

I'll check and see if -E processes the output in the same way. Thx.

On 2/19/2019 9:29 PM, Alexey Izbyshev wrote:
> Alexey Izbyshev <izbys...@ispras.ru> added the comment:
>
> I don't know what you mean by "in-line" pre-processing output, but you can 
> use -E option to get the normal preprocessor output. Line directives will 
> tell you where those functions come from on a system where there is no 
> compilation error.
>
> Of course, if those functions are defined in some other headers on AIX 6.1, 
> it won't help you, so you might as well just grep /usr/include :)
>
> ----------
> nosy: +izbyshev
>
> _______________________________________
> Python tracker <rep...@bugs.python.org>
> <https://bugs.python.org/issue36034>
> _______________________________________
>

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36034>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to