Re: r316046 - Basic: fix __{,U}INTPTR_TYPE__ on ARM

2017-10-18 Thread Joerg Sonnenberger via cfe-commits
On Wed, Oct 18, 2017 at 12:00:51AM -, Saleem Abdulrasool via cfe-commits wrote: > Author: compnerd > Date: Tue Oct 17 17:00:50 2017 > New Revision: 316046 > > URL: http://llvm.org/viewvc/llvm-project?rev=316046&view=rev > Log: > Basic: fix __{,U}INTPTR_TYPE__ on ARM > > Darwin and OpenBSD ar

Re: r341475 - Fix arm_neon.h and arm_fp16.h generation for compiling with std=c89

2018-09-05 Thread Joerg Sonnenberger via cfe-commits
On Wed, Sep 05, 2018 at 02:56:21PM -, Diogo N. Sampaio via cfe-commits wrote: > Author: dnsampaio > Date: Wed Sep 5 07:56:21 2018 > New Revision: 341475 > > URL: http://llvm.org/viewvc/llvm-project?rev=341475&view=rev > Log: > Fix arm_neon.h and arm_fp16.h generation for compiling with std=c

Re: [PATCH] D43203: [Driver] Generate .eh_frame_hdr for static executables too.

2018-02-12 Thread Joerg Sonnenberger via cfe-commits
On Mon, Feb 12, 2018 at 08:54:56PM +, Stephen Hines via Phabricator via cfe-commits wrote: > srhines added a comment. > > LGTM, but we should make sure that there are no objections, especially since > there is no rationale for why this was present to begin with. Older versions of the GNU un

Re: r303317 - The constant expression evaluator should examine function arguments for non-constexpr function calls unless the EvalInfo says to stop.

2017-05-30 Thread Joerg Sonnenberger via cfe-commits
On Wed, May 17, 2017 at 11:56:55PM -, Nick Lewycky via cfe-commits wrote: > Author: nicholas > Date: Wed May 17 18:56:54 2017 > New Revision: 303317 > > URL: http://llvm.org/viewvc/llvm-project?rev=303317&view=rev > Log: > The constant expression evaluator should examine function arguments for

Re: r297702 - [CodeGen][ObjC] Fix a bug where the type of an ivar wasn't encoded

2017-06-01 Thread Joerg Sonnenberger via cfe-commits
On Tue, Mar 14, 2017 at 04:00:53AM -, Akira Hatanaka via cfe-commits wrote: > Author: ahatanak > Date: Mon Mar 13 23:00:52 2017 > New Revision: 297702 > > URL: http://llvm.org/viewvc/llvm-project?rev=297702&view=rev > Log: > [CodeGen][ObjC] Fix a bug where the type of an ivar wasn't encoded >

Re: r303317 - The constant expression evaluator should examine function arguments for non-constexpr function calls unless the EvalInfo says to stop.

2017-06-10 Thread Joerg Sonnenberger via cfe-commits
On Tue, May 30, 2017 at 07:01:22PM -0700, Nick Lewycky wrote: > Joerg Sonnenberger wrote: > > On Wed, May 17, 2017 at 11:56:55PM -, Nick Lewycky via cfe-commits > > wrote: > > > Author: nicholas > > > Date: Wed May 17 18:56:54 2017 > > > New Revision: 303317 > > > > > > URL: http://llvm.org/v

Re: r297702 - [CodeGen][ObjC] Fix a bug where the type of an ivar wasn't encoded

2017-06-12 Thread Joerg Sonnenberger via cfe-commits
On Thu, Jun 01, 2017 at 05:58:41PM -0700, Akira Hatanaka wrote: > It crashes when there is an anonymous ivar of a bitfield type. > > @interface FormatScanner { > int : 1; > } > @end > > @implementation FormatScanner > @end > > I'm not sure if the code above is valid or not, but out of curiosit

Re: r305600 - [Driver] Do a PATH lookup if needed when using -no-canonical-prefixes

2017-06-16 Thread Joerg Sonnenberger via cfe-commits
On Fri, Jun 16, 2017 at 10:40:18PM -, Petr Hosek via cfe-commits wrote: > @@ -53,8 +53,15 @@ using namespace clang::driver; > using namespace llvm::opt; > > std::string GetExecutablePath(const char *Argv0, bool CanonicalPrefixes) { > - if (!CanonicalPrefixes) > -return Argv0; > + if (

Re: r297702 - [CodeGen][ObjC] Fix a bug where the type of an ivar wasn't encoded

2017-06-22 Thread Joerg Sonnenberger via cfe-commits
On Mon, Jun 12, 2017 at 09:03:10PM +0200, Joerg Sonnenberger wrote: > On Thu, Jun 01, 2017 at 05:58:41PM -0700, Akira Hatanaka wrote: > > It crashes when there is an anonymous ivar of a bitfield type. > > > > @interface FormatScanner { > > int : 1; > > } > > @end > > > > @implementation FormatS

Re: r297702 - [CodeGen][ObjC] Fix a bug where the type of an ivar wasn't encoded

2017-06-22 Thread Joerg Sonnenberger via cfe-commits
On Thu, Jun 22, 2017 at 11:09:48AM -0700, Akira Hatanaka wrote: > Do you want the same encoding for the bitfield “int : 1” you saw before > r297792, which is just “i"? > > The encoding for bitfield is normally bN where N is the number of bits, > but the comment in function EncodeBitField says GNU

Re: r350776 - [Sema] Mark target of __attribute__((alias("target"))) used for C

2019-01-11 Thread Joerg Sonnenberger via cfe-commits
On Thu, Jan 10, 2019 at 09:58:39AM -0800, Nick Desaulniers via cfe-commits wrote: > On Thu, Jan 10, 2019 at 7:26 AM Nico Weber wrote: > > > > Aren't C names sometimes slightly mangled too? For example, on macOS > > they're prefixed by a _, doesn't that have to be undone there? > > Sure, but sho

Re: [PATCH] D53922: [clangd] fix non linux build

2018-11-02 Thread Joerg Sonnenberger via cfe-commits
On Wed, Oct 31, 2018 at 08:53:03AM +, Sam McCall via Phabricator via cfe-commits wrote: > sammccall accepted this revision. > sammccall added a comment. > This revision is now accepted and ready to land. > > Thanks! > We should work out what to do on BSD+Mac (and windows at some point), but

r354937 - Fix inline assembler constraint validation

2019-02-26 Thread Joerg Sonnenberger via cfe-commits
Author: joerg Date: Tue Feb 26 16:40:59 2019 New Revision: 354937 URL: http://llvm.org/viewvc/llvm-project?rev=354937&view=rev Log: Fix inline assembler constraint validation The current constraint logic is both too lax and too strict. It fails for input outside the [INT_MIN..INT_MAX] range, but

r355033 - Use Secure PLT as default on NetBSD/PowerPC.

2019-02-27 Thread Joerg Sonnenberger via cfe-commits
Author: joerg Date: Wed Feb 27 13:46:01 2019 New Revision: 355033 URL: http://llvm.org/viewvc/llvm-project?rev=355033&view=rev Log: Use Secure PLT as default on NetBSD/PowerPC. Modified: cfe/trunk/lib/Driver/ToolChains/Arch/PPC.cpp cfe/trunk/test/Driver/netbsd.c Modified: cfe/trunk/lib/D

r355058 - Ensure that set constrained asm operands are not affected by truncation.

2019-02-27 Thread Joerg Sonnenberger via cfe-commits
Author: joerg Date: Wed Feb 27 16:55:09 2019 New Revision: 355058 URL: http://llvm.org/viewvc/llvm-project?rev=355058&view=rev Log: Ensure that set constrained asm operands are not affected by truncation. Modified: cfe/trunk/include/clang/Basic/TargetInfo.h cfe/trunk/test/Sema/inline-asm-

Re: [PATCH] D60728: [clang] [test] Add a (xfailing) test for PR41027

2019-04-17 Thread Joerg Sonnenberger via cfe-commits
On Wed, Apr 17, 2019 at 05:34:04PM +, Kamil Rytarowski via Phabricator wrote: > Right now this blocks upgrades on NetBSD as a number of CPUs is affected (but > not x86, so it was overlooked before 8.0 by others than @joerg). Note that this is not about anything really specific to NetBSD, the

Re: r312595 - [Darwin] Enable -fstack-protector (back) by default with -ffreestanding

2017-09-05 Thread Joerg Sonnenberger via cfe-commits
On Tue, Sep 05, 2017 at 11:50:58PM -, Bruno Cardoso Lopes via cfe-commits wrote: > Modified: cfe/trunk/lib/Driver/ToolChains/Clang.cpp > URL: > http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains/Clang.cpp?rev=312595&r1=312594&r2=312595&view=diff >

Re: [PATCH] D34158: For Linux/gnu compatibility, preinclude if the file is available

2017-09-12 Thread Joerg Sonnenberger via cfe-commits
On Tue, Sep 12, 2017 at 08:12:26PM +, Blower, Melanie via cfe-commits wrote: > How is platform opt-in accomplished, is it part of the configure step? It is part of the Linux toolchain, other platforms interested in this or equivalent functionality would have to duplicate the hook. Joerg _

Re: [PATCH] D55828: [clang] [Driver] Disable -faddrsig by default on NetBSD

2018-12-19 Thread Joerg Sonnenberger via cfe-commits
On Tue, Dec 18, 2018 at 04:35:54PM +, Michał Górny via Phabricator via cfe-commits wrote: > mgorny created this revision. > mgorny added reviewers: krytarowski, pcc. > > Avoid passing -faddrsig by default on NetBSD. This platform is still > using old GNU binutils that crashes on executables

Re: r349752 - Replace getOS() == llvm::Triple::*BSD with isOS*BSD() [NFCI]

2018-12-20 Thread Joerg Sonnenberger via cfe-commits
On Thu, Dec 20, 2018 at 01:09:30PM -, Michal Gorny via cfe-commits wrote: > Author: mgorny > Date: Thu Dec 20 05:09:30 2018 > New Revision: 349752 > > URL: http://llvm.org/viewvc/llvm-project?rev=349752&view=rev > Log: > Replace getOS() == llvm::Triple::*BSD with isOS*BSD() [NFCI] > > Replace

Re: [PATCH] D56044: [Driver] Support object files in addition to static and shared libraries in compiler-rt

2019-01-01 Thread Joerg Sonnenberger via cfe-commits
On Sat, Dec 22, 2018 at 03:22:11AM +, Petr Hosek via Phabricator via cfe-commits wrote: > phosek created this revision. > phosek added a reviewer: echristo. > Herald added subscribers: cfe-commits, atanasyan, jrtc27, dberris, sdardis. > > This change introduces support for object files in add

Re: [PATCH] D56215: [lld] [ELF] Include default search paths for NetBSD driver

2019-01-03 Thread Joerg Sonnenberger via cfe-commits
On Thu, Jan 03, 2019 at 06:34:22PM +, Kamil Rytarowski via Phabricator via cfe-commits wrote: > krytarowski added a comment. > > Actually I find it frustrating and unfair as GNU ld doesn't have builtin > knowledge either.. it's passed with gross 'super hack' comments from build > scripts...

Re: [PATCH] D56215: [lld] [ELF] Include default search paths for NetBSD driver

2019-01-03 Thread Joerg Sonnenberger via cfe-commits
On Thu, Jan 03, 2019 at 06:58:41PM +, Kamil Rytarowski via Phabricator wrote: > But the result is that we don't have GNU gold either and are stuck with > 40min linking times of LLVM. It's destructive to productivity and > damages any LLVM related development. The reason noone cared much about

Re: [PATCH] D17741: adds __FILE_BASENAME__ builtin macro

2019-01-03 Thread Joerg Sonnenberger via cfe-commits
On Thu, Jan 03, 2019 at 05:01:00PM +, Ximin Luo via cfe-commits wrote: > My patch that Roman quoted in the email below was an additional > mechanism to set -fmacro-prefix-map and -fdebug-prefix-map via an > environment variable. This was not accepted into GCC because they are > (in summary) all

Re: [PATCH] D56215: [lld] [ELF] Include default search paths for NetBSD driver

2019-01-03 Thread Joerg Sonnenberger via cfe-commits
On Thu, Jan 03, 2019 at 08:31:53PM +, Kamil Rytarowski via Phabricator via cfe-commits wrote: > krytarowski added a comment. > > On 03.01.2019 21:19, Joerg Sonnenberger wrote: > > > On Thu, Jan 03, 2019 at 06:34:22PM +, Kamil Rytarowski via Phabricator > > via cfe-commits wrote: > > >

Re: [PATCH] D56215: [lld] [ELF] Include default search paths for NetBSD driver

2019-01-03 Thread Joerg Sonnenberger via cfe-commits
On Thu, Jan 03, 2019 at 09:38:49PM +, Kamil Rytarowski via Phabricator via cfe-commits wrote: > I think that this place is not the right place to bash GNU ld for performance > issues. I didn't. > I will refer just to slides and paper from Ian Lance Taylor to get overview > why it is unacce

Re: [PATCH] D56215: [lld] [ELF] Include default search paths for NetBSD driver

2019-01-03 Thread Joerg Sonnenberger via cfe-commits
On Thu, Jan 03, 2019 at 10:26:38PM +, Rui Ueyama via Phabricator via cfe-commits wrote: > I see there are pros and cons to not have host-specific config in ld. > That said, if other operating systems can live without host-specific > config in lld, why can't NetBSD do? I really don't like to be

Re: [PATCH] D56215: [lld] [ELF] Include default search paths for NetBSD driver

2019-01-04 Thread Joerg Sonnenberger via cfe-commits
On Fri, Jan 04, 2019 at 05:52:46AM +, Michał Górny via Phabricator via llvm-commits wrote: > mgorny added a comment. > > For the record, another option is to actually fix other software not to call > LD directly. See thousand monkeys. It doesn't really scale. Joerg

Re: [PATCH] D56215: [lld] [ELF] Include default search paths for NetBSD driver

2019-01-04 Thread Joerg Sonnenberger via cfe-commits
On Fri, Jan 04, 2019 at 02:48:35PM +, Alexander Richardson via Phabricator wrote: > Or if you really need to call the linker directly without specifying > search paths you could also install a shell script as /usr/bin/ld that > passes the appropriate flags to /usr/bin/ld.lld? That's not a hon

Re: [PATCH] D56215: [lld] [ELF] Include default search paths for NetBSD driver

2019-01-08 Thread Joerg Sonnenberger via cfe-commits
On Tue, Jan 08, 2019 at 10:58:37PM +, Alexander Richardson via Phabricator via cfe-commits wrote: > arichardson added inline comments. > > > > Comment at: ELF/Driver.cpp:770 > + // Start with a default initial triple > + Config->TargetTriple = llvm::Triple(getDefaultTarget

Re: [PATCH] D56215: [lld] [ELF] Include default search paths for NetBSD driver

2019-01-08 Thread Joerg Sonnenberger via cfe-commits
On Wed, Jan 09, 2019 at 12:20:06AM +, Kamil Rytarowski via Phabricator via llvm-commits wrote: > krytarowski added inline comments. > > > > Comment at: ELF/Driver.cpp:781 > + } > +} > + > > There is need to add a fallback for a native triple. Not really. T

r336947 - Support linking static PIE binaries on NetBSD

2018-07-12 Thread Joerg Sonnenberger via cfe-commits
Author: joerg Date: Thu Jul 12 14:21:29 2018 New Revision: 336947 URL: http://llvm.org/viewvc/llvm-project?rev=336947&view=rev Log: Support linking static PIE binaries on NetBSD Modified: cfe/trunk/lib/Driver/ToolChains/NetBSD.cpp cfe/trunk/test/Driver/netbsd.c Modified: cfe/trunk/lib/Dr

r337271 - By popular demand, switch in64_t on NetBSD/AArch64 and NetBSD/PowerPC64

2018-07-17 Thread Joerg Sonnenberger via cfe-commits
Author: joerg Date: Tue Jul 17 05:33:19 2018 New Revision: 337271 URL: http://llvm.org/viewvc/llvm-project?rev=337271&view=rev Log: By popular demand, switch in64_t on NetBSD/AArch64 and NetBSD/PowerPC64 to long for consistency with other 64bit platforms. Modified: cfe/trunk/lib/Basic/Targets

r337274 - For NetBSD, unwind data is emitted by default, so also enable frame

2018-07-17 Thread Joerg Sonnenberger via cfe-commits
Author: joerg Date: Tue Jul 17 05:38:57 2018 New Revision: 337274 URL: http://llvm.org/viewvc/llvm-project?rev=337274&view=rev Log: For NetBSD, unwind data is emitted by default, so also enable frame pointer optimisation by default when using optimisation. Modified: cfe/trunk/lib/Driver/ToolC

r337277 - Always use __mcount on NetBSD. Some platforms don't provide _mcount.

2018-07-17 Thread Joerg Sonnenberger via cfe-commits
Author: joerg Date: Tue Jul 17 06:13:34 2018 New Revision: 337277 URL: http://llvm.org/viewvc/llvm-project?rev=337277&view=rev Log: Always use __mcount on NetBSD. Some platforms don't provide _mcount. Modified: cfe/trunk/lib/Basic/Targets/OSTargets.h cfe/trunk/test/CodeGen/mcount.c cf

[libunwind] r337312 - The semantics of DW_CFA_GNU_args_size have changed subtile over the

2018-07-17 Thread Joerg Sonnenberger via cfe-commits
Author: joerg Date: Tue Jul 17 12:00:51 2018 New Revision: 337312 URL: http://llvm.org/viewvc/llvm-project?rev=337312&view=rev Log: The semantics of DW_CFA_GNU_args_size have changed subtile over the years. Adopt the new convention that it is call-site specific and that it should be applied before

r374742 - Improve __builtin_constant_p lowering

2019-10-13 Thread Joerg Sonnenberger via cfe-commits
Author: joerg Date: Sun Oct 13 15:33:46 2019 New Revision: 374742 URL: http://llvm.org/viewvc/llvm-project?rev=374742&view=rev Log: Improve __builtin_constant_p lowering __builtin_constant_p used to be short-cut evaluated to false when building with -O0. This is undesirable as it means that const

r375468 - Fix -fuse-init-array decision logic on NetBSD

2019-10-21 Thread Joerg Sonnenberger via cfe-commits
Author: joerg Date: Mon Oct 21 16:35:33 2019 New Revision: 375468 URL: http://llvm.org/viewvc/llvm-project?rev=375468&view=rev Log: Fix -fuse-init-array decision logic on NetBSD For NetBSD 9 and later, it is the default. On older versions, only ARM and AArch64 use it by default. Modified: cf

Re: [clang] b670ab7 - recommit 1b978ddba05c [CUDA][HIP][OpenMP] Emit deferred diagnostics by a post-parsing AST travese

2020-04-05 Thread Joerg Sonnenberger via cfe-commits
On Mon, Mar 23, 2020 at 09:09:31AM -0700, Yaxun Liu via cfe-commits wrote: > > Author: Yaxun (Sam) Liu > Date: 2020-03-23T12:09:07-04:00 > New Revision: b670ab7b6b3d2f26179213be1da1d4ba376f50a3 > > URL: > https://github.com/llvm/llvm-project/commit/b670ab7b6b3d2f26179213be1da1d4ba376f50a3 > DIFF

Re: [clang] 246398e - [clang][Parse] properly parse asm-qualifiers, asm inline

2020-04-12 Thread Joerg Sonnenberger via cfe-commits
On Thu, Mar 12, 2020 at 03:25:49PM -0700, Nick Desaulniers via cfe-commits wrote: > > Author: Nick Desaulniers > Date: 2020-03-12T15:13:59-07:00 > New Revision: 246398ece7115b57a02dbe7876d86ae8e72406ef > > URL: > https://github.com/llvm/llvm-project/commit/246398ece7115b57a02dbe7876d86ae8e72406

[clang] 9d2d6e7 - Emit Objective-C constructors as writable

2020-04-14 Thread Joerg Sonnenberger via cfe-commits
Author: Joerg Sonnenberger Date: 2020-04-14T22:32:34+02:00 New Revision: 9d2d6e71f096ad43b178c576adf94fc922034c73 URL: https://github.com/llvm/llvm-project/commit/9d2d6e71f096ad43b178c576adf94fc922034c73 DIFF: https://github.com/llvm/llvm-project/commit/9d2d6e71f096ad43b178c576adf94fc922034c73.

Re: r281277 - [Sema] Fix PR30346: relax __builtin_object_size checks.

2016-09-20 Thread Joerg Sonnenberger via cfe-commits
On Mon, Sep 19, 2016 at 09:21:33PM -0700, George Burgess IV wrote: > I'm entirely unfamiliar with struct-path-tbaa, so Hal, do you see a reason > why struct-path-tbaa wouldn't play nicely with flexible arrays at the end > of types? Glancing at it, I don't think it should cause problems, but a > mor

Re: [libcxx] r282483 - [cmake] Add linker option "-Wl, -z, defs" in standalone build

2016-09-27 Thread Joerg Sonnenberger via cfe-commits
On Tue, Sep 27, 2016 at 12:15:35PM -, Michal Gorny via cfe-commits wrote: > Author: mgorny > Date: Tue Sep 27 07:15:35 2016 > New Revision: 282483 > > URL: http://llvm.org/viewvc/llvm-project?rev=282483&view=rev > Log: > [cmake] Add linker option "-Wl,-z,defs" in standalone build > > Add the

Re: [PATCH] D24861: [Sema] extend Wshift-op-parentheses so it warns for multiplicative operators

2016-09-27 Thread Joerg Sonnenberger via cfe-commits
joerg added a subscriber: joerg. joerg added a comment. I think the comment from Daniel shows the crux of the issue. A left shift is by nature a multiplication operation, so I don't see why it should get the warning. A right shift works like a division and order is quite significant for that.

Re: [PATCH] D24861: [Sema] extend Wshift-op-parentheses so it warns for multiplicative operators

2016-10-01 Thread Joerg Sonnenberger via cfe-commits
On Fri, Sep 30, 2016 at 03:41:53PM -0700, Richard Trieu via cfe-commits wrote: > Currently, this warning is on by default. As you said, the results you > found look intentional in many cases, so there is a high false positive > rate. For on by default warnings, we expect a high true positive rate

Re: r278483 - This patch implements PR#22821.

2016-10-01 Thread Joerg Sonnenberger via cfe-commits
On Fri, Aug 12, 2016 at 08:04:13AM -, Roger Ferrer Ibanez via cfe-commits wrote: > Author: rogfer01 > Date: Fri Aug 12 03:04:13 2016 > New Revision: 278483 > > URL: http://llvm.org/viewvc/llvm-project?rev=278483&view=rev > Log: > This patch implements PR#22821. > > Taking the address of a pa

Re: r278483 - This patch implements PR#22821.

2016-10-01 Thread Joerg Sonnenberger via cfe-commits
On Sat, Oct 01, 2016 at 11:28:39PM +0200, Joerg Sonnenberger via cfe-commits wrote: > On Fri, Aug 12, 2016 at 08:04:13AM -, Roger Ferrer Ibanez via cfe-commits > wrote: > > Author: rogfer01 > > Date: Fri Aug 12 03:04:13 2016 > > New Revision: 278483 > > > &

[PATCH] D25161: [cmake] Install 'clang-cpp' symlink

2016-10-02 Thread Joerg Sonnenberger via cfe-commits
joerg accepted this revision. joerg added a reviewer: joerg. joerg added a comment. This revision is now accepted and ready to land. LGTM, have been doing that in NetBSD for ages as well. Side note, someone from Apple please make sure that xcode gets a similar link. https://reviews.llvm.org/D25

Re: r278483 - This patch implements PR#22821.

2016-10-03 Thread Joerg Sonnenberger via cfe-commits
On Mon, Oct 03, 2016 at 07:10:08AM +, Roger Ferrer Ibanez wrote: > Hi Joerg, > > thanks for your comments. I agree that these false positives are annoying. > > I submitted a while ago a patch to address those false positives in > https://reviews.llvm.org/D23657 but it is pending approval. I'

[PATCH] D23657: Remove some false positives when taking the address of packed members

2016-10-03 Thread Joerg Sonnenberger via cfe-commits
joerg added a comment. The following is from my comment on the original commit. I'm trying this patch now. Two instances here show false positives. Some others are misuse/overuse of __packed, it is time consuming to check all of them. - sbin/route https://nxr.netbsd.org/xref/src/sbin/route/rout

[PATCH] D23657: Remove some false positives when taking the address of packed members

2016-10-04 Thread Joerg Sonnenberger via cfe-commits
joerg added a comment. Seems to work for the false positives I have identified so far. https://reviews.llvm.org/D23657 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25402: [Driver] Pass -lunwind when using libc++ + compiler-rt

2016-10-08 Thread Joerg Sonnenberger via cfe-commits
joerg added a comment. So, what's the test change that matches the difference in output this creates? https://reviews.llvm.org/D25402 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25402: [Driver] Pass -lunwind when using libc++ + compiler-rt

2016-10-09 Thread Joerg Sonnenberger via cfe-commits
joerg added a comment. No, they are not desirable, in fact, they pretty much break clang. That's why I wanted to see the test diff... https://reviews.llvm.org/D25402 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-

[PATCH] D25402: [Driver] Pass -lunwind when using libc++ + compiler-rt

2016-10-09 Thread Joerg Sonnenberger via cfe-commits
joerg added a comment. I don't agree with the motivation for this change, BTW. Whether -lunwind is needed or not is an implementation detail of the way the ABI implementation is linked. That's why libc++ is now a linker script, to hide this kinds of implementation details. https://reviews.llv

[PATCH] D25402: [Driver] Pass -lunwind when using libc++ + compiler-rt on Linux

2016-10-10 Thread Joerg Sonnenberger via cfe-commits
joerg added a comment. It's difficult to say whether if one change to certain driver functions affect some target or not. That's one reason why the test change is so important. Looking at the latest version, I still don't understand why the change for Linux is needed. libc++ should provide a li

[PATCH] D23657: Remove some false positives when taking the address of packed members

2016-10-11 Thread Joerg Sonnenberger via cfe-commits
joerg added a comment. A simple case that still seems to fail: #include struct foo { uint32_t x; uint8_t y[2]; uint16_t z; } __attribute__((__packed__)); typedef struct foo __attribute__((__aligned__(16))) aligned_foo; int main(void) { struct foo x; struct

[PATCH] D23657: Remove some false positives when taking the address of packed members

2016-10-12 Thread Joerg Sonnenberger via cfe-commits
joerg added inline comments. Comment at: lib/Sema/SemaChecking.cpp:11370 +// we are here such increase has not been enough. So pointing the first +// FieldDecl that either is packed orelse its RecordDecl is, +// seems reasonable. Missing space. http

Re: [libunwind] r284125 - [libunwind] Add missing include. NFC.

2016-10-13 Thread Joerg Sonnenberger via cfe-commits
On Thu, Oct 13, 2016 at 02:32:24PM -, Asiri Rathnayake via cfe-commits wrote: > This missing include seems to cause compilation failures on older MacOS > versions (< 10.9). This is because r270692 has introduced uint64_t into > config.h without including this header. But that would be inttype

[PATCH] D23657: Remove some false positives when taking the address of packed members

2016-10-14 Thread Joerg Sonnenberger via cfe-commits
joerg added a comment. It seems like on-stack arrays still don't work? #include struct test { uint32_t x; } __attribute__((__packed__)); int main(void) { struct test __attribute__((__aligned__(4))) a[4]; uint32_t *p32; p32 = &a[0].x; } https://reviews.llvm.org/D

Re: [clang] c149ff3 - [Driver] Link Flang runtime on FreeBSD, NetBSD, OpenBSD, DragonFly and Haiku (#69817)

2023-10-27 Thread Joerg Sonnenberger via cfe-commits
On Friday, October 27, 2023 10:43:23 AM CEST via cfe-commits wrote: > Author: Brad Smith > Date: 2023-10-27T04:43:19-04:00 > New Revision: c149ff3d372a70e7d9de838a1ff0357394b8d017 > > URL: > https://github.com/llvm/llvm-project/commit/c149ff3d372a70e7d9de838a1ff0357 > 394b8d017 DIFF: > https://git

Re: [PATCH] D66361: Improve behavior in the case of stack exhaustion.

2019-09-03 Thread Joerg Sonnenberger via cfe-commits
On Tue, Sep 03, 2019 at 06:02:28PM +, Richard Smith - zygoloid via Phabricator via cfe-commits wrote: > rsmith added a comment. > > In D66361#1655903 , @krytarowski > wrote: > > > This change broke on NetBSD. > > > > http://lab.llvm.org:8011/builders

Re: [PATCH] D67200: Add -static-openmp driver option

2019-09-06 Thread Joerg Sonnenberger via cfe-commits
On Wed, Sep 04, 2019 at 11:28:34PM +, Pirama Arumuga Nainar via Phabricator via cfe-commits wrote: > pirama created this revision. > pirama added reviewers: Hahnfeld, danalbert, srhines, joerg. > Herald added a subscriber: guansong. > Herald added a reviewer: jdoerfert. > Herald added a projec

Re: r371437 - [Driver] Add -static-openmp driver option

2019-09-09 Thread Joerg Sonnenberger via cfe-commits
On Mon, Sep 09, 2019 at 06:31:41PM -, Pirama Arumuga Nainar via cfe-commits wrote: > Author: pirama > Date: Mon Sep 9 11:31:41 2019 > New Revision: 371437 > > URL: http://llvm.org/viewvc/llvm-project?rev=371437&view=rev > Log: > [Driver] Add -static-openmp driver option This still needs tes

Re: r309940 - [mips] Implement -muninit-const-in-rodata

2017-08-03 Thread Joerg Sonnenberger via cfe-commits
On Thu, Aug 03, 2017 at 02:01:17PM -, Simon Dardis via cfe-commits wrote: > Author: sdardis > Date: Thu Aug 3 07:01:17 2017 > New Revision: 309940 > > URL: http://llvm.org/viewvc/llvm-project?rev=309940&view=rev > Log: > [mips] Implement -muninit-const-in-rodata > > This option when combined

[libcxx] r311156 - Spelling

2017-08-18 Thread Joerg Sonnenberger via cfe-commits
Author: joerg Date: Fri Aug 18 05:57:36 2017 New Revision: 311156 URL: http://llvm.org/viewvc/llvm-project?rev=311156&view=rev Log: Spelling Modified: libcxx/trunk/include/__tree Modified: libcxx/trunk/include/__tree URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/__tree?rev=3

[clang] 2628e91 - [NetBSD] Use cortex-a8 as default CPU for ARMv7

2021-02-17 Thread Joerg Sonnenberger via cfe-commits
Author: Joerg Sonnenberger Date: 2021-02-18T01:53:04+01:00 New Revision: 2628e9146120507b2cf025f5c4ccc857cc3724c4 URL: https://github.com/llvm/llvm-project/commit/2628e9146120507b2cf025f5c4ccc857cc3724c4 DIFF: https://github.com/llvm/llvm-project/commit/2628e9146120507b2cf025f5c4ccc857cc3724c4.

Re: [clang] e6629be - [AIX] Define __STDC_NO_ATOMICS__ and __STDC_NO_THREADS__ predefined macros

2021-06-08 Thread Joerg Sonnenberger via cfe-commits
On Mon, Jun 07, 2021 at 07:04:36PM -0700, via cfe-commits wrote: > > Author: =Jake Egan > Date: 2021-06-07T22:04:18-04:00 > New Revision: e6629be31e67190f0a524f009752d73410894560 > > URL: > https://github.com/llvm/llvm-project/commit/e6629be31e67190f0a524f009752d73410894560 > DIFF: > https://gi

Re: How can Autoconf help with the transition to stricter compilation defaults?

2022-11-17 Thread Joerg Sonnenberger via cfe-commits
Am Thu, Nov 17, 2022 at 10:58:52AM -0800 schrieb Paul Eggert via cfe-commits: > On 2022-11-16 10:59, Zack Weinberg wrote: > > I'm generally in agreement with Rich Felker's argument > > (inhttps://ewontfix.com/13/) that AC_CHECK_FUNC*should not* just probe for > > linkability of a symbol > > So

[libunwind] [libunwind] Pass -Wl,--export-dynamic on all supported platforms (PR #67205)

2023-09-25 Thread Joerg Sonnenberger via cfe-commits
jsonn wrote: Is this really desirable? It can actually break applications as it changes ELF semantics. https://github.com/llvm/llvm-project/pull/67205 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[libunwind] [libunwind] Pass -Wl,--export-dynamic on all supported platforms (PR #67205)

2023-09-25 Thread Joerg Sonnenberger via cfe-commits
jsonn wrote: Can you as a small follow-up just update the comment to include that part? E.g. ``` # On ELF platforms, link tests with -Wl,--export-dynamic if supported by the linker. ``` Side note: the much older way for doing this is actually `-rdynamic`. https://github.com/llvm/llvm-project/p

[clang] 09d4021 - Fix compatibility for __builtin_stdarg_start

2020-03-28 Thread Joerg Sonnenberger via cfe-commits
Author: Joerg Sonnenberger Date: 2020-03-28T23:24:13+01:00 New Revision: 09d402185394fdbf1f60233a7f42a4a1108c2cd3 URL: https://github.com/llvm/llvm-project/commit/09d402185394fdbf1f60233a7f42a4a1108c2cd3 DIFF: https://github.com/llvm/llvm-project/commit/09d402185394fdbf1f60233a7f42a4a1108c2cd3.

[clang] eb812ef - Explicitly include when using assert

2020-03-02 Thread Joerg Sonnenberger via cfe-commits
Author: Joerg Sonnenberger Date: 2020-03-02T22:45:28+01:00 New Revision: eb812efa12fb82ca338794fa18b610ca9581aef5 URL: https://github.com/llvm/llvm-project/commit/eb812efa12fb82ca338794fa18b610ca9581aef5 DIFF: https://github.com/llvm/llvm-project/commit/eb812efa12fb82ca338794fa18b610ca9581aef5.

Re: r328040 - Set dso_local on string literals.

2018-03-20 Thread Joerg Sonnenberger via cfe-commits
On Tue, Mar 20, 2018 at 08:42:55PM -, Rafael Espindola via cfe-commits wrote: > Author: rafael > Date: Tue Mar 20 13:42:55 2018 > New Revision: 328040 > > URL: http://llvm.org/viewvc/llvm-project?rev=328040&view=rev > Log: > Set dso_local on string literals. I wonder if unnamed_addr shouldn'

Re: r328040 - Set dso_local on string literals.

2018-03-22 Thread Joerg Sonnenberger via cfe-commits
On Tue, Mar 20, 2018 at 05:01:24PM -0700, Rafael Avila de Espindola wrote: > Joerg Sonnenberger via cfe-commits writes: > > > On Tue, Mar 20, 2018 at 08:42:55PM -, Rafael Espindola via cfe-commits > > wrote: > >> Author: rafael > >> Date: Tue Mar 20 13:

r289744 - Use PIC relocation mode by default for PowerPC64 ELF

2016-12-14 Thread Joerg Sonnenberger via cfe-commits
Author: joerg Date: Wed Dec 14 18:02:57 2016 New Revision: 289744 URL: http://llvm.org/viewvc/llvm-project?rev=289744&view=rev Log: Use PIC relocation mode by default for PowerPC64 ELF Most of the PowerPC64 code generation already creates PIC access. This changes to a full PIC default, similar to

Re: r290533 - Driver: warn on -fPIC/-fpic/-fPIE/-fpie on Windows

2016-12-27 Thread Joerg Sonnenberger via cfe-commits
On Mon, Dec 26, 2016 at 03:35:25AM -, Saleem Abdulrasool via cfe-commits wrote: > Driver: warn on -fPIC/-fpic/-fPIE/-fpie on Windows Can we please invert this behavior? Complain if the effective PIC mode is not level 2 and silently ignore it otherwise? I find the MinGW warnings to be highly a

Re: r290533 - Driver: warn on -fPIC/-fpic/-fPIE/-fpie on Windows

2016-12-27 Thread Joerg Sonnenberger via cfe-commits
On Tue, Dec 27, 2016 at 12:41:08PM -0800, Saleem Abdulrasool wrote: > Id really rather not change the behavior. We would generate ELF style PIC, > which obviously doesn't work. That's not what I mean. I simply say that we should ignore -fPIC/-fpic/-fPIE/-fpie on Windows, silently. The relality is

r291148 - Typo

2017-01-05 Thread Joerg Sonnenberger via cfe-commits
Author: joerg Date: Thu Jan 5 11:59:44 2017 New Revision: 291148 URL: http://llvm.org/viewvc/llvm-project?rev=291148&view=rev Log: Typo Modified: cfe/trunk/unittests/Format/FormatTestJS.cpp Modified: cfe/trunk/unittests/Format/FormatTestJS.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/t

r291436 - Extend NetBSD/AArch64 to cover Big Endian as well.

2017-01-09 Thread Joerg Sonnenberger via cfe-commits
Author: joerg Date: Mon Jan 9 05:22:14 2017 New Revision: 291436 URL: http://llvm.org/viewvc/llvm-project?rev=291436&view=rev Log: Extend NetBSD/AArch64 to cover Big Endian as well. Modified: cfe/trunk/lib/Driver/ToolChains.cpp cfe/trunk/lib/Driver/Tools.cpp cfe/trunk/test/Driver/net

r291437 - Use the same ABI logic for AArch64 Big Endian as in other places

2017-01-09 Thread Joerg Sonnenberger via cfe-commits
Author: joerg Date: Mon Jan 9 05:40:41 2017 New Revision: 291437 URL: http://llvm.org/viewvc/llvm-project?rev=291437&view=rev Log: Use the same ABI logic for AArch64 Big Endian as in other places covering polys. Modified: cfe/trunk/lib/Sema/SemaChecking.cpp Modified: cfe/trunk/lib/Sema/Sema

Re: r278882 - If possible, set the stack rlimit to at least 8MiB on cc1 startup, and work

2016-08-17 Thread Joerg Sonnenberger via cfe-commits
On Wed, Aug 17, 2016 at 01:05:08AM -, Richard Smith via cfe-commits wrote: > Author: rsmith > Date: Tue Aug 16 20:05:07 2016 > New Revision: 278882 > > URL: http://llvm.org/viewvc/llvm-project?rev=278882&view=rev > Log: > If possible, set the stack rlimit to at least 8MiB on cc1 startup, and w

Re: r278882 - If possible, set the stack rlimit to at least 8MiB on cc1 startup, and work

2016-08-19 Thread Joerg Sonnenberger via cfe-commits
On Thu, Aug 18, 2016 at 11:33:49AM -0700, Richard Smith wrote: > On Wed, Aug 17, 2016 at 6:35 AM, Joerg Sonnenberger via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > > > On Wed, Aug 17, 2016 at 01:05:08AM -, Richard Smith via cfe-commits > > wrote: > >

Re: r278882 - If possible, set the stack rlimit to at least 8MiB on cc1 startup, and work

2016-08-19 Thread Joerg Sonnenberger via cfe-commits
On Fri, Aug 19, 2016 at 01:03:51PM -0700, Richard Smith wrote: > On Fri, Aug 19, 2016 at 12:58 PM, Joerg Sonnenberger via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > > > On Thu, Aug 18, 2016 at 11:33:49AM -0700, Richard Smith wrote: > > > On Wed,

Re: r278882 - If possible, set the stack rlimit to at least 8MiB on cc1 startup, and work

2016-08-19 Thread Joerg Sonnenberger via cfe-commits
On Fri, Aug 19, 2016 at 01:16:59PM -0700, Richard Smith wrote: > On Fri, Aug 19, 2016 at 1:10 PM, Joerg Sonnenberger via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > > > On Fri, Aug 19, 2016 at 01:03:51PM -0700, Richard Smith wrote: > > > On Fri, A

Re: r278882 - If possible, set the stack rlimit to at least 8MiB on cc1 startup, and work

2016-08-19 Thread Joerg Sonnenberger via cfe-commits
On Fri, Aug 19, 2016 at 03:30:42PM -0700, Richard Smith wrote: > It typically does; the default stack ulimit is likely tuned for "normal" > applications that are not expected (by an ISO standard) to cope with > recursing a thousand levels deep. If the system administrator really wants > to control

Re: r278882 - If possible, set the stack rlimit to at least 8MiB on cc1 startup, and work

2016-08-20 Thread Joerg Sonnenberger via cfe-commits
On Sat, Aug 20, 2016 at 12:45:59AM +, Chandler Carruth wrote: > I feel like this thread has two very unrelated concerns and it might be > useful to separate them. > > 1) Should an application be changing the stack limit, or should the system > be able to enforce this? > > Fortunately, there a

r280607 - PR 27200: Fix names of the atomic lock-free macros.

2016-09-03 Thread Joerg Sonnenberger via cfe-commits
Author: joerg Date: Sat Sep 3 19:44:10 2016 New Revision: 280607 URL: http://llvm.org/viewvc/llvm-project?rev=280607&view=rev Log: PR 27200: Fix names of the atomic lock-free macros. Modified: cfe/trunk/lib/Headers/stdatomic.h Modified: cfe/trunk/lib/Headers/stdatomic.h URL: http://llvm.or

Re: r280607 - PR 27200: Fix names of the atomic lock-free macros.

2016-09-03 Thread Joerg Sonnenberger via cfe-commits
Hi Tom, can I merge this into 3.8 and 3.9? Joerg On Sun, Sep 04, 2016 at 12:44:10AM -, Joerg Sonnenberger via cfe-commits wrote: > Author: joerg > Date: Sat Sep 3 19:44:10 2016 > New Revision: 280607 > > URL: http://llvm.org/viewvc/llvm-project?rev=280607&view=rev >

r280609 - Trailing dot that shouldn't have been committed.

2016-09-03 Thread Joerg Sonnenberger via cfe-commits
Author: joerg Date: Sat Sep 3 19:51:02 2016 New Revision: 280609 URL: http://llvm.org/viewvc/llvm-project?rev=280609&view=rev Log: Trailing dot that shouldn't have been committed. Modified: cfe/trunk/lib/Headers/stdatomic.h Modified: cfe/trunk/lib/Headers/stdatomic.h URL: http://llvm.org/v

Re: r280607 - PR 27200: Fix names of the atomic lock-free macros.

2016-09-03 Thread Joerg Sonnenberger via cfe-commits
On Sat, Sep 03, 2016 at 05:56:43PM -0700, Richard Smith wrote: > /* 7.17.2 Initialization */ > > #define ATOMIC_VAR_INIT(value) (value) > #define atomic_init __c11_atomic_init > > -/* 7.17.3 Order and consistency */ > +/* 7.17.3 Order and consistency */. > > > Stray period here. Do we not ha

r280622 - Test case for r280607 to check presence and sanity of the *_LOCK_FREE

2016-09-04 Thread Joerg Sonnenberger via cfe-commits
Author: joerg Date: Sun Sep 4 06:21:27 2016 New Revision: 280622 URL: http://llvm.org/viewvc/llvm-project?rev=280622&view=rev Log: Test case for r280607 to check presence and sanity of the *_LOCK_FREE macros. Added: cfe/trunk/test/Headers/stdatomic.c Added: cfe/trunk/test/Headers/stdatomic.

Re: r280607 - PR 27200: Fix names of the atomic lock-free macros.

2016-09-04 Thread Joerg Sonnenberger via cfe-commits
On Sat, Sep 03, 2016 at 10:06:48PM -0700, Richard Smith wrote: > Thanks for the fix. Can you add a simple test that we provide macros with > the right name? Other than that, it makes sense to me for this to go to the > release branches. Done. > (I'm not sure whether we're doing more 3.8 point rel

Re: [PATCH] D24448: [atomics] New warning -Watomic-libcall when atomic operation expands to a library call

2016-09-13 Thread Joerg Sonnenberger via cfe-commits
joerg added a subscriber: joerg. joerg added a comment. While I agree with the general sentiment, the check doesn't work at all. For example, ARMv4 always has to use libcalls. It's not even true that libcalls are slow, i.e. on true non-parallel architectures, the libcall can be as simple as a r

Re: [PATCH] D24448: [atomics] New warning -Watomic-libcall when atomic operation expands to a library call

2016-09-13 Thread Joerg Sonnenberger via cfe-commits
joerg added a comment. More precisely, this should re-use the logic from __atomic_is_lock_free and not reinvent it. https://reviews.llvm.org/D24448 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listin

Re: r281277 - [Sema] Fix PR30346: relax __builtin_object_size checks.

2016-09-13 Thread Joerg Sonnenberger via cfe-commits
On Mon, Sep 12, 2016 at 11:50:36PM -, George Burgess IV via cfe-commits wrote: > Author: gbiv > Date: Mon Sep 12 18:50:35 2016 > New Revision: 281277 > > URL: http://llvm.org/viewvc/llvm-project?rev=281277&view=rev > Log: > [Sema] Fix PR30346: relax __builtin_object_size checks. > > This pat

Re: r281277 - [Sema] Fix PR30346: relax __builtin_object_size checks.

2016-09-13 Thread Joerg Sonnenberger via cfe-commits
On Tue, Sep 13, 2016 at 12:51:52PM -0700, Richard Smith wrote: > On Tue, Sep 13, 2016 at 10:44 AM, Joerg Sonnenberger via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > > > IMO this should be restricted to code that explicitly disables C/C++ > > aliasing rule

Re: [PATCH] D30700: [Driver] Always add arch-specific-subdir to -rpath

2017-03-14 Thread Joerg Sonnenberger via cfe-commits
On Mon, Mar 13, 2017 at 10:37:41PM +, Reid Kleckner via Phabricator via cfe-commits wrote: > I don't agree. If we want to be good citizens on Linux, what's supposed > to happen is that we install our shared libraries into > /usr/lib/${distro_target}, which is what GCC does with its shared > co

r291814 - Add entry for -MJ.

2017-01-12 Thread Joerg Sonnenberger via cfe-commits
Author: joerg Date: Thu Jan 12 15:11:55 2017 New Revision: 291814 URL: http://llvm.org/viewvc/llvm-project?rev=291814&view=rev Log: Add entry for -MJ. Modified: cfe/trunk/docs/ReleaseNotes.rst Modified: cfe/trunk/docs/ReleaseNotes.rst URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/

r292119 - Ensure that clang -pthread creates the right macro. -D_POSIX_THREADS

2017-01-16 Thread Joerg Sonnenberger via cfe-commits
Author: joerg Date: Mon Jan 16 08:07:24 2017 New Revision: 292119 URL: http://llvm.org/viewvc/llvm-project?rev=292119&view=rev Log: Ensure that clang -pthread creates the right macro. -D_POSIX_THREADS seems to have been a C&P error from old GCC specs for OpenBSD. Modified: cfe/trunk/lib/Basic

[libcxx] r294585 - Use protected name for the prototype arguments.

2017-02-09 Thread Joerg Sonnenberger via cfe-commits
Author: joerg Date: Thu Feb 9 08:12:29 2017 New Revision: 294585 URL: http://llvm.org/viewvc/llvm-project?rev=294585&view=rev Log: Use protected name for the prototype arguments. Modified: libcxx/trunk/include/__threading_support libcxx/trunk/include/thread Modified: libcxx/trunk/includ

  1   2   3   >