1 |
Hi devs, |
2 |
|
3 |
I'm playing around with the ccc/cxx and found some interesting things. |
4 |
|
5 |
Can someone of you comment why the following patch is needed? |
6 |
|
7 |
diff -ruN glibc-2.3.2.orig/include/features.h |
8 |
glibc-2.3.2/include/features.h--- glibc-2.3.2.orig/include/features.h |
9 |
2003-06-14 00:28:23.000000000 +0100+++ glibc-2.3.2/include/features.h |
10 |
2003-06-14 00:58:57.000000000 +0100@@ -285,7 +285,8 @@ |
11 |
#if defined __GNUC__ \ |
12 |
|| (defined __PGI && defined __i386__ ) \ |
13 |
|| (defined __INTEL_COMPILER && (defined __i386__ || defined __ia64__))\ |
14 |
- || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) |
15 |
+ || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L)\ |
16 |
+ &&!(defined(__DECC) || defined(__DECCXX)) |
17 |
# define__GLIBC_HAVE_LONG_LONG 1 |
18 |
#endif |
19 |
|
20 |
The Compaq C Compiler knows the "long long" datatype like gcc does. It's |
21 |
also of the same size on both compilers |
22 |
(long == long int == long long == 8bytes). |
23 |
|
24 |
This breaks the compilation (with ccc) of some packages. |
25 |
|
26 |
Comments? |
27 |
|
28 |
|
29 |
Another thing is the following...: |
30 |
|
31 |
printf '%s %s %s\n' \ |
32 |
"-L${gcc_libs_path}" \ |
33 |
" -SysIncDir |
34 |
/usr/lib/compaq/ccc-${ccc_release}/alpha-linux/include" \ |
35 |
" -SysIncDir /usr/include/linux" \ > |
36 |
usr/lib/compaq/ccc-${ccc_release}/alpha-linux/bin/comp.config |
37 |
|
38 |
..declared in the ccc ebuild. That's a big problem. I needed a lot of |
39 |
time to figure out, why ccc could not compile files which had declared |
40 |
INT_MAX or something like that. (@see <limits.h>) |
41 |
|
42 |
The standard include path and the ccc include path must be declared |
43 |
BEFORE gcc's include paths in comp.config, otherwise the INT_MAX & Co |
44 |
Macros expands to __INT_MAX__ because the #include_next directives. |
45 |
__INT_MAX__ is a predefined gcc thing. |
46 |
|
47 |
Thank you for the time. Please mail me to discuss these. |
48 |
|
49 |
greets |
50 |
|
51 |
Marc |
52 |
|
53 |
-- |
54 |
gentoo-alpha@g.o mailing list |