Mark that the Sun compiler includes the return type in the mangling
authorThiago Macieira <thiago.macieira@intel.com>
Fri, 20 Apr 2012 11:24:05 +0000 (13:24 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 27 Apr 2012 01:09:56 +0000 (03:09 +0200)
Source: http://developers.sun.com/solaris/articles/external_linkage.html
   %dem __1cFgreet6F_pc_
   __1cFgreet6F_pc_ == char*greet()

Source: http://www.oracle.com/technetwork/articles/servers-storage-dev/stablecplusplusabi-333927.html
Function Mangled Name
float f(float) __1cBf6Ff_f_
int f(int) __1cBf6Fi_i_
int T::f(int) __1cBTBf6Mi_i_
int T::f(char*) __1cBTBf6Mpc_i_
int T::U::f(int) __1cBTBUBf6Mi_i_
int N::T::f(int) __1cBNBTBf6Mi_i_

Change-Id: Ibe1934f1c137d1657fb122cbf1a1b1fbc3e4a202
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
src/corelib/global/qcompilerdetection.h

index 2b6c816..3f51f8c 100644 (file)
 
 #elif defined(__SUNPRO_CC) || defined(__SUNPRO_C)
 #  define Q_CC_SUN
+#  define Q_COMPILER_MANGLES_RETURN_TYPE
 /* 5.0 compiler or better
     'bool' is enabled by default but can be disabled using -features=nobool
     in which case _BOOL is not defined