]> git.ipfire.org Git - thirdparty/gcc.git/commit
[testsuite] add x86 effective target
authorAlexandre Oliva <oliva@adacore.com>
Wed, 26 Feb 2025 10:39:25 +0000 (07:39 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 26 Feb 2025 10:39:25 +0000 (07:39 -0300)
commit55bf33f37fe3d5acf1d21773587fdaaf9452db28
tree29bb1c4cc4cfe66b74511e7f65f34bff506d62fb
parente6f5fadec5f6a719145ed2ed513209ec3e8eeb2f
[testsuite] add x86 effective target

I got tired of repeating the conditional that recognizes ia32 or
x86_64, and introduced 'x86' as a shorthand for that, adjusting all
occurrences in target-supports.exp, to set an example.  I found some
patterns that recognized i?86* and x86_64*, but I took those as likely
cut&pastos instead of trying to preserve those weirdnesses.

for  gcc/ChangeLog

* doc/sourcebuild.texi: Add x86 effective target.

for  gcc/testsuite/ChangeLog

* lib/target-supports.exp (check_effective_target_x86): New.
Replace all uses of i?86-*-* and x86_64-*-* in this file.
gcc/doc/sourcebuild.texi
gcc/testsuite/lib/target-supports.exp