Jacob Garber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/34783 )
Change subject: vc/amd/cimx/sb800: Remove old strict-aliasing workaround
......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/c/coreboot/+/34783/1//COMMIT_MSG
Commit Message:
https://review.coreboot.org/c/coreboot/+/34783/1//COMMIT_MSG@35
PS1, Line 35: ReadMEM() and WriteMEM() now match their definitions in the SB900 code.
So older GCC gave an error?
I'm not sure. GCC does have -Wstrict-aliasing to try to warn about these sort of things, but that shouldn't have been a problem since these functions are compiled separately from where they are called (so GCC would have no way of knowing if they actually alias or not). The code was like this when it was checked into coreboot, so it was probably a workaround for some AMD issue back in ye olden days.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/34783
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ia7e3a1eff88b855a05b33c7dafba16ed23784e43
Gerrit-Change-Number: 34783
Gerrit-PatchSet: 1
Gerrit-Owner: Jacob Garber
jgarber1@ualberta.ca
Gerrit-Reviewer: Angel Pons
th3fanbus@gmail.com
Gerrit-Reviewer: David Hendricks
david.hendricks@gmail.com
Gerrit-Reviewer: Jacob Garber
jgarber1@ualberta.ca
Gerrit-Reviewer: Kyösti Mälkki
kyosti.malkki@gmail.com
Gerrit-Reviewer: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Comment-Date: Thu, 08 Aug 2019 17:05:19 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-MessageType: comment