[clang] aa34b34 - Set default C++ level for PlayStation(r) to C++17.

2023-07-21 Thread Sunil Srivastava via cfe-commits
Author: Sunil Srivastava Date: 2023-07-21T18:18:21-07:00 New Revision: aa34b34e93d444efec6cd894e5e55927d0e413e6 URL: https://github.com/llvm/llvm-project/commit/aa34b34e93d444efec6cd894e5e55927d0e413e6 DIFF: https://github.com/llvm/llvm-project/commit/aa34b34e93d444efec6cd894e5e55927d0e413e6.di

[clang] a844378 - Change default C dialect for PS5 to gnu17/gnu18.

2022-07-12 Thread Sunil Srivastava via cfe-commits
Author: Sunil Srivastava Date: 2022-07-12T11:14:56-07:00 New Revision: a844378b2bc2c0a7f18e8d7cdd259b6c4d443128 URL: https://github.com/llvm/llvm-project/commit/a844378b2bc2c0a7f18e8d7cdd259b6c4d443128 DIFF: https://github.com/llvm/llvm-project/commit/a844378b2bc2c0a7f18e8d7cdd259b6c4d443128.di

[clang] f706486 - Fix for crash in __builtin_return_address in template context.

2021-01-12 Thread Sunil Srivastava via cfe-commits
Author: Sunil Srivastava Date: 2021-01-12T12:37:18-08:00 New Revision: f706486eaf07020b11f2088274c757e4070fe6d1 URL: https://github.com/llvm/llvm-project/commit/f706486eaf07020b11f2088274c757e4070fe6d1 DIFF: https://github.com/llvm/llvm-project/commit/f706486eaf07020b11f2088274c757e4070fe6d1.di

r366617 - Disallow most calling convention attributes on PS4

2019-07-19 Thread Sunil Srivastava via cfe-commits
Author: ssrivastava Date: Fri Jul 19 14:38:34 2019 New Revision: 366617 URL: http://llvm.org/viewvc/llvm-project?rev=366617&view=rev Log: Disallow most calling convention attributes on PS4 PS4 now only allows "cdecl", and its equivalent on PS4, "sysv_abi". Differential Revision: https://reviews.

r366368 - Renamed and changed the wording of warn_cconv_ignored

2019-07-17 Thread Sunil Srivastava via cfe-commits
Author: ssrivastava Date: Wed Jul 17 13:41:26 2019 New Revision: 366368 URL: http://llvm.org/viewvc/llvm-project?rev=366368&view=rev Log: Renamed and changed the wording of warn_cconv_ignored As discussed in D64780 the wording of this warning message is being changed to say 'is not supported' ins

r334153 - Change the wording of RTTI errors to make them more generic.

2018-06-06 Thread Sunil Srivastava via cfe-commits
Author: ssrivastava Date: Wed Jun 6 17:42:59 2018 New Revision: 334153 URL: http://llvm.org/viewvc/llvm-project?rev=334153&view=rev Log: Change the wording of RTTI errors to make them more generic. An attempt to use dynamic_cast while rtti is disabled, used to emit the error: cannot use dynam

r332784 - Do not enable RTTI with -fexceptions, for PS4

2018-05-18 Thread Sunil Srivastava via cfe-commits
Author: ssrivastava Date: Fri May 18 16:32:01 2018 New Revision: 332784 URL: http://llvm.org/viewvc/llvm-project?rev=332784&view=rev Log: Do not enable RTTI with -fexceptions, for PS4 NFC for targets other than PS4. This patch is a change in behavior for PS4, in that PS4 will no longer enable RT

r332384 - Fixed some rtti-options tests.

2018-05-15 Thread Sunil Srivastava via cfe-commits
Author: ssrivastava Date: Tue May 15 11:28:42 2018 New Revision: 332384 URL: http://llvm.org/viewvc/llvm-project?rev=332384&view=rev Log: Fixed some rtti-options tests. Certain tests in rtti-options.cpp are not really testing anything because they are testing for the absence of -frtti option to

r305862 - Prevent devirtualization of calls to un-instantiated functions.

2017-06-20 Thread Sunil Srivastava via cfe-commits
Author: ssrivastava Date: Tue Jun 20 17:08:44 2017 New Revision: 305862 URL: http://llvm.org/viewvc/llvm-project?rev=305862&view=rev Log: Prevent devirtualization of calls to un-instantiated functions. PR 27895 Differential Revision: https://reviews.llvm.org/D22057 Added: cfe/trunk/test/Cod

[PATCH] D22057: Prevent devirtualization of calls to un-instantiated functions.

2016-10-19 Thread Sunil Srivastava via cfe-commits
Sunil_Srivastava added a comment. ping https://reviews.llvm.org/D22057 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D22057: Prevent devirtualization of calls to un-instantiated functions.

2016-10-03 Thread Sunil Srivastava via cfe-commits
Sunil_Srivastava added a comment. Ping https://reviews.llvm.org/D22057 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D22057: Prevent devirtualization of calls to un-instantiated functions.

2016-09-14 Thread Sunil Srivastava via cfe-commits
Sunil_Srivastava updated this revision to Diff 71432. Sunil_Srivastava added a comment. This is an update to address points raised by Richard Smith: 1. The bit and the access functions have been renamed from MarkedForPendingInstantiation to InstantiationIsPending. 2. It closely, though not entir

Re: [PATCH] D22057: Prevent devirtualization of calls to un-instantiated functions.

2016-09-07 Thread Sunil Srivastava via cfe-commits
Sunil_Srivastava added inline comments. Comment at: test/CodeGen/no-devirt.cpp:16 @@ +15,3 @@ + if (a > 6) return data[a] ; // Should not devirtualize + if (a > 4) return data.func1(a); // Should devirtualize + return data.func2(a);// Should devirtualize ---

r276653 - Support '#pragma once' in headers when using PCH

2016-07-25 Thread Sunil Srivastava via cfe-commits
Author: ssrivastava Date: Mon Jul 25 12:17:06 2016 New Revision: 276653 URL: http://llvm.org/viewvc/llvm-project?rev=276653&view=rev Log: Support '#pragma once' in headers when using PCH The '#pragma once' directive was erroneously ignored when encountered in the header-file specified in gene

Re: [PATCH] D22057: Prevent devirtualization of calls to un-instantiated functions.

2016-07-18 Thread Sunil Srivastava via cfe-commits
Sunil_Srivastava added a comment. Ping. https://reviews.llvm.org/D22057 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D22057: Prevent devirtualization of calls to un-instantiated functions.

2016-07-06 Thread Sunil Srivastava via cfe-commits
Sunil_Srivastava created this revision. Sunil_Srivastava added a reviewer: rsmith. Sunil_Srivastava added a subscriber: cfe-commits. This review is for a fix for PR 27895, but it requires some discussion. The bugzilla and the email exchange with Richard Smith in http://lists.llvm.org/pipermail/c

r267772 - Set the default C standard to C99 when targeting the PS4.

2016-04-27 Thread Sunil Srivastava via cfe-commits
Author: ssrivastava Date: Wed Apr 27 14:53:03 2016 New Revision: 267772 URL: http://llvm.org/viewvc/llvm-project?rev=267772&view=rev Log: Set the default C standard to C99 when targeting the PS4. Patch by Douglas Yung! Differential Revision: http://reviews.llvm.org/D19003 Modified: cfe/trun

Re: [PATCH] D19552: Check 'r' and 'y specifiers of freebsd_kernel_printf format strings on PS4

2016-04-26 Thread Sunil Srivastava via cfe-commits
Sunil_Srivastava closed this revision. Sunil_Srivastava added a comment. Submitted as r267625. http://reviews.llvm.org/D19552 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r267625 - Check 'r' and 'y specifiers of freebsd_kernel_printf format strings on PS4

2016-04-26 Thread Sunil Srivastava via cfe-commits
Author: ssrivastava Date: Tue Apr 26 18:19:00 2016 New Revision: 267625 URL: http://llvm.org/viewvc/llvm-project?rev=267625&view=rev Log: Check 'r' and 'y specifiers of freebsd_kernel_printf format strings on PS4 This is an addendum to r229921. Modified: cfe/trunk/lib/Analysis/FormatString.c

Re: [PATCH] D19552: Check 'r' and 'y specifiers of freebsd_kernel_printf format strings on PS4

2016-04-26 Thread Sunil Srivastava via cfe-commits
Sunil_Srivastava added a comment. I had put these 'h' test lines to test the first of my changes, and this sufficed, but you are correct. I should add %y too. I am going to add '%hr' and '%hy'. Comment at: test/Sema/format-strings-freebsd.c:39 @@ -35,1 +38,3 @@ + freebsd_kern

[PATCH] D19552: Check 'r' and 'y specifiers of freebsd_kernel_printf format strings on PS4

2016-04-26 Thread Sunil Srivastava via cfe-commits
Sunil_Srivastava created this revision. Sunil_Srivastava added a reviewer: dim. Sunil_Srivastava added a subscriber: cfe-commits. Herald added a subscriber: emaste. This is an addendum to r229921. http://reviews.llvm.org/D19552 Files: lib/Analysis/FormatString.cpp test/Sema/format-strings-f

r265359 - Set the default C standard to C99 when targeting the PS4.

2016-04-04 Thread Sunil Srivastava via cfe-commits
Author: ssrivastava Date: Mon Apr 4 17:56:05 2016 New Revision: 265359 URL: http://llvm.org/viewvc/llvm-project?rev=265359&view=rev Log: Set the default C standard to C99 when targeting the PS4. Patch by Douglas Yung! Differential Revision: http://reviews.llvm.org/D18708 Modified: cfe/trun

r262042 - Minor tweak to match the overall style.

2016-02-26 Thread Sunil Srivastava via cfe-commits
Author: ssrivastava Date: Fri Feb 26 12:01:12 2016 New Revision: 262042 URL: http://llvm.org/viewvc/llvm-project?rev=262042&view=rev Log: Minor tweak to match the overall style. Modified: cfe/trunk/test/Sema/bitfield-layout.c Modified: cfe/trunk/test/Sema/bitfield-layout.c URL: http://llvm.

r260788 - Accept "-Weverything" in clang diagnistic pragmas

2016-02-12 Thread Sunil Srivastava via cfe-commits
Author: ssrivastava Date: Fri Feb 12 19:44:05 2016 New Revision: 260788 URL: http://llvm.org/viewvc/llvm-project?rev=260788&view=rev Log: Accept "-Weverything" in clang diagnistic pragmas Differential Revision: http://reviews.llvm.org/D15095 Added: cfe/trunk/test/Preprocessor/Weverything_pra

Re: [PATCH] D15095: Accept "-Weverything" in pragma clang diagnostic ...

2016-02-12 Thread Sunil Srivastava via cfe-commits
Sunil_Srivastava updated this revision to Diff 47866. Sunil_Srivastava added a comment. Hi Richard, Good point about that extra test. I suppose I need another LGTM for the new test. No other changes. (Sorry I had missed the code change in the last round) http://reviews.llvm.org/D15095 Files:

Re: [PATCH] D15095: Accept "-Weverything" in pragma clang diagnostic ...

2016-02-12 Thread Sunil Srivastava via cfe-commits
Sunil_Srivastava updated this revision to Diff 47865. Sunil_Srivastava added a comment. Hi Richard, Good point about that extra test. I suppose I need another LGTM for the new test. No other changes. http://reviews.llvm.org/D15095 Files: Preprocessor/Weverything_pragma.c Preprocessor/pra

Re: [PATCH] D15095: Accept "-Weverything" in pragma clang diagnostic ...

2016-02-11 Thread Sunil Srivastava via cfe-commits
Sunil_Srivastava updated this revision to Diff 47707. Sunil_Srivastava added a comment. Hi Richard, > Can you move the special case code out of DiagnosticsEngine and into the > pragma handler for now? Yes. This is that approach. http://reviews.llvm.org/D15095 Files: lib/Lex/Pragma.cpp t

Re: [PATCH] D15095: Accept "-Weverything" in pragma clang diagnostic ...

2016-02-10 Thread Sunil Srivastava via cfe-commits
Sunil_Srivastava added a comment. Richard, Your comment and my concern about the getDiagnosticsInGroup is still visible in the greyed out area. Given that do you still want to modify getDiagnosticsInGroup ? I have removed the separate test and added the new tests to existing files, as you sugg

Re: [PATCH] D15095: Accept "-Weverything" in pragma clang diagnostic ...

2016-02-10 Thread Sunil Srivastava via cfe-commits
Sunil_Srivastava added a reviewer: rsmith. Sunil_Srivastava updated this revision to Diff 47509. Sunil_Srivastava added a comment. Changed the test, but the compiler code is still same, pending reply from Richard Smith http://reviews.llvm.org/D15095 Files: lib/Basic/Diagnostic.cpp test/Pre

r259916 - Do not honor explicit alignment attribute on fields for PS4.

2016-02-05 Thread Sunil Srivastava via cfe-commits
Author: ssrivastava Date: Fri Feb 5 14:50:02 2016 New Revision: 259916 URL: http://llvm.org/viewvc/llvm-project?rev=259916&view=rev Log: Do not honor explicit alignment attribute on fields for PS4. This change reverts r257462 for PS4 triple. Differential Revision: http://reviews.llvm.org/D16788

Re: [PATCH] D16788: PS4 ABI Round 2. Actual PS4 code.

2016-02-05 Thread Sunil Srivastava via cfe-commits
Sunil_Srivastava updated this revision to Diff 47026. Sunil_Srivastava added a comment. Changed the patch based of feedback from John McCall. There is new bit UseExplicitBitFieldAlignment, which is set for everything except for PS4. The r257462 change has been made conditional on this bit. htt

[PATCH] D16788: Ps4 ABI Round 2. Actual PS4 code.

2016-02-01 Thread Sunil Srivastava via cfe-commits
Sunil_Srivastava created this revision. Sunil_Srivastava added reviewers: rjmccall, DmitryPolukhin, rsmith, probinson. Sunil_Srivastava added a subscriber: cfe-commits. This is the round 2 of the PS4 ABI. In this round: 1) A new value PS4 has been added to TargetCXXABI::Kind. It is being used for

r259095 - Implementation of PS4 ABI, Round 1

2016-01-28 Thread Sunil Srivastava via cfe-commits
Author: ssrivastava Date: Thu Jan 28 15:36:31 2016 New Revision: 259095 URL: http://llvm.org/viewvc/llvm-project?rev=259095&view=rev Log: Implementation of PS4 ABI, Round 1 Added a test to safeguard linux ABI. Differential Revision: http://reviews.llvm.org/D16607 Modified: cfe/trunk/test/Sem

[PATCH] D16607: Implementation of PS4 ABI, round 1

2016-01-26 Thread Sunil Srivastava via cfe-commits
Sunil_Srivastava created this revision. Sunil_Srivastava added a reviewer: rsmith. Sunil_Srivastava added a subscriber: cfe-commits. We are planning to upstream changes needed for maintaining PS4 ABI across future releases. Unlike many other targets, we need to maintain, in most cases, strict ob

Re: [PATCH] D15095: Accept "-Weverything" in pragma clang diagnostic ...

2015-12-08 Thread Sunil Srivastava via cfe-commits
Sunil_Srivastava added a comment. Please see the comment about getAllDiagnostics Comment at: lib/Basic/Diagnostic.cpp:251-257 @@ -250,2 +250,9 @@ SourceLocation Loc) { + // Special handling for pragma clang diagnostic ... "-Weverythi

[PATCH] D15095: Accept "-Weverything" in pragma clang diagnostic ...

2015-11-30 Thread Sunil Srivastava via cfe-commits
Sunil_Srivastava created this revision. Sunil_Srivastava added a subscriber: cfe-commits. Special handling for “-Weverything” in ‘pragma clang diagnostic handling’ There is no formal diagnostic group named “everything”, so this code is needed. http://reviews.llvm.org/D15095 Files: lib/Basic/D