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

From: Date: Sun, 11 Feb 2018 15:08:29 +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-213917@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:         danack@php.net
 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:

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.


Previous Comments:
------------------------------------------------------------------------
[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

------------------------------------------------------------------------
[2018-02-11 12:53:10] serghei at phalconphp dot com

Description:
------------
There is 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



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



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


Thread (20 messages)

« previous php.bugs (#213917) next »