in reply to Re: Why does $Config{ccflags} include "-fwrapv" on many gcc builds of perl ?
in thread Why does $Config{ccflags} include "-fwrapv" on many gcc builds of perl ?
The compilation warning relates only to "-LONG_MIN".$ cat LONG_MIN.c #include <stdio.h> #include <limits.h> int main(void) { printf("%ld %ld\n", LONG_MIN, -LONG_MIN); return 0; } $ gcc -o LONG_MIN LONG_MIN.c LONG_MIN.c: In function ‘main’: LONG_MIN.c:6:33: warning: integer overflow in expression ‘-92233720368 +54775808’ of type ‘long int’ results in ‘-9223372036854775808’ [-Wove +rflow] 6 | printf("%ld %ld\n", LONG_MIN, -LONG_MIN); | ^ $ ./LONG_MIN -9223372036854775808 -9223372036854775808
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Why does $Config{ccflags} include "-fwrapv" on many gcc builds of perl ?
by Anonymous Monk on Apr 23, 2021 at 21:52 UTC | |
by syphilis (Archbishop) on Apr 24, 2021 at 01:04 UTC | |
|
Re^3: Why does $Config{ccflags} include "-fwrapv" on many gcc builds of perl ?
by perlfan (Parson) on Apr 20, 2021 at 01:41 UTC | |
by syphilis (Archbishop) on Apr 20, 2021 at 06:32 UTC |