Skip to content

Fix build break when building with Google native client tool chain. - #195

Closed
sjlangley wants to merge 2 commits into
php:masterfrom
sjlangley:master
Closed

sjlangley wants to merge 2 commits into
php:masterfrom
sjlangley:master

Conversation

@sjlangley

Copy link
Copy Markdown

This is a small patch to ensure that the correct asm is built when cross compiling to native client. (https://developers.google.com/native-client/).

Description of the issue being corrected is here -> http://code.google.com/p/nativeclient/issues/detail?id=2255

Stuart Langley added 2 commits September 13, 2012 17:37
The native client compiler defines the C macro __x86_64__, but the size
of an unsigned int is only 4 bytes. This causes the compile to fail
because the inline asm code compiled is for an 8 byte unsigned int. Add
the correct defines to fix this.

As detailed in:
http://code.google.com/p/nativeclient/issues/detail?id=2255
* PHP-5.4:
  Support building PHP with the native client toolchain.
@smalyshev

Copy link
Copy Markdown
Contributor

What about other instances - such as zend_multiply.h, zend_operators.h?

@sjlangley

Copy link
Copy Markdown
Author

There is no build break in these files as it falls through to the
non-optimized non-asm version.

In this pull request I was specifically addressing the build breakage.

On Sun, Sep 16, 2012 at 8:17 AM, Stanislav Malyshev <
notifications@github.com> wrote:

What about other instances - such as zend_multiply.h, zend_operators.h?

—
Reply to this email directly or view it on GitHubhttps://github.com//pull/195#issuecomment-8592539.

@nikic

nikic commented Sep 16, 2012

Copy link
Copy Markdown
Member

@sjlangley Do you know why the fall through works in the other cases but not here? The code looks very similar.

@sjlangley

Copy link
Copy Markdown
Author

Because it falls through to C code, not assembler.

On Sun, Sep 16, 2012 at 10:20 AM, nikic notifications@github.com wrote:

@sjlangley https://github.com/sjlangley Do you know why the fall
through works in the other cases but not here? The code looks very similar.

—
Reply to this email directly or view it on GitHubhttps://github.com//pull/195#issuecomment-8593039.

@php-pulls

Copy link
Copy Markdown

Comment on behalf of stas at php.net:

merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants