[tools-compilers] Oracle's plan for Sun C/C++ compilers?

2010-03-12 Thread Alan Coopersmith
mpiler group so do not know and cannot comment on their plans.) -- -Alan Coopersmith- alan.coopersmith at sun.com Oracle Solaris Platform Engineering: X Window System

[tools-compilers] [osol-discuss] OS b132: Sun C++ cannot compile C++ source due to linker segfault.

2010-02-16 Thread Alan Coopersmith
running OpenSolaris). An updated version of the Studio compilers is being worked on for the IPS repository, but I don't know when they'll publish it - maybe the compiler team members on tools-compilers know or have a workaround? -- -Alan Coopersmith- alan.coop

[tools-compilers] gcc vs SunStudio

2010-02-09 Thread Alan Coopersmith
d the binaries produced by the gcc 4.x backend were usable though, nor do I know of anyone making sure all the other consolidations were buildable with gcc 4.x, though those based on external open source (SFW, X, Desktop) are likely okay, at least in the components that are up to date with

[tools-compilers] Using -xtarget=ultra2

2010-01-21 Thread Alan Coopersmith
ms that use the Fujitsu CPU's as well. -- -Alan Coopersmith- alan.coopersmith at sun.com Sun Microsystems, Inc. - X Window System Engineering

[tools-compilers] Using -xtarget=ultra2

2010-01-21 Thread Alan Coopersmith
x27;s no problem at all for apps that only run on Solaris 10 & OpenSolaris. -- -Alan Coopersmith- alan.coopersmith at sun.com Sun Microsystems, Inc. - X Window System Engineering

[tools-compilers] SUNWmlib query?

2010-01-05 Thread Alan Coopersmith
anted medialib bugs to appear there, you could work with website-discuss to add them. -- -Alan Coopersmith- alan.coopersmith at sun.com Sun Microsystems, Inc. - X Window System Engineering

[tools-compilers] where is Sun Studio connecting to?

2009-11-18 Thread Alan Coopersmith
sed depends on if you're using a pre-release or official release version. (I just have both always set in my .cshrc & build scripts.) -- -Alan Coopersmith- alan.coopersmith at sun.com Sun Microsystems, Inc. - X Window System Engineering

[tools-compilers] [Fwd: [Bug 12677] dbx runtime checking seg fault]

2009-11-16 Thread Alan Coopersmith
This was reported via the OpenSolaris bugzilla, but seems to be a Studio dbx bug: <http://defect.opensolaris.org/bz/show_bug.cgi?id=12677> -- -Alan Coopersmith- alan.coopersmith at sun.com Sun Microsystems, Inc. - X Window System Engineering

[tools-compilers] Calling all libsunmath users

2009-10-23 Thread Alan Coopersmith
stick to Standards ... not make it easy > for them to write non-portable code. Wouldn't it be more consistent to follow the libc model, where all the functions, both standard and non-standard, are in the same .so, but the function prototypes are visible or hidden based on the #defines set?

[tools-compilers] Gcc for OpenSolaris

2009-10-12 Thread Alan Coopersmith
alog. > Try relaxing the pattern, refreshing and/or examining the catalogs: > SUNWgcc.p5i Don't include the .p5i when specifying the package name on the command line, you just want: pfexec pkg install SUNWgcc -- -Alan Coopersmith- alan.coopersmith at sun

[tools-compilers] [osol-help] Packages needed for scientific computing and LaTeX

2009-09-17 Thread Alan Coopersmith
cles/libumem_library.html http://blogs.sun.com/ahl/entry/solaris_10_top_11_20 http://blogs.sun.com/quenelle/entry/using_dbx_and_libumem_to -- -Alan Coopersmith- alan.coopersmith at sun.com Sun Microsystems, Inc. - X Window System Engineering

[tools-compilers] #pragma pack(1) vs __attribute__((__packed__))

2009-09-17 Thread Alan Coopersmith
l this release, which > is why the value for __SUNPRO_C is different. 0x510 < 0x590 - you didn't really make the version number go backwards did you? That will break existing code that checks for __SUNPRO_C >= 0x550 and such. -- -Alan Coopersmith- alan.coopersmith at sun.com Sun Microsystems, Inc. - X Window System Engineering

[tools-compilers] [osol-code] supported attributes for __attribute__

2009-07-28 Thread Alan Coopersmith
The best place on opensolaris.org to ask questions like this is the tools-compilers mailing list/forum, since that's where the compiler team members are found. -Alan Coopersmith- alan.coopersmith at sun.com Sun Microsystems, Inc. - X Window System Engineering Vi

[tools-compilers] #pragma ident in solaris headers

2009-06-16 Thread Alan Coopersmith
g to another hash method for identifying files.) -- -Alan Coopersmith- alan.coopersmith at sun.com Sun Microsystems, Inc. - X Window System Engineering

[tools-compilers] [desktop-discuss] Report on issues when porting OpenSource projects to Solaris

2009-05-07 Thread Alan Coopersmith
not have SSE support. So older > MMX-only machines won't be able to run the code. That's why the commit shown includes a mapfile that resets the hwcap flags to just "FPU", since the library calls getisax() at runtime to determine if it should call the MMX or SSE fastpath

[tools-compilers] [osol-discuss] [desktop-discuss] Report on issues when porting OpenSource projects to Solaris

2009-05-07 Thread Alan Coopersmith
Joerg Schilling wrote: > Alan Coopersmith wrote: > >> While not a stopper, since we can easily fix every time we hit it, it would >> be amazingly nice if Sun Studio learned how to ignore \r at the end of lines, >> so that those of us working on cross-platform open so

[tools-compilers] [desktop-discuss] Report on issues when porting OpenSource projects to Solaris

2009-05-07 Thread Alan Coopersmith
checks in code with Windows linebreaks. gcc seems to manage to ignore them properly. (Including not treating it as the escaped character when a line ends in \\r\n and breaking line continuations.) -- -Alan Coopersmith- alan.coopersmith at sun.com Sun Microsystems, Inc. - X Window System Engineering

[tools-compilers] List of builtin functions available viaSunStudio's "-xbuiltin=%all" ...

2009-04-24 Thread Alan Coopersmith
, and that -xbuiltin=%all makes sense mostly in the cases where you know the exact target platform, much like -xtarget=native or -fast (which includes -xbuiltin=%all). -- -Alan Coopersmith- alan.coopersmith at sun.com Sun Microsystems, Inc. - X Window System Engineering

[tools-compilers] [networking-discuss] Untunable tunables or: compiler optimizing global static int into constant value

2009-03-20 Thread Alan Coopersmith
#if defined(__GNUC__) && (__GNUC__ >= 4) # define EXTERN_TUNABLE __attribute__((visibility("hidden"))) #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550) # define EXTERN_TUNABLE _hidden #else # define EXTERN_TUNABLE /* Do not make static */ #endif -- -Al

[tools-compilers] [xwin-discuss] Size reduction of binaries (e.g. gcc "-fmerge-all-constants") ... / was: Re: [indiana-discuss] SUNWxorg-mesabinary sizegrowth in nv_107: gcc vs.Sun cc

2009-02-24 Thread Alan Coopersmith
few megs - reducing Mesa's footprint by 29Mb met my goal of not being the cause of that in future builds. It doesn't need to be the smallest possible - I'm not going to strip symbol tables to make it smaller at the cost of debuggability for instance - just smaller than it w

[tools-compilers] Size reduction of binaries (e.g. gcc " -fmerge-all-constants") ... / was: Re: [indiana-discuss] [xwin-discuss] SUNWxorg-mesa binary sizegrowth in nv_107: gcc vs.Sun cc

2009-02-24 Thread Alan Coopersmith
to today with -xspace, and have a lot more pressing things to solve right now. -- -Alan Coopersmith- alan.coopersmith at sun.com Sun Microsystems, Inc. - X Window System Engineering

[tools-compilers] [desktop-discuss] Report on issues when porting OpenSource projects to Solaris

2009-01-23 Thread Alan Coopersmith
ns, as in: http://cgit.freedesktop.org/xorg/lib/libpciaccess/tree/src/common_interface.c#n39 I believe the versions are somewhat optimized, due to CR 6729208: Optimize BSWAP_* and BE_* macros in sys/byteorder.h to use inline amd64 assembly -- -Alan Coopersmith- alan.coopersmith at sun.com Sun Microsystems, Inc. - X Window System Engineering

[tools-compilers] What is "-xarch=v9c" ?

2008-11-17 Thread Alan Coopersmith
Fedor Sergeev wrote: > On Mon, Nov 17, 2008 at 02:01:23PM -0800, Alan Coopersmith wrote: >> No, -m64 indicates "compile in 64-bit mode", not "Use exactly the original v9 >> ISA with no later extensions." > > Oh, come on. > -xarch=v9 means "compi

[tools-compilers] What is "-xarch=v9c" ?

2008-11-17 Thread Alan Coopersmith
No, -m64 indicates "compile in 64-bit mode", not "Use exactly the original v9 ISA with no later extensions." -Alan Coopersmith- alan.coopersmith at sun.com Sun Microsystems, Inc. - X Window System Engineering Fedor Sergeev wrote: > On Mon, Nov

[tools-compilers] What is "-xarch=v9c" ?

2008-11-17 Thread Alan Coopersmith
Is there any replacement for -xarch=v9 to indicate "Don't use any SPARC ISA extensions so this runs on all sun4u/sun4v machines" that doesn't result in Sun Studio issuing obnoxious "We obsoleted your flags" warnings for every file compiled? -Alan Coopersmith-

[tools-compilers] inline assembler for sun studio compiler

2008-10-20 Thread Alan Coopersmith
is Express they are in /usr/bin. -- -Alan Coopersmith- alan.coopersmith at sun.com Sun Microsystems, Inc. - X Window System Engineering

[tools-compilers] [Fwd: #ifdef checks for inline, __func__, etc in Sun Studio?]

2008-06-19 Thread Alan Coopersmith
a weak foo >> #endif > > Just FYI. > Our C compiler is able to comprehend weak attribute starting with Sun Studio > 12. So that should become: #if defined(__ELF__) && ( (defined(__GNUC__) && (__GNUC__ >= 3)) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x59

[tools-compilers] [Fwd: #ifdef checks for inline, __func__, etc in Sun Studio?]

2008-06-19 Thread Alan Coopersmith
RO_C >= 0x550) # define EXPORT __global # define HIDDEN __hidden # define INTERNAL __hidden #else /* not gcc >= 4 and not Sun Studio >= 8 */ # define EXPORT # define HIDDEN # define INTERNAL #endif /* GNUC >= 4 */ - Weak symbols: #if defined(__ELF__) &&

[tools-compilers] #ifdef checks for inline, __func__, etc in Sun Studio?

2008-06-10 Thread Alan Coopersmith
for __STDC_VERSION__). Do I just need to add something like: #elif defined(__SUNPRO_C) && (__SUNPRO_C > 0x0550) and if so is there any list of what versions support what features without having to manually compare the last 10 versions worth of compiler docs on docs.sun.com? --

[tools-compilers] missing stdio.h

2008-05-26 Thread Alan Coopersmith
pilers and all the relevant developer packages, such as most of the system headers. -- -Alan Coopersmith- alan.coopersmith at sun.com Sun Microsystems, Inc. - X Window System Engineering

[tools-compilers] OpenSolaris 200805 and compilers

2008-05-07 Thread Alan Coopersmith
alan pae wrote: > Can't find Sun Studio or gcc. > > How did this happen? Try "pkg install ss-dev" or "pkg install gcc-dev" - the package gui doesn't categorize them properly so they don't show up under development tools. -- -Alan Cooper

[tools-compilers] [osol-discuss] cc -include

2008-03-05 Thread Alan Coopersmith
sktop.org/xorg/xserver/log/hw/xfree86/xf1bpp/Makefile.am ) -- -Alan Coopersmith- alan.coopersmith at sun.com Sun Microsystems, Inc. - X Window System Engineering

[tools-compilers] [osol-bugs] Byte / word confusion in Sun C 5.9 / Intel

2008-03-03 Thread Alan Coopersmith
submitted somewhere on http://developer.sun.com/ -Alan Coopersmith- alan.coopersmith at sun.com Sun Microsystems, Inc. - X Window System Engineering Andy Armstrong wrote: > (I hope this is the right place for the report - I couldn't find the > compiler listed as a

[tools-compilers] Error using SS11 (-include option)

2008-02-01 Thread Alan Coopersmith
y implement the common ones. I'm not sure we have time to do them > all. :-( > Is this one widely used? I had to modify the X.Org builds a while ago to work around the lack of -include, instead creating .c files in the builds that included the necessary .h files. -- -Alan Co

[tools-compilers] [tools-discuss] using Sun Studio 12 to build variouspartsofOpenSolaris

2007-12-12 Thread Alan Coopersmith
sted a sponsor, and been ignored for months or longer (the first one on the list from him is now over a year old). Given our poor track record, it seems more likely we'll just migrate to Studio 13 first, which will have -xstrconst on by default. -- -Alan Coopersmith- alan.coo

[tools-compilers] [request-sponsor] Bug ID 6515400 and gccfss?

2007-10-30 Thread Alan Coopersmith
en only if they're functions exposed to other applications/modules/etc. -- -Alan Coopersmith- alan.coopersmith at sun.com Sun Microsystems, Inc. - X Window System Engineering