Bug #75951 [Com]: The 'asm goto' constructs are not supported by LLVM

From: Date: Sun, 11 Feb 2018 17:26:53 +0000
Subject: Bug #75951 [Com]: The 'asm goto' constructs are not supported by LLVM
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213922@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75951&edit=1

 ID:                 75951
 Comment by:         serghei at phalconphp dot com
 Reported by:        serghei at phalconphp dot com
 Summary:            The 'asm goto' constructs are not supported by LLVM
 Status:             Open
 Type:               Bug
 Package:            *General Issues
 Operating System:   Linux
 PHP Version:        master-Git-2018-02-11 (Git)
 Block user comment: N
 Private report:     N

 New Comment:

c


Previous Comments:
------------------------------------------------------------------------
[2018-02-11 17:20:29] spam2 at rhsoft dot net

yes, it's your bugreport but at the wrong bugtracker
https://bugs.llvm.org/

------------------------------------------------------------------------
[2018-02-11 17:16:52] serghei at phalconphp dot com

Hello danack@

I hope that you are going good.

Please stop decide what exactly I want. It is just my bug report, not my wants. I faced with it on
Travis CI by testing on it on latest GCC/LLVM.

Thank you
Have a nice day

------------------------------------------------------------------------
[2018-02-11 16:48:40] levim@php.net

Supposedly we are checking this at configure time already: https://github.com/php/php-src/blob/c718970e9e48d49c19933f2e4d2cd680094be79f/configure.ac#L767-L778.

What version of Clang are you using?

------------------------------------------------------------------------
[2018-02-11 15:08:28] danack@php.net

The asm goto is wrapped inside a #if defined(HAVE_ASM_GOTO)

Asking a project to avoid using a construct to support a particular compiler is unlikely to get the
result you want.

You (or someone else) who cares about compiling on LLVM would be better off asking for (or even
better submitting) a patch to the build configuration to stop HAVE_ASM_GOTO being defined for the
LLVM compiler.

------------------------------------------------------------------------
[2018-02-11 13:05:32] serghei at phalconphp dot com

There are a few places with code like __asm__ goto. For example Zend/zend_operators.h:532


	__asm__ goto(
		"decq (%0)\n\t"
		"jo  %l1\n"
		:
		: "r"(&op1->value)
		: "cc", "memory"
		: overflow);
	return;


Please avoid using 'asm goto' as it not supported by LLVM.

Refs: https://bugs.llvm.org/show_bug.cgi?id=9295

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=75951


--
Edit this bug report at https://bugs.php.net/bug.php?id=75951&edit=1


Thread (20 messages)

« previous php.bugs (#213922) next »