Skip to content

Commit 125d8ab

Browse files
Peter Goodmanekilmer
andauthored
Patches for not auto-converting concrete declarations like atoi to bu… (#1006)
* Patches for not auto-converting concrete declarations like atoi to builtin intrinsics. * Update port-version * Update Z3 to latest 4.12.1 version --------- Co-authored-by: Eric Kilmer <[email protected]>
1 parent d77dd7b commit 125d8ab

File tree

5 files changed

+24
-6
lines changed

5 files changed

+24
-6
lines changed

ports/llvm-15/0025-PASTA-patches.patch

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From e662db370ffe95bc663d1e1fa350ab3c35bd61b3 Mon Sep 17 00:00:00 2001
1+
From a2055c89f23ad44059dd11a91387e69fdb1cd5e0 Mon Sep 17 00:00:00 2001
22
From: Peter Goodman <[email protected]>
33
Date: Mon, 14 Nov 2022 14:51:27 -0500
44
Subject: [PATCH] Patches for PASTA
@@ -16,7 +16,8 @@ Subject: [PATCH] Patches for PASTA
1616
clang/lib/Lex/Preprocessor.cpp | 43 +++-
1717
clang/lib/Lex/TokenLexer.cpp | 39 +++-
1818
clang/lib/Parse/ParseTemplate.cpp | 7 +
19-
12 files changed, 730 insertions(+), 79 deletions(-)
19+
clang/lib/Sema/SemaDecl.cpp | 5 +
20+
13 files changed, 735 insertions(+), 79 deletions(-)
2021

2122
diff --git a/clang/include/clang/Lex/PPCallbacks.h b/clang/include/clang/Lex/PPCallbacks.h
2223
index 045df8711..cba195cff 100644
@@ -1637,6 +1638,22 @@ index e32ea6003..942c71526 100644
16371638
// Update the token cache to match what we just did if necessary.
16381639
if (CachingTokens) {
16391640
// If the previous cached token is being merged, delete it.
1641+
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
1642+
index 75ffa8b0a..f4d175de2 100644
1643+
--- a/clang/lib/Sema/SemaDecl.cpp
1644+
+++ b/clang/lib/Sema/SemaDecl.cpp
1645+
@@ -6261,6 +6261,11 @@ NamedDecl *Sema::HandleDeclarator(Scope *S, Declarator &D,
1646+
Previous.setRedeclarationKind(ForExternalRedeclaration);
1647+
}
1648+
1649+
+ // PASTA PATCH: Disable auto-creation of builtins from things like `atoi`;
1650+
+ // it ends up leading to a lot of source location information
1651+
+ // being dropped.
1652+
+ CreateBuiltins = CreateBuiltins ? false : false;
1653+
+
1654+
LookupName(Previous, S, CreateBuiltins);
1655+
} else { // Something like "int foo::x;"
1656+
LookupQualifiedName(Previous, DC);
16401657
--
16411658
2.39.0
16421659

ports/llvm-15/vcpkg.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "llvm-15",
33
"version": "15.0.7",
4+
"port-version": 1,
45
"description": "The LLVM Compiler Infrastructure.",
56
"homepage": "https://llvm.org",
67
"license": "Apache-2.0",

ports/z3/portfile.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ vcpkg_add_to_path("${PYTHON3_DIR}")
55
vcpkg_from_github(
66
OUT_SOURCE_PATH SOURCE_PATH
77
REPO Z3Prover/z3
8-
REF z3-4.12.0
9-
SHA512 53a51c8304fa4356d13293f68b14d9d9eef57a0771c6698d38aea5fac62c4e52c41ff003cb6d771a32645d2aa4ef59be5f792f2efbee927d06ac8280094976e5
8+
REF z3-4.12.1
9+
SHA512 031fba9cc000a8da0025f95fa3f1c7519071d1b7775b377ff3192c505bb4c7e3d267da246c9ae68c940224e055a3c30571d2c0d7fbb042ec9a3d5849543a385c
1010
HEAD_REF master
1111
PATCHES
1212
fix-install-path.patch

ports/z3/remove-flag-overrides.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ index 477410ba8..fcca03917 100644
77
cmake_minimum_required(VERSION 3.4)
88

99
-set(CMAKE_USER_MAKE_RULES_OVERRIDE_CXX "${CMAKE_CURRENT_SOURCE_DIR}/cmake/cxx_compiler_flags_overrides.cmake")
10-
project(Z3 VERSION 4.12.0.0 LANGUAGES CXX)
10+
project(Z3 VERSION 4.12.1.0 LANGUAGES CXX)
1111

1212
################################################################################

ports/z3/vcpkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "z3",
3-
"version": "4.12.0",
3+
"version": "4.12.1",
44
"description": "Z3 is a theorem prover from Microsoft Research",
55
"homepage": "https://github.com/Z3Prover/z3",
66
"license": "MIT",

0 commit comments

Comments
 (0)