Page MenuHomePhorge

xhpast: Skip -minline-all-stringops on non-x86 architectures
AcceptedPublic

Authored by xtex on Tue, Feb 11, 03:58.
Tags
None
Referenced Files
F2991589: D25871.1740192966.diff
Fri, Feb 21, 02:56
F2990113: D25871.1740169861.diff
Thu, Feb 20, 20:31
F2986586: D25871.1740100744.diff
Thu, Feb 20, 01:19
F2985654: D25871.1740076415.diff
Wed, Feb 19, 18:33
F2985547: D25871.1740067343.diff
Wed, Feb 19, 16:02
F2985377: D25871.1740040816.diff
Wed, Feb 19, 08:40
F2979235: D25871.1739817128.diff
Sun, Feb 16, 18:32
F2978708: D25871.1739678955.diff
Sat, Feb 15, 04:09

Details

Reviewers
valerio.bozzolan
Group Reviewers
O1: Blessed Committers
Summary

-minline-all-stringops is a x86 only option, and will not work on other architectures.
Thus remove it for other architectures.

Test Plan

Build on other architectures. I cherry-picked this to AOSC OS packaging and it has built successfully on amd64, arm64, riscv64, ppc64el, loongson3, loongarch64.

Or, manually run this script and see that - only on x86 - it prints the mentioned flag:

php support/xhpast/bin/xhpast-generate-release-cppflags.php

Diff Detail

Repository
rARC Arcanist
Branch
xhpast-non-x86
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 1694
Build 1694: arc lint + arc unit

Event Timeline

xtex requested review of this revision.Tue, Feb 11, 03:58

https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html

I see the PHP approach is interestingly in line with stuff like line 11. wow lol. Thanks

sgtm

This revision is now accepted and ready to land.Tue, Feb 11, 06:18
support/xhpast/bin/xhpast-generate-release-cppflags.php
5–6

Very probably there is no need for these 2 lines in this script. Maybe better to comment to reduce loaded resources.

valerio.bozzolan added inline comments.
support/xhpast/bin/xhpast-generate-release-cppflags.php
12

Ops wait. Please don't sum in PHP. Use the concatenate operator with dot.

Otherwise in recent PHP versions this can throw an error

This revision now requires changes to proceed.Tue, Feb 11, 06:21
xtex marked 2 inline comments as done.Tue, Feb 11, 06:48
This revision is now accepted and ready to land.Tue, Feb 11, 06:49