gcc 4.0.0 optimization vs. id strings (RCS, SCCS, etc.)
Bruce Lilly
blilly@erols.com
Tue Apr 26 00:32:00 GMT 2005
Hi,
Earlier versions of gcc retain static character strings in object files
which can be used for identification via ident (RCS) or what (SCCS).
Gcc 4.0.0 removes them above optimization level 1. Global strings
are retained, of course, but that may lead to namespace collisions.
#ident doesn't work on some architectures, and functionality can't
be determined at preprocessor time. #sccs doesn't work at all. The
bottom line is that identification which worked with earlier versions
of gcc is broken under 4.0.0. See attached C source code example.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: idtest.c
Type: text/x-csrc
Size: 1889 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20050426/c41b1608/attachment.bin>
More information about the Gcc
mailing list