Commit 8dd2ede
committed
Improve compiler string shown in version()
With some compilers such as Clang and ICC emulating GCC, using a version string of the form "GCC $version" can be quite misleading. Also, a great while ago, the version output from gcc --version started including the string "gcc", so it is redundant to repeat that. In order to support ancient GCC versions, we now prefix the result with "GCC " only if the version output does not start with a letter.1 parent d2088ae commit 8dd2ede
2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29704 | 29704 | | |
29705 | 29705 | | |
29706 | 29706 | | |
29707 | | - | |
| 29707 | + | |
| 29708 | + | |
29708 | 29709 | | |
29709 | 29710 | | |
29710 | 29711 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1849 | 1849 | | |
1850 | 1850 | | |
1851 | 1851 | | |
1852 | | - | |
| 1852 | + | |
| 1853 | + | |
1853 | 1854 | | |
1854 | 1855 | | |
1855 | 1856 | | |
| |||
0 commit comments