Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testsuite: Fix missing handling of little endian. #2805

Merged

Conversation

CohenArthur
Copy link
Member

Some failures occur in the testsuite because we
did not account for the big-endian case.

gcc/testsuite/ChangeLog:

* rust/compile/issue-1446.rs: Add swap_bytes function.
* rust/compile/iterators1.rs: Remove unused {to, from}_le functions.

Before merging this I would like to run our testsuite on the compile farm on a SPARC machine to see that they're really fixed. Will report here once it's done.

@thesamesam
Copy link
Contributor

I can give you SSH to our beefy sparc machine (just email me an SSH key + desired username). It needs kicking for a reboot every so often but it's fine otherwise.

It's the same machine used for the sourceware buildbot.

@CohenArthur
Copy link
Member Author

thanks @thesamesam I appreciate it a lot :) I've tested these changes on one of the machines of the GCC compile farm but I'll definitely take you up on that offer :D I'll email you!

@CohenArthur CohenArthur marked this pull request as ready for review January 23, 2024 16:27
@CohenArthur CohenArthur force-pushed the fix-be-testsuite-failure-issue-1446 branch from 04907a6 to 46feb45 Compare January 23, 2024 16:27
@CohenArthur CohenArthur mentioned this pull request Jan 23, 2024
@CohenArthur CohenArthur force-pushed the fix-be-testsuite-failure-issue-1446 branch from 46feb45 to b2be198 Compare January 23, 2024 16:32
@CohenArthur CohenArthur changed the title testsuite: Fix missing handling of big endian. testsuite: Fix missing handling of little endian. Jan 26, 2024
@CohenArthur CohenArthur force-pushed the fix-be-testsuite-failure-issue-1446 branch from b2be198 to 09d6ad2 Compare January 26, 2024 09:49
@CohenArthur
Copy link
Member Author

not sure why this causes a regression on MacOS. I'll ssh into the machine and investigate later

@CohenArthur CohenArthur force-pushed the fix-be-testsuite-failure-issue-1446 branch 2 times, most recently from 26f5bb3 to 4fdef02 Compare February 16, 2024 13:56
@jdupak jdupak mentioned this pull request Feb 27, 2024
@CohenArthur CohenArthur force-pushed the fix-be-testsuite-failure-issue-1446 branch 2 times, most recently from 3bcaab0 to 492501c Compare January 6, 2025 12:00
Some failures occur in the testsuite because we
did not account for the little-endian case.

gcc/testsuite/ChangeLog:

	* rust/compile/issue-1446.rs: Add swap_bytes function.
	* rust/compile/iterators1.rs: Remove unused {to, from}_le functions.
gcc/testsuite/ChangeLog:

	* rust/compile/macros/builtin/eager1.rs: Switch to scan-assembler directive as the
	GIMPLE dump does not contain strings on LE.
	* rust/compile/macros/builtin/recurse2.rs: Likewise.
@philberty philberty force-pushed the fix-be-testsuite-failure-issue-1446 branch from 492501c to 65ef110 Compare January 10, 2025 10:48
@philberty philberty added this to the Remaining typecheck issues milestone Jan 10, 2025
Copy link
Member

@philberty philberty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM lets ignore macos its going to be too hard now that the new m2 chip is out

@philberty philberty added this pull request to the merge queue Jan 10, 2025
Merged via the queue into Rust-GCC:master with commit aa8d698 Jan 10, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants