Fedora Account System
Red Hat Associate
Red Hat Customer
Created attachment 593562 [details] test data Description of problem: Example file attached. On gcc-4.7: [notting@nostromo: ~]$ gcc -E -P -x c -D'N_(x)=x' testfile "This is a test of gcc. It is only a test." "We like tests, Yes we do. We like tests, how about you?" "A test is a test is a test." On gcc-4.4: [notting@shell: ~]$ gcc -E -P -x c -D'N_(x)=x' testfile "This is a test of gcc. It is only a test." "We like tests, Yes we do. We like tests, how about you?" "A test is a test is a test." Version-Release number of selected component (if applicable): gcc-4.7.0-5.fc17.x86_64 How reproducible: 100% Additional info: Yes, this actually broke something in a package build.
If some package relies on this, it abuses the preprocessor for something that it is not meant to be used for. AFAIK all versions of gcc behave this way if there is more than a few lines of vertical whitespace, the difference is only with -P and a one to 7 lines or so. The change was intentional, it made the preprocessor behave consistently, not depending on some internal implementation detail limit.