-
Notifications
You must be signed in to change notification settings - Fork 42
Use std=gnu89, the gcc 4.8 default #15
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
Conversation
|
While modifying code to be more like the changes suggested in #9 may be a good thing, for P8 at least the least invasive thing to do is to just specify the language standard. |
We bring in P8 Hostboot patches from open-power/hostboot#62 as we wait for Hostboot development team to merge them. OCC patch is from open-power/occ#15 . It simply sets the language to gnu89 with -std=gnu89, which is the default prior to GCC5 (see https://gcc.gnu.org/gcc-5/porting_to.html ) Fixes: open-power/occ#8 Fixes: open-power/hostboot#69 Fixes: open-power/hostboot#61 Fixes: open-power#355 Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
We bring in P8 Hostboot patches from open-power/hostboot#62 as we wait for Hostboot development team to merge them. OCC patch is from open-power/occ#15 . It simply sets the language to gnu89 with -std=gnu89, which is the default prior to GCC5 (see https://gcc.gnu.org/gcc-5/porting_to.html ) Fixes: open-power/occ#8 Fixes: open-power/hostboot#69 Fixes: open-power/hostboot#61 Fixes: open-power#355 Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
We bring in P8 Hostboot patches from open-power/hostboot#62 as we wait for Hostboot development team to merge them. OCC patch is from open-power/occ#15 . It simply sets the language to gnu89 with -std=gnu89, which is the default prior to GCC5 (see https://gcc.gnu.org/gcc-5/porting_to.html ) Fixes: open-power/occ#8 Fixes: open-power/hostboot#69 Fixes: open-power/hostboot#61 Fixes: open-power#355 Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
We bring in P8 Hostboot patches from open-power/hostboot#62 as we wait for Hostboot development team to merge them. OCC patch is from open-power/occ#15 . It simply sets the language to gnu89 with -std=gnu89, which is the default prior to GCC5 (see https://gcc.gnu.org/gcc-5/porting_to.html ) Fixes: open-power/occ#8 Fixes: open-power/hostboot#69 Fixes: open-power/hostboot#61 Fixes: open-power#355 Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
We bring in P8 Hostboot patches from open-power/hostboot#62 as we wait for Hostboot development team to merge them. OCC patch is from open-power/occ#15 . It simply sets the language to gnu89 with -std=gnu89, which is the default prior to GCC5 (see https://gcc.gnu.org/gcc-5/porting_to.html ) Fixes: open-power/occ#8 Fixes: open-power/hostboot#69 Fixes: open-power/hostboot#61 Fixes: open-power#355 Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
According to https://gcc.gnu.org/gcc-5/porting_to.html GCC 5 changed to defaulting to -std=gnu11 rather than -std=gnu89, which causes build failures with OCC code use of 'extern inline'. so, to work around this, and to stay on a more predictable path, explicitly set the standard to gnu89. Change-Id: I87b8e2f62aad55f0ff4c34eca7752b5ee2f0db28 Fixes: open-power#8 Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
We bring in P8 Hostboot patches from open-power/hostboot#62 as we wait for Hostboot development team to merge them. OCC patch is from open-power/occ#15 . It simply sets the language to gnu89 with -std=gnu89, which is the default prior to GCC5 (see https://gcc.gnu.org/gcc-5/porting_to.html ) Fixes: open-power/occ#8 Fixes: open-power/hostboot#69 Fixes: open-power/hostboot#61 Fixes: open-power#355 Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
|
Now up to date with open-power/op-build#721 and the comments from @williamspatrick there (notably the inclusion of a change-id). I don't seem to have access to the internal OCC repository, so this pull request exists here. |
We bring in P8 Hostboot patches from open-power/hostboot#62 as we wait for Hostboot development team to merge them. OCC patch is from open-power/occ#15 . It simply sets the language to gnu89 with -std=gnu89, which is the default prior to GCC5 (see https://gcc.gnu.org/gcc-5/porting_to.html ) Fixes: open-power/occ#8 Fixes: open-power/hostboot#69 Fixes: open-power/hostboot#61 Fixes: open-power#355 Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
|
Fixed in 7254446 |
According to https://gcc.gnu.org/gcc-5/porting_to.html GCC 5
changed to defaulting to -std=gnu11 rather than -std=gnu89, which
causes build failures with OCC code use of 'extern inline'.
so, to work around this, and to stay on a more predictable path,
explicitly set the standard to gnu89.
Fixes: #8
Signed-off-by: Stewart Smith stewart@linux.vnet.ibm.com
This change is