Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8dd2ede

Browse files
committed
Improve compiler string shown in version()
With some compilers such as Clang and ICC emulating GCC, using aversion string of the form "GCC $version" can be quite misleading.Also, a great while ago, the version output from gcc --version startedincluding the string "gcc", so it is redundant to repeat that. Inorder to support ancient GCC versions, we now prefix the result with"GCC " only if the version output does not start with a letter.
1 parentd2088ae commit8dd2ede

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

‎configure

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29704,7 +29704,8 @@ $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
2970429704

2970529705
# Create compiler version string
2970629706
if test x"$GCC" = x"yes" ; then
29707-
cc_string="GCC `${CC} --version | sed q`"
29707+
cc_string=`${CC} --version | sed q`
29708+
case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
2970829709
elif test x"$SUN_STUDIO_CC" = x"yes" ; then
2970929710
cc_string=`${CC} -V 2>&1 | sed q`
2971029711
else

‎configure.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1849,7 +1849,8 @@ AC_MSG_NOTICE([using LDFLAGS=$LDFLAGS])
18491849

18501850
# Create compiler version string
18511851
if test x"$GCC" = x"yes" ; then
1852-
cc_string="GCC `${CC} --version | sed q`"
1852+
cc_string=`${CC} --version | sed q`
1853+
case $cc_string in [[A-Za-z]]*) ;; *) cc_string="GCC $cc_string";; esac
18531854
elif test x"$SUN_STUDIO_CC" = x"yes" ; then
18541855
cc_string=`${CC} -V 2>&1 | sed q`
18551856
else

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp