This is an archive of the discontinued LLVM Phabricator instance.

Set C99 as default C Standard for PS4 target
ClosedPublic

Authored by dyung on Apr 11 2016, 6:58 PM.

Details

Summary

On the PS4, the default C standard is C99 which differs from the current default of C11. This patch makes the default C99 when targeting the PS4. This change includes the changes previously posted in http://reviews.llvm.org/D18708, but now includes additional test fixes that were failing when targeting the PS4 as they assumed C11 was the default.

Diff Detail

Repository
rL LLVM

Event Timeline

dyung updated this revision to Diff 53349.Apr 11 2016, 6:58 PM
dyung retitled this revision from to Set C99 as default C Standard for PS4 target.
dyung updated this object.
dyung added reviewers: rsmith, ygao.
dyung added a subscriber: cfe-commits.
probinson added inline comments.
test/Sema/attr-deprecated.c
124 ↗(On Diff #53349)

Just the note? Or the warning?

test/Sema/nullability.c
30 ↗(On Diff #53349)

*Some* of these errors require C11.

81 ↗(On Diff #53349)

Not seeing any errors here?

test/SemaObjC/objcbridge-attribute-arc.m
26 ↗(On Diff #53349)

This *error* requires C11.

dyung updated this revision to Diff 54956.Apr 25 2016, 6:07 PM

Updated diff to fix up the comments based on Paul's feedback. Also tightened up one of the #if blocks to not include something that did not require C11.

probinson accepted this revision.Apr 26 2016, 5:52 PM
probinson added a reviewer: probinson.

LGTM.

This revision is now accepted and ready to land.Apr 26 2016, 5:52 PM
This revision was automatically updated to reflect the committed changes.