hhvm icon indicating copy to clipboard operation
hhvm copied to clipboard

[Aarch64] Remove -fsigned-char flag and fix resulting failure

Open jim-saxman opened this issue 9 years ago • 14 comments

Remove the -fsigned-char flag for Aarch64 systems. As a result, the unit test zend/good/ext/fileinfo/tests/finfo_file_002.php began failing. Thus, this patch changes a cast to (signed char), and the unit test passes again.

jim-saxman avatar Oct 31 '16 20:10 jim-saxman

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks!

If you are contributing on behalf of someone else (eg your employer): the individual CLA is not sufficient - use https://developers.facebook.com/opensource/cla?type=company instead. Contact [email protected] if you have any questions.

facebook-github-bot avatar Oct 31 '16 20:10 facebook-github-bot

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

facebook-github-bot avatar Nov 02 '16 21:11 facebook-github-bot

@aorenste has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

hhvm-bot avatar Nov 03 '16 00:11 hhvm-bot

What is the higher-level goal of this change?

mxw avatar Dec 02 '16 23:12 mxw

Patch #7361 introduced the -fsigned-char flag and has the backstory for why I am removing it.

jim-saxman avatar Dec 03 '16 20:12 jim-saxman

Hmmm, I don't think I ever saw that one. Looping in @dave-estes and @apinski-cavium. Have you guys done any more testing w.r.t. signed chars since back then?

As I just commented on the previous PR, the concern about mismatched ABIs is pretty compelling to me, and I think we should make this change; I'm just curious if anyone else has had any problems with it since then.

mxw avatar Dec 05 '16 18:12 mxw

We've been running with and without signed chars for a while. In light of @apinski-cavium concerns, I think we should go ahead with this change to revert back to signed chars for ARM. If there are any latent bugs in HHVM, then we'll just have to find them.

dave-estes-QCOM avatar Dec 06 '16 15:12 dave-estes-QCOM

@mxw, is there anything else needed to land this PR?

dave-estes-QCOM avatar Jan 13 '17 16:01 dave-estes-QCOM

@dave-estes—I need to do some more testing internally. The CMake build doesn't affect us, but our internal tests stress the system more.

Sorry for putting this off; it didn't seem to be blocking other changes, so I've been punting on it. I'll look into it this week.

mxw avatar Jan 18 '17 00:01 mxw

@mxw ping.... This patch still applies cleanly for me, can we get it merged?

jim-saxman avatar Apr 18 '17 04:04 jim-saxman

Tested here as well -> no regressions.

cmuellner avatar Apr 18 '17 14:04 cmuellner

thought this had landed months ago...

Orvid avatar Aug 19 '17 00:08 Orvid

@Orvid Me too! I can give it another round of testing on AArch64 if needed.

jim-saxman avatar Aug 24 '17 02:08 jim-saxman

This patch is still clean for AArch64 tests. There are no new failures for test/all with {"","--mode interp","--mode pgo","-r --mode pgo"}.

jim-saxman avatar Aug 24 '17 15:08 jim-saxman