-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix compatibility issues with gcc-14.x
#93
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kdudka
added a commit
that referenced
this pull request
Mar 1, 2024
This commit fixes the following errors: ``` In file included from cl/tests/data/vk-0100.c:1: cl/../include/predator-builtins/verifier-builtins.h: In function '__VERIFIER_error': cl/../include/predator-builtins/verifier-builtins.h:119:5: error: implicit declaration of function 'abort' [-Wimplicit-function-declaration] 119 | abort(); | ^~~~~ cl/../include/predator-builtins/verifier-builtins.h:1:1: note: include '<stdlib.h>' or provide a declaration of 'abort' +++ |+#include <stdlib.h> 1 | /* cl/../include/predator-builtins/verifier-builtins.h:119:5: warning: incompatible implicit declaration of built-in function 'abort' [-Wbuiltin-declaration-mismatch] 119 | abort(); | ^~~~~ cl/../include/predator-builtins/verifier-builtins.h:119:5: note: include '<stdlib.h>' or provide a declaration of 'abort' cl_build/tests/libchk_var_killer.so: warning: some errors already detected, additional passes will be skipped In file included from cl/tests/data/vk-0101.c:1: cl/../include/predator-builtins/verifier-builtins.h: In function '__VERIFIER_error': cl/../include/predator-builtins/verifier-builtins.h:119:5: error: implicit declaration of function 'abort' [-Wimplicit-function-declaration] 119 | abort(); | ^~~~~ cl/../include/predator-builtins/verifier-builtins.h:1:1: note: include '<stdlib.h>' or provide a declaration of 'abort' +++ |+#include <stdlib.h> 1 | /* cl/../include/predator-builtins/verifier-builtins.h:119:5: warning: incompatible implicit declaration of built-in function 'abort' [-Wbuiltin-declaration-mismatch] 119 | abort(); | ^~~~~ cl/../include/predator-builtins/verifier-builtins.h:119:5: note: include '<stdlib.h>' or provide a declaration of 'abort' cl_build/tests/libchk_var_killer.so: warning: some errors already detected, additional passes will be skipped cl/tests/data/pt-0850.c: In function 'main': cl/tests/data/pt-0850.c:16:10: error: assignment to 'int *' from incompatible pointer type 'int **' [-Wincompatible-pointer-types] 16 | ptrB = &ptrC; | ^ cl_build/tests/libchk_pt.so: warning: some errors already detected, additional passes will be skipped cl/tests/data/pt-0950.c: In function 'test': cl/tests/data/pt-0950.c:13:8: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion] 13 | *p = &i; | ^ cl/tests/data/pt-0950.c: In function 'main': cl/tests/data/pt-0950.c:21:7: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion] 21 | i = &j; | ^ cl_build/tests/libchk_pt.so: warning: some errors already detected, additional passes will be skipped In file included from cl/tests/data/pt-1203.c:3: cl/../include/predator-builtins/verifier-builtins.h: In function '__VERIFIER_error': cl/../include/predator-builtins/verifier-builtins.h:119:5: error: implicit declaration of function 'abort' [-Wimplicit-function-declaration] 119 | abort(); | ^~~~~ cl/../include/predator-builtins/verifier-builtins.h:1:1: note: include '<stdlib.h>' or provide a declaration of 'abort' +++ |+#include <stdlib.h> 1 | /* cl/../include/predator-builtins/verifier-builtins.h:119:5: warning: incompatible implicit declaration of built-in function 'abort' [-Wbuiltin-declaration-mismatch] 119 | abort(); | ^~~~~ cl/../include/predator-builtins/verifier-builtins.h:119:5: note: include '<stdlib.h>' or provide a declaration of 'abort' cl_build/tests/libchk_pt.so: warning: some errors already detected, additional passes will be skipped In file included from cl/tests/data/pt-1300.c:2: cl/../include/predator-builtins/verifier-builtins.h: In function '__VERIFIER_error': cl/../include/predator-builtins/verifier-builtins.h:119:5: error: implicit declaration of function 'abort' [-Wimplicit-function-declaration] 119 | abort(); | ^~~~~ cl/../include/predator-builtins/verifier-builtins.h:1:1: note: include '<stdlib.h>' or provide a declaration of 'abort' +++ |+#include <stdlib.h> 1 | /* cl/../include/predator-builtins/verifier-builtins.h:119:5: warning: incompatible implicit declaration of built-in function 'abort' [-Wbuiltin-declaration-mismatch] 119 | abort(); | ^~~~~ cl/../include/predator-builtins/verifier-builtins.h:119:5: note: include '<stdlib.h>' or provide a declaration of 'abort' cl_build/tests/libchk_pt.so: warning: some errors already detected, additional passes will be skipped cl/tests/data/pt-0850.c: In function 'main': cl/tests/data/pt-0850.c:16:10: error: assignment to 'int *' from incompatible pointer type 'int **' [-Wincompatible-pointer-types] 16 | ptrB = &ptrC; | ^ cl_build/tests/libchk_pt.so: warning: some errors already detected, additional passes will be skipped cl/tests/data/pt-0950.c: In function 'test': cl/tests/data/pt-0950.c:13:8: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion] 13 | *p = &i; | ^ cl/tests/data/pt-0950.c: In function 'main': cl/tests/data/pt-0950.c:21:7: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion] 21 | i = &j; | ^ cl_build/tests/libchk_pt.so: warning: some errors already detected, additional passes will be skipped ``` Related: #92 Related: #93
kdudka
added a commit
that referenced
this pull request
Mar 1, 2024
This commit fixes the following errors: ``` ../tests/predator-regre/test-0170.c: In function 'DLInsertFirst': ../tests/predator-regre/test-0170.c:43:9: error: implicit declaration of function 'DLError' [-Wimplicit-function-declaration] 43 | DLError(); | ^~~~~~~ ../tests/predator-regre/test-0183.c: In function 'main': ../tests/predator-regre/test-0183.c:114:5: error: implicit declaration of function '__VERIFIER_plot' [-Wimplicit-function-declaration] 114 | __VERIFIER_plot(NULL, &list, &p1, &p2); | ^~~~~~~~~~~~~~~ [...] ``` Related: #92 Related: #93
kdudka
added a commit
that referenced
this pull request
Mar 1, 2024
This commit fixes the following build-time error: ``` cl/gcc/clplug.c: In function 'bool error_detected()': cl/gcc/clplug.c:480:52: error: invalid types '<unresolved overloaded function type>[diagnostic_t]' for array subscript 480 | return global_dc && global_dc->diagnostic_count[DK_ERROR]; | ^ ``` Related: #92 Resolves: #93
This commit fixes the following errors: ``` In file included from cl/tests/data/vk-0100.c:1: cl/../include/predator-builtins/verifier-builtins.h: In function '__VERIFIER_error': cl/../include/predator-builtins/verifier-builtins.h:119:5: error: implicit declaration of function 'abort' [-Wimplicit-function-declaration] 119 | abort(); | ^~~~~ cl/../include/predator-builtins/verifier-builtins.h:1:1: note: include '<stdlib.h>' or provide a declaration of 'abort' +++ |+#include <stdlib.h> 1 | /* cl/../include/predator-builtins/verifier-builtins.h:119:5: warning: incompatible implicit declaration of built-in function 'abort' [-Wbuiltin-declaration-mismatch] 119 | abort(); | ^~~~~ cl/../include/predator-builtins/verifier-builtins.h:119:5: note: include '<stdlib.h>' or provide a declaration of 'abort' cl_build/tests/libchk_var_killer.so: warning: some errors already detected, additional passes will be skipped In file included from cl/tests/data/vk-0101.c:1: cl/../include/predator-builtins/verifier-builtins.h: In function '__VERIFIER_error': cl/../include/predator-builtins/verifier-builtins.h:119:5: error: implicit declaration of function 'abort' [-Wimplicit-function-declaration] 119 | abort(); | ^~~~~ cl/../include/predator-builtins/verifier-builtins.h:1:1: note: include '<stdlib.h>' or provide a declaration of 'abort' +++ |+#include <stdlib.h> 1 | /* cl/../include/predator-builtins/verifier-builtins.h:119:5: warning: incompatible implicit declaration of built-in function 'abort' [-Wbuiltin-declaration-mismatch] 119 | abort(); | ^~~~~ cl/../include/predator-builtins/verifier-builtins.h:119:5: note: include '<stdlib.h>' or provide a declaration of 'abort' cl_build/tests/libchk_var_killer.so: warning: some errors already detected, additional passes will be skipped cl/tests/data/pt-0850.c: In function 'main': cl/tests/data/pt-0850.c:16:10: error: assignment to 'int *' from incompatible pointer type 'int **' [-Wincompatible-pointer-types] 16 | ptrB = &ptrC; | ^ cl_build/tests/libchk_pt.so: warning: some errors already detected, additional passes will be skipped cl/tests/data/pt-0950.c: In function 'test': cl/tests/data/pt-0950.c:13:8: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion] 13 | *p = &i; | ^ cl/tests/data/pt-0950.c: In function 'main': cl/tests/data/pt-0950.c:21:7: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion] 21 | i = &j; | ^ cl_build/tests/libchk_pt.so: warning: some errors already detected, additional passes will be skipped In file included from cl/tests/data/pt-1203.c:3: cl/../include/predator-builtins/verifier-builtins.h: In function '__VERIFIER_error': cl/../include/predator-builtins/verifier-builtins.h:119:5: error: implicit declaration of function 'abort' [-Wimplicit-function-declaration] 119 | abort(); | ^~~~~ cl/../include/predator-builtins/verifier-builtins.h:1:1: note: include '<stdlib.h>' or provide a declaration of 'abort' +++ |+#include <stdlib.h> 1 | /* cl/../include/predator-builtins/verifier-builtins.h:119:5: warning: incompatible implicit declaration of built-in function 'abort' [-Wbuiltin-declaration-mismatch] 119 | abort(); | ^~~~~ cl/../include/predator-builtins/verifier-builtins.h:119:5: note: include '<stdlib.h>' or provide a declaration of 'abort' cl_build/tests/libchk_pt.so: warning: some errors already detected, additional passes will be skipped In file included from cl/tests/data/pt-1300.c:2: cl/../include/predator-builtins/verifier-builtins.h: In function '__VERIFIER_error': cl/../include/predator-builtins/verifier-builtins.h:119:5: error: implicit declaration of function 'abort' [-Wimplicit-function-declaration] 119 | abort(); | ^~~~~ cl/../include/predator-builtins/verifier-builtins.h:1:1: note: include '<stdlib.h>' or provide a declaration of 'abort' +++ |+#include <stdlib.h> 1 | /* cl/../include/predator-builtins/verifier-builtins.h:119:5: warning: incompatible implicit declaration of built-in function 'abort' [-Wbuiltin-declaration-mismatch] 119 | abort(); | ^~~~~ cl/../include/predator-builtins/verifier-builtins.h:119:5: note: include '<stdlib.h>' or provide a declaration of 'abort' cl_build/tests/libchk_pt.so: warning: some errors already detected, additional passes will be skipped cl/tests/data/pt-0850.c: In function 'main': cl/tests/data/pt-0850.c:16:10: error: assignment to 'int *' from incompatible pointer type 'int **' [-Wincompatible-pointer-types] 16 | ptrB = &ptrC; | ^ cl_build/tests/libchk_pt.so: warning: some errors already detected, additional passes will be skipped cl/tests/data/pt-0950.c: In function 'test': cl/tests/data/pt-0950.c:13:8: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion] 13 | *p = &i; | ^ cl/tests/data/pt-0950.c: In function 'main': cl/tests/data/pt-0950.c:21:7: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion] 21 | i = &j; | ^ cl_build/tests/libchk_pt.so: warning: some errors already detected, additional passes will be skipped ``` Related: #92 Related: #93
This commit fixes the following errors: ``` ../tests/predator-regre/test-0170.c: In function 'DLInsertFirst': ../tests/predator-regre/test-0170.c:43:9: error: implicit declaration of function 'DLError' [-Wimplicit-function-declaration] 43 | DLError(); | ^~~~~~~ ../tests/predator-regre/test-0183.c: In function 'main': ../tests/predator-regre/test-0183.c:114:5: error: implicit declaration of function '__VERIFIER_plot' [-Wimplicit-function-declaration] 114 | __VERIFIER_plot(NULL, &list, &p1, &p2); | ^~~~~~~~~~~~~~~ [...] ``` Related: #92 Related: #93
This commit fixes the following build-time error: ``` cl/gcc/clplug.c: In function 'bool error_detected()': cl/gcc/clplug.c:480:52: error: invalid types '<unresolved overloaded function type>[diagnostic_t]' for array subscript 480 | return global_dc && global_dc->diagnostic_count[DK_ERROR]; | ^ ``` Related: #92 Resolves: #93
lzaoral
approved these changes
Mar 1, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you for the quick fix, @kdudka!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.