Re: [PATCH] D15455: [Driver] Let -static override the toolchain default PIC setting.

2016-01-05 Thread Bob Wilson via cfe-commits
bob.wilson accepted this revision. bob.wilson added a reviewer: bob.wilson. bob.wilson added a comment. This revision is now accepted and ready to land. I applied a Darwin-specific change for this to clang in r256026. http://reviews.llvm.org/D15455

Re: [PATCH] D15455: [Driver] Let -static override the toolchain default PIC setting.

2015-12-18 Thread Joerg Sonnenberger via cfe-commits
On Fri, Dec 18, 2015 at 12:45:47PM -0800, Bob Wilson via cfe-commits wrote: > > > On Dec 17, 2015, at 10:59 AM, Bob Wilson via cfe-commits > > wrote: > > > > > >> On Dec 17, 2015, at 10:16 AM, Joerg Sonnenberger via cfe-commits > >> wrote: > >> > >> On Wed, Dec 16, 2015 at 11:59:10PM +,

Re: [PATCH] D15455: [Driver] Let -static override the toolchain default PIC setting.

2015-12-18 Thread Bob Wilson via cfe-commits
> On Dec 17, 2015, at 10:59 AM, Bob Wilson via cfe-commits > wrote: > > >> On Dec 17, 2015, at 10:16 AM, Joerg Sonnenberger via cfe-commits >> wrote: >> >> On Wed, Dec 16, 2015 at 11:59:10PM +, Bob Wilson via cfe-commits wrote: >>> We can change this to be Darwin-specific if you prefer,

Re: [PATCH] D15455: [Driver] Let -static override the toolchain default PIC setting.

2015-12-17 Thread Bob Wilson via cfe-commits
> On Dec 17, 2015, at 10:16 AM, Joerg Sonnenberger via cfe-commits > wrote: > > On Wed, Dec 16, 2015 at 11:59:10PM +, Bob Wilson via cfe-commits wrote: >> We can change this to be Darwin-specific if you prefer, but we should >> maintain compatibility with GCC and previous Clang releases in

Re: [PATCH] D15455: [Driver] Let -static override the toolchain default PIC setting.

2015-12-17 Thread Joerg Sonnenberger via cfe-commits
On Wed, Dec 16, 2015 at 11:59:10PM +, Bob Wilson via cfe-commits wrote: > We can change this to be Darwin-specific if you prefer, but we should > maintain compatibility with GCC and previous Clang releases in this behavior. Who is really affected by this? I don't care too much about obscure Da

Re: [PATCH] D15455: [Driver] Let -static override the toolchain default PIC setting.

2015-12-17 Thread James Y Knight via cfe-commits
jyknight added a comment. > #define CC1_SPEC "%{!mkernel:%{!static:%{!mdynamic-no-pic:-fPIC}}} That's sad. > We can change this to be Darwin-specific if you prefer, but we should > maintain compatibility with GCC and previous Clang releases in this behavior. Yes, the broken behavior should b

Re: [PATCH] D15455: [Driver] Let -static override the toolchain default PIC setting.

2015-12-16 Thread Bob Wilson via cfe-commits
bob.wilson added a subscriber: bob.wilson. bob.wilson added a comment. There has been a long-standing convention in both gcc and clang for Darwin that -static changes the default for PIC. Changing that convention is breaking stuff for us. The commit message for r245667 says "This new behavior al

Re: [PATCH] D15455: [Driver] Let -static override the toolchain default PIC setting.

2015-12-11 Thread Paul Robinson via cfe-commits
probinson added a comment. PS4 rejects -static unconditionally, so in that sense changing what it means doesn't matter to us. (But I really appreciate being asked!) Still, abstractly it seems like -static doesn't really imply noPIC. http://reviews.llvm.org/D15455 __

Re: [PATCH] D15455: [Driver] Let -static override the toolchain default PIC setting.

2015-12-11 Thread Joerg Sonnenberger via cfe-commits
On Fri, Dec 11, 2015 at 07:49:25PM +, Frederic Riss wrote: > friss added a comment. > > Just because it makes the behavior more intuitive? If you toolchain > does PIC by default, it's because you are mostly building shared > objects. When you are building a static object, it's highly likely >

Re: [PATCH] D15455: [Driver] Let -static override the toolchain default PIC setting.

2015-12-11 Thread James Y Knight via cfe-commits
jyknight added a comment. In http://reviews.llvm.org/D15455#308532, @joerg wrote: > As before, I don't see why a linker flag should change code generation. That > seems to be a gross violation of layering and quite surprising. I agree. http://reviews.llvm.org/D15455 __

Re: [PATCH] D15455: [Driver] Let -static override the toolchain default PIC setting.

2015-12-11 Thread Frederic Riss via cfe-commits
friss added reviewers: silvas, probinson. friss added a comment. Adding some SCE people, as their platform would be impacted by that change. http://reviews.llvm.org/D15455 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org

Re: [PATCH] D15455: [Driver] Let -static override the toolchain default PIC setting.

2015-12-11 Thread Frederic Riss via cfe-commits
friss added a comment. Just because it makes the behavior more intuitive? If you toolchain does PIC by default, it's because you are mostly building shared objects. When you are building a static object, it's highly likely that you don't need PIC. There should be a way to enable it, but I find

Re: [PATCH] D15455: [Driver] Let -static override the toolchain default PIC setting.

2015-12-11 Thread Joerg Sonnenberger via cfe-commits
joerg added a comment. As before, I don't see why a linker flag should change code generation. That seems to be a gross violation of layering and quite surprising. http://reviews.llvm.org/D15455 ___ cfe-commits mailing list cfe-commits@lists.llvm.o

[PATCH] D15455: [Driver] Let -static override the toolchain default PIC setting.

2015-12-11 Thread Frederic Riss via cfe-commits
friss created this revision. friss added reviewers: jyknight, rnk, joerg. friss added a subscriber: cfe-commits. In r245667 -static was changed not to disable -fPIC as they control 2 different concepts. On toolchains that enable -fPIC by default, this means that now you have to pass "-static -fno-