Skip to content
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
merged 3 commits into from
Mar 1, 2024
Merged

fix compatibility issues with gcc-14.x #93

merged 3 commits into from
Mar 1, 2024

Conversation

kdudka
Copy link
Owner

@kdudka kdudka commented Mar 1, 2024

No description provided.

@kdudka kdudka requested a review from lzaoral March 1, 2024 13:11
@kdudka kdudka self-assigned this Mar 1, 2024
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
Copy link
Collaborator

@lzaoral lzaoral left a 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!

@kdudka kdudka closed this in 26e57d4 Mar 1, 2024
@kdudka kdudka merged commit 26e57d4 into master Mar 1, 2024
22 checks passed
@kdudka kdudka deleted the gcc-14 branch March 1, 2024 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants