[swift-dev] [Call for testing] Catching debug info violations at -Onone

2018-01-17 Thread Davide Italiano via swift-dev
Hi, I would like to discuss the path towards enabling a new debug info verifier pass by default. This should improve the debug experience of users at `-Onone`. ## Problem Description Mandatory passes which run at `-Onone` can attach a wrong scope when they create instructions. This may result in

Re: [swift-dev] [swift-lldb-dev] Switching swift to C++14

2018-01-05 Thread Davide Italiano via swift-dev
On Fri, Jan 5, 2018 at 2:38 PM, Jim Ingham via swift-dev wrote: > I have no formal objections to switching lldb to C++14. I haven't been > following what is in C++14, but presumably it's purely additive? If so then > except for bugs this should be a no-op. > +1 > My only reservation is it se

[swift-dev] backporting clang patches from upstream?

2017-09-25 Thread Davide Italiano via swift-dev
Hi, I'd like to backport the following commit to swift-clang https://github.com/llvm-mirror/clang/commit/5c5aea8028aa58b347eaf3b552bc158a2a85ee18 as it fixes some problems with the freebsd build. What's the recommended workflow? Thanks, -- Davide ___ s

Re: [swift-dev] [Swift CI] Build Failure: OSS - Swift Package - OS X (master) #348

2017-09-24 Thread Davide Italiano via swift-dev
I don't think this is related to my commit. All the slaves appear to be in a `detached` state. On Sun, Sep 24, 2017 at 2:44 PM, no-reply--- via swift-dev < swift-dev@swift.org> wrote: > [FAILURE] oss-swift-package-osx [#348] > Build URL: https://ci.swift.org/job/oss-swift-package-osx/348/ > Proje

[swift-dev] libSwiftAST (a-la-libclang) ?

2017-08-18 Thread Davide Italiano via swift-dev
Hi, as part of a fuzzing project I have some needs to parse/mutate the AST. When I work with clang I generally use libclang (RecursiveASTVisitor) but I'm not aware of any Swift equivalent officially released as part of apple/swift ( the best I was able to find is this repo https://github.com/yanagi

Re: [swift-dev] Call for help: Linux (and others) build configurations, including static libraries, with ICU.

2017-05-29 Thread Davide Italiano via swift-dev
On Thu, May 25, 2017 at 5:33 PM, Michael Ilseman wrote: > With https://github.com/apple/swift/pull/9684 the Swift standard library > depends on ICU on Darwin in addition to Linux, where it has always had that > dependency. While our Linux bots have been happy with the changes, I’m not > familia

Re: [swift-dev] Call for help: Linux (and others) build configurations, including static libraries, with ICU.

2017-05-25 Thread Davide Italiano via swift-dev
On Thu, May 25, 2017 at 5:47 PM, Michael Ilseman wrote: > If that’s the case, we’ll want to add in FreeBSD alongside Android for that. > I don't think any platform redefines `pthread_key_t` to something else in FreeBSD in machine-dependent bits, but I'll take another look [sorry, I don't have a c

Re: [swift-dev] Call for help: Linux (and others) build configurations, including static libraries, with ICU.

2017-05-25 Thread Davide Italiano via swift-dev
On Thu, May 25, 2017 at 5:41 PM, Michael Ilseman wrote: > That would be awesome! Do you use the static stdlib configuration? > > I had to make assumptions about the type of pthread_key_t. If the type is > wrong, there’s a nice static_assert with a message telling how to fix it. > This came up ye

Re: [swift-dev] Call for help: Linux (and others) build configurations, including static libraries, with ICU.

2017-05-25 Thread Davide Italiano via swift-dev
On Thu, May 25, 2017 at 5:33 PM, Michael Ilseman wrote: > With https://github.com/apple/swift/pull/9684 the Swift standard library > depends on ICU on Darwin in addition to Linux, where it has always had that > dependency. While our Linux bots have been happy with the changes, I’m not > familia

Re: [swift-dev] Building Foundation on FreeBSD

2016-01-04 Thread Davide Italiano via swift-dev
On Mon, Jan 4, 2016 at 4:57 PM, Davide Italiano wrote: > On Mon, Dec 21, 2015 at 6:12 PM, Jordan Rose wrote: >> >>> On Dec 20, 2015, at 4:14 , Davide Italiano wrote: >>> >>> On Sun, Dec 20, 2015 at 5:07 AM, Davide Italiano >>> wrote: On Sat, Dec 19, 2015 at 11:28 PM, Jordan Rose wr

Re: [swift-dev] Building Foundation on FreeBSD

2016-01-04 Thread Davide Italiano via swift-dev
On Mon, Dec 21, 2015 at 6:12 PM, Jordan Rose wrote: > >> On Dec 20, 2015, at 4:14 , Davide Italiano wrote: >> >> On Sun, Dec 20, 2015 at 5:07 AM, Davide Italiano >> wrote: >>> On Sat, Dec 19, 2015 at 11:28 PM, Jordan Rose wrote: On Dec 19, 2015, at 7:14 , Davide Italiano wrote:

Re: [swift-dev] [Starter Project] Teach SILParser how to parse switch_enum of undef.

2015-12-22 Thread Davide Italiano via swift-dev
On Sun, Dec 13, 2015 at 4:29 PM, Michael Gottesman via swift-dev < swift-dev@swift.org> wrote: > This is a small starter project for those who are interested in working > with SIL. > > The SIL Parser currently is unable to parse switch_enum of undef. I wrote > a patch that does the work some time

Re: [swift-dev] Building Foundation on FreeBSD

2015-12-20 Thread Davide Italiano via swift-dev
On Sun, Dec 20, 2015 at 5:07 AM, Davide Italiano wrote: > On Sat, Dec 19, 2015 at 11:28 PM, Jordan Rose wrote: >> >> On Dec 19, 2015, at 7:14 , Davide Italiano wrote: >> >> On Fri, Dec 18, 2015 at 7:58 AM, Davide Italiano >> wrote: >> >> On Wed, Dec 16, 2015 at 2:25 PM, Jordan Rose wrote: >> >

Re: [swift-dev] Building Foundation on FreeBSD

2015-12-20 Thread Davide Italiano via swift-dev
On Sat, Dec 19, 2015 at 11:28 PM, Jordan Rose wrote: > > On Dec 19, 2015, at 7:14 , Davide Italiano wrote: > > On Fri, Dec 18, 2015 at 7:58 AM, Davide Italiano > wrote: > > On Wed, Dec 16, 2015 at 2:25 PM, Jordan Rose wrote: > > > On Dec 16, 2015, at 11:21 , Davide Italiano wrote: > > On Wed,

Re: [swift-dev] Building Foundation on FreeBSD

2015-12-19 Thread Davide Italiano via swift-dev
On Fri, Dec 18, 2015 at 7:58 AM, Davide Italiano wrote: > On Wed, Dec 16, 2015 at 2:25 PM, Jordan Rose wrote: >> >>> On Dec 16, 2015, at 11:21 , Davide Italiano wrote: >>> >>> On Wed, Dec 16, 2015 at 11:17 AM, Jordan Rose wrote: What's the compile command for the files that are failing? If

Re: [swift-dev] Building Foundation on FreeBSD

2015-12-18 Thread Davide Italiano via swift-dev
On Wed, Dec 16, 2015 at 2:25 PM, Jordan Rose wrote: > >> On Dec 16, 2015, at 11:21 , Davide Italiano wrote: >> >> On Wed, Dec 16, 2015 at 11:17 AM, Jordan Rose wrote: >>> What's the compile command for the files that are failing? If the target >>> triple there doesn't include a version number,

Re: [swift-dev] Building Foundation on FreeBSD

2015-12-16 Thread Davide Italiano via swift-dev
On Wed, Dec 16, 2015 at 11:17 AM, Jordan Rose wrote: > What's the compile command for the files that are failing? If the target > triple there doesn't include a version number, it might be defaulting to > something like "1.0". > > Jordan > I see many of these, here's an example: http://people.f

[swift-dev] Building Foundation on FreeBSD

2015-12-15 Thread Davide Italiano via swift-dev
Hi, I'm in the process of porting Foundation to FreeBSD (see https://github.com/apple/swift-corelibs-foundation/pull/141). After fixing a bunch of build/portability errors I'm now stuck trying to fix an issue with modules. In particular, I see a lot of errors like this: :0: error: module file's mi

Re: [swift-dev] Porting swift to FreeBSD

2015-12-13 Thread Davide Italiano via swift-dev
On Sun, Dec 13, 2015 at 4:41 PM, Chris Lattner wrote: > >> On Dec 13, 2015, at 3:34 AM, Davide Italiano via swift-dev >> wrote: >> >> On Sun, Dec 13, 2015 at 6:15 AM, Dmitri Gribenko wrote: >>> On Sun, Dec 13, 2015 at 2:52 AM, Davide Italiano >>>

Re: [swift-dev] Porting swift to FreeBSD

2015-12-13 Thread Davide Italiano via swift-dev
On Sun, Dec 13, 2015 at 6:15 AM, Dmitri Gribenko wrote: > On Sun, Dec 13, 2015 at 2:52 AM, Davide Italiano > wrote: >> And now, swift compiled programs run correctly on FreeBSD! > > This is great, thanks Davide! > >> % ./swiftc hello.swift -o hello >> davide@rabbit1:/exps/swift/build/Ninja-Relea

Re: [swift-dev] Porting swift to FreeBSD

2015-12-13 Thread Davide Italiano via swift-dev
;> On Sat, Dec 12, 2015 at 9:09 PM, Davide Italiano >>>> wrote: >>>>> On Sat, Dec 12, 2015 at 11:45 PM, Dmitri Gribenko >>>>> wrote: >>>>>> On Sat, Dec 12, 2015 at 8:29 PM, Davide Italiano via swift-dev >>>>>> wrote: &g

Re: [swift-dev] Porting swift to FreeBSD

2015-12-12 Thread Davide Italiano via swift-dev
gt;> On Sat, Dec 12, 2015 at 11:45 PM, Dmitri Gribenko >>>> wrote: >>>>> On Sat, Dec 12, 2015 at 8:29 PM, Davide Italiano via swift-dev >>>>> wrote: >>>>>> Hi, >>>>>> I'm a FreeBSD developer who has been wo

Re: [swift-dev] Porting swift to FreeBSD

2015-12-12 Thread Davide Italiano via swift-dev
;> On Sat, Dec 12, 2015 at 8:29 PM, Davide Italiano via swift-dev >>>> wrote: >>>>> Hi, >>>>> I'm a FreeBSD developer who has been working on porting swift to FreeBSD. >>>>> I'm at a point where with a local patch ( >>>

Re: [swift-dev] Porting swift to FreeBSD

2015-12-12 Thread Davide Italiano via swift-dev
On Sun, Dec 13, 2015 at 12:22 AM, Dmitri Gribenko wrote: > On Sat, Dec 12, 2015 at 9:09 PM, Davide Italiano > wrote: >> On Sat, Dec 12, 2015 at 11:45 PM, Dmitri Gribenko >> wrote: >>> On Sat, Dec 12, 2015 at 8:29 PM, Davide Italiano via swift-dev >>>

Re: [swift-dev] Porting swift to FreeBSD

2015-12-12 Thread Davide Italiano via swift-dev
On Sat, Dec 12, 2015 at 11:45 PM, Dmitri Gribenko wrote: > On Sat, Dec 12, 2015 at 8:29 PM, Davide Italiano via swift-dev > wrote: >> Hi, >> I'm a FreeBSD developer who has been working on porting swift to FreeBSD. >> I'm at a point where with a local pat

[swift-dev] Porting swift to FreeBSD

2015-12-12 Thread Davide Italiano via swift-dev
Hi, I'm a FreeBSD developer who has been working on porting swift to FreeBSD. I'm at a point where with a local patch ( https://people.freebsd.org/~davide/swift/build_freebsd.diff ) to fix build errors I'm able to build the compiler itself on FreeBSD 11 (-CURRENT). The compiler itself seems to wor