[Bug c/114374] New: [12/13 Regression] snprintf Wformat-truncation

2024-03-18 Thread torsten.mandel at sap dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114374 Bug ID: 114374 Summary: [12/13 Regression] snprintf Wformat-truncation Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug tree-optimization/114374] [12/13/14 Regression] snprintf Wformat-truncation

2024-03-18 Thread torsten.mandel at sap dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114374 --- Comment #2 from Torsten Mandel --- No, it only happens on overflow, although diagnostic behavior would still be inconsistent regarding the ++loop and the loop++ case.

[Bug tree-optimization/114374] [12/13/14 Regression] snprintf Wformat-truncation

2024-03-18 Thread torsten.mandel at sap dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114374 --- Comment #3 from Torsten Mandel --- Sorry, actually it also triggers for values below LONG_MAX on gcc-12 & gcc-13 so it also works without UB which should not be the case.

[Bug tree-optimization/114374] [12/13/14 Regression] snprintf Wformat-truncation

2024-03-18 Thread torsten.mandel at sap dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114374 --- Comment #4 from Torsten Mandel --- E.g.: #include "stdio.h" #include int main() { char buf[11]; int loop(1); do { snprintf(buf,sizeof(buf),"%d",loop++); } while(loop<10); }

[Bug tree-optimization/116415] New: [13 Regression][PPC64LE] atomics wrongly use vector instructions in DWCAS.

2024-08-19 Thread torsten.mandel at sap dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116415 Bug ID: 116415 Summary: [13 Regression][PPC64LE] atomics wrongly use vector instructions in DWCAS. Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: n