https://bugzilla.novell.com/show_bug.cgi?id=742747 https://bugzilla.novell.com/show_bug.cgi?id=742747#c0 Summary: Incorrect GCC patchlevel in predefined macros Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: x86-64 OS/Version: openSUSE 11.4 Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: andysem@mail.ru QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.75 Safari/535.7 The GCC provided with openSUSE 12.1 indicates version 4.6.2 when called with -v switch. However, its predefined macro __GNUC_PATCHLEVEL__ is 0. This can be seen in the output of the "cpp -dM foo.h" command. The patchlevel is crucial for many compiler version checks to workaround bugs. For instance, this [1] bug have been fixed in GCC 4.6.1. It is fixed in GCC provided with openSUSE, but in my code I cannot detect this because of incorrect patchlevel. [1] http://gcc.gnu.org/bugzilla/show_bug.cgi?format=multiple&id=47318 Reproducible: Always Steps to Reproduce: 1. Execute "cpp -v". 2. Execute "touch foo.h; cpp -dM foo.h | grep __GNUC_PATCHLEVEL__". Actual Results: The first command shows version 4.6.2. The second command shows the macro has value 0. Expected Results: The macro should have value 2. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.