This mailing list is for automated mails from our Bugzilla bug tracker system.
If you want to report a bug, please see https://gcc.gnu.org/bugs/ If you want to ask a question, use the gcc-h...@gcc.gnu.org list, not the gcc-bugs list. Please direct any follow-up discussion there instead. There is nothing wrong with printf. Yes, it's the sttic variable. Before printf is called, every argument has to be evaluated. Since every call to timestamp returns the same pointer, you just print that string four times, and whatever it happens to contain at that time is printed four times.