public inbox for gentoo-alpha@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-alpha] glibc-2.3.2-decc-compaq.patch
@ 2004-02-04 23:13 Marc Giger
  2004-02-06  3:55 ` Aron Griffis
  0 siblings, 1 reply; 11+ messages in thread
From: Marc Giger @ 2004-02-04 23:13 UTC (permalink / raw
  To: gentoo-alpha

Hi devs,

I'm playing around with the ccc/cxx and found some interesting things.

Can someone of you comment why the following patch is needed?

diff -ruN glibc-2.3.2.orig/include/features.h
glibc-2.3.2/include/features.h--- glibc-2.3.2.orig/include/features.h
2003-06-14 00:28:23.000000000 +0100+++ glibc-2.3.2/include/features.h   
  2003-06-14 00:58:57.000000000 +0100@@ -285,7 +285,8 @@
 #if defined __GNUC__ \
|| (defined __PGI && defined __i386__ ) \
|| (defined __INTEL_COMPILER && (defined __i386__ || defined __ia64__))\
- || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L)
+ || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L)\
+ &&!(defined(__DECC) || defined(__DECCXX)) 
# define__GLIBC_HAVE_LONG_LONG      1 
#endif

The Compaq C Compiler knows the "long long" datatype like gcc does. It's
also of the same size on both compilers 
(long == long int == long long == 8bytes). 

This breaks the compilation (with ccc) of some packages.

Comments?


Another thing is the following...:

printf '%s %s %s\n' \
                "-L${gcc_libs_path}" \
                " -SysIncDir
/usr/lib/compaq/ccc-${ccc_release}/alpha-linux/include" \               
" -SysIncDir /usr/include/linux" \                >
usr/lib/compaq/ccc-${ccc_release}/alpha-linux/bin/comp.config

..declared in the ccc ebuild. That's a big problem. I needed a lot of
time to figure out, why ccc could not compile files which had declared
INT_MAX or something like that. (@see <limits.h>)

The standard include path and the ccc include path must be declared
BEFORE gcc's include paths in comp.config, otherwise the INT_MAX & Co
Macros expands to __INT_MAX__ because the #include_next directives.
__INT_MAX__ is a predefined gcc thing.

Thank you for the time. Please mail me to discuss these.

greets

Marc

--
gentoo-alpha@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-02-08 16:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-04 23:13 [gentoo-alpha] glibc-2.3.2-decc-compaq.patch Marc Giger
2004-02-06  3:55 ` Aron Griffis
2004-02-06 19:14   ` Marc Giger
2004-02-07  0:40     ` Aron Griffis
2004-02-07 12:09       ` Marc Giger
2004-02-08  5:37         ` Aron Griffis
2004-02-08 10:14           ` Marc Giger
2004-02-08 16:02             ` Aron Griffis
2004-02-08 16:21           ` Marc Giger
2004-02-07  2:26     ` Aron Griffis
2004-02-07  9:54       ` Marc Giger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox