[issue24543] Configure script wrongly detects x64/x87/mc68881 with -flto option passed

2015-07-03 Thread marxin

marxin added the comment:

Works for me.

Thanks!

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24543
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24543] Configure script wrongly detects x64/x87/mc68881 with -flto option passed

2015-07-02 Thread marxin

marxin added the comment:

As I wrote, starting from GCC 4.9.0, the compiler does not emit any assembly 
with -flto and -c option. I would suggest to remove '-c' option that will force 
to create an executable.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24543
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24543] Configure script wrongly detects mc68881 with -flto option passed

2015-07-01 Thread marxin

New submission from marxin:

I've just tried to build Python with {C,CXX,LD}FLAGS set to '-flto'.

Unfortunately following conftest source file is fragile:

cat /tmp/mc.c
int
main ()
{

  unsigned int fpcr;
  __asm__ __volatile__ (fmove.l %%fpcr,%0 : =g (fpcr));
  __asm__ __volatile__ (fmove.l %0,%%fpcr : : g (fpcr));

  ;
  return 0;
}

gcc --version:
gcc (GCC) 5.1.1 20150424 (prerelease)

gcc -c /tmp/mc.c
/tmp/mc.c: Assembler messages:
/tmp/mc.c:6: Error: no such instruction: `fmove.l %fpcr,%eax'
/tmp/mc.c:7: Error: no such instruction: `fmove.l -4(%rbp),%fpcr'

gcc -flto -c /tmp/mc.c

As GCC does not produce assembly with -flto and -c (unless you append 
-ffat-lto-objects), the compilation success.

Can you please write more robust configuration.
Thanks,
Martin

--
messages: 246034
nosy: mli...@suse.cz
priority: normal
severity: normal
status: open
title: Configure script wrongly detects mc68881 with -flto option passed
versions: Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24543
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com