Commit Graph

115 Commits

Author SHA1 Message Date
Manav Gabhawala
7928140f79 [SE-0046] Implements consistent function parameter labels by discarding extraneous parameter names and adding _ where necessary 2016-04-06 20:21:58 -04:00
Chris Lattner
b3263cb4e9 Merge pull request #2030 from danra/patch-6
Cosmetic fixes (NFC)
2016-04-03 14:56:16 -07:00
Chris Lattner
72ded75f6c Merge pull request #2032 from danra/patch-9
Cosmetic fixes (NFC)
2016-04-03 14:55:36 -07:00
danra
37024e6ea0 Cosmetic fixes (NFC)
- Add newlines where missing to match sys/errno.h error groups separation
- Prefer single-line comments to C-style comments
- Align most comments to same column
- Add comment following #endif at EOF to show what it ends
- Remove extraneous whitespace
2016-04-02 17:14:28 +03:00
danra
c3423529f9 Cosmetic fixes (NFC)
- Fix includes order
- Add  comments after endifs to indicate what they end
2016-04-02 16:49:43 +03:00
danra
7c15fc577e Cosmetic fixes (NFC)
- Added missing periods to end of comments
- Remove extra whitespace
- Add comment to endif at EOF indicating what it ends
2016-04-02 16:39:48 +03:00
Jordan Rose
6dd1f0a5f9 [stdlib] Apply @_fixed_layout to various stdlib and overlay types
This is a staging attribute that will eventually mean "fixed-contents"
for structs and "closed" for enums, as described in
docs/LibraryEvolution.rst.

This is pretty much the minimal set of types that must be fixed-layout,
because SILGen makes assumptions about their lowering.

If desired, some SILGen refactoring can allow some of these to be
resilient. For example, bridging value types could be made to work
with resilient types.
2016-04-01 13:07:18 -07:00
Slava Pestov
4a34aa7895 Re-apply "stdlib: Add minimum set of @_versioned attributes to build without -sil-serialize-all"
This reverts commit 22864721ca.
2016-03-28 20:08:12 -07:00
Slava Pestov
22864721ca Revert "stdlib: Add minimum set of @_versioned attributes to build without -sil-serialize-all"
Somehow this broke the Foundation build on Linux.

This reverts commit dce09c17c2.
2016-03-25 23:34:01 -07:00
Slava Pestov
dce09c17c2 stdlib: Add minimum set of @_versioned attributes to build without -sil-serialize-all
When we're not serializing SIL for all function bodies, @_transparent
functions can only reference internal functions that are declared
@_versioned, otherwise there's no serialized body and no public entry
point, so any client that inlines the @_transparent function will
not be able to link.

This patch adds the minimum set of @_versioned declarations to allow
a non-optimized build of the standard library and overlays.

Recall that this attribute is just a temporary hack to make progress
on building the standard library with resilience enabled.

Once availability and resilience learn about each other, @_versioned
will be replaced by having an availability annotation on an internal
declaration. Invariants will be diagnosed by Sema instead of asserting
in the SIL verifier.

Finally, the set of "internal but available" declarations will
eventually be audited instead of determined by experimentation.

This almost closes out https://bugs.swift.org/browse/SR-267.

The remaining issue is an interaction between SIL optimizations and
serialization that will be fixed with some upcoming changes to the
optimizer.
2016-03-25 22:45:50 -07:00
practicalswift
ac87f428ea [gardening] Fix formatting of recently introduced headers. 2016-03-22 21:36:09 +01:00
rintaro ishizaki
91108b4602 [stdlib] Implement tgmath in Glibc 2016-03-23 00:51:50 +09:00
rintaro ishizaki
9ce1387ee3 [stdlib] Merged Glibc code to Platform directory. 2016-03-23 00:51:37 +09:00
rintaro ishizaki
eecfb6e41d [stdlib] Renamed cross-platform C helper functions in Darwin so that we can share them with Glibc. 2016-03-22 16:07:48 +09:00
rintaro ishizaki
d875a56a75 [stdlib] Moved stdlib/public/SDK/Darwin to stdlib/public/Platform. NFC 2016-03-22 16:05:51 +09:00