rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / runtime / clisp / patches / gcc-opt-flags.patch
blob1c62a6e94d8d9cb536fb3d9932bb39c5ed1e45e5
1 Optimization flags should be set otherwise:
3 _CODE_ALIGNMENT is wrong. &QUOTE = 0x8090a56.
5 Add -falign-functions=4 to CFLAGS in the Makefile.
7 --- src/intparam.c.1 2016-05-13 14:08:54.137339146 +0300
8 +++ src/intparam.c 2016-05-13 14:09:01.660360716 +0300
9 @@ -8,7 +8,6 @@
10 * zu verhindern, bei AIX 3.2.5 (rs6000-ibm-aix3.2.5) jedoch nicht. Wir
11 * müssen Gewalt anwenden.
13 -#define _POSIX_SOURCE
14 #define uchar os_uchar
15 #define ushort os_ushort
16 #define uint os_uint
17 --- src/makemake.in.~1~ 2010-07-07 19:15:35.000000000 +0400
18 +++ src/makemake.in 2016-05-13 14:39:37.001913716 +0300
19 @@ -1235,7 +1235,7 @@
20 if [ $CROSS = false ] ; then
21 case "$XCC_GCC_VERSION" in
22 # gcc 2.7 introduced an annoying warning, but gcc 2.8 has a workaround:
23 - 2.[8-9]* | 3.* | 4.* | egcs-2.*)
24 + 2.[8-9]* | 3.* | 4.* | 5.* | 6.* | 7.* | 8.* | egcs-2.*)
25 XCFLAGS=$XCFLAGS' -Wno-sign-compare -Wno-format-nonliteral'
27 * ) ;;
28 @@ -1244,7 +1244,7 @@
29 if [ $CROSS = false -a $CC_CPLUSPLUS = true ] ; then
30 case "$XCC_GCC_VERSION" in
31 # g++ 3.4 introduced an annoying warning, but has a workaround:
32 - 3.[4-9]* | 4.*)
33 + 3.[4-9]* | 4.* | 5.* | 6.* | 7.* | 8.* )
34 XCFLAGS=$XCFLAGS' -Wno-invalid-offsetof'
36 * ) ;;
37 @@ -1259,7 +1259,7 @@
38 # gcc-2.7.2 has a strength-reduction bug (fixed in gcc-2.7.2.1,
39 # also fixed through the specs file of some Linux distributions).
40 XCFLAGS=$XCFLAGS' -O2 -fexpensive-optimizations -fno-strength-reduce' ;;
41 - 2.3.[2-9]* | 2.[4-9]* | 3.* | 4.* | egcs-2.*)
42 + 2.3.[2-9]* | 2.[4-9]* | 3.* | 4.* | 5.* | 6.* | 7.* | 8.* | egcs-2.*)
43 XCFLAGS=$XCFLAGS' -O2 -fexpensive-optimizations' ;;
44 * )
45 XCFLAGS=$XCFLAGS' -O' ;;
46 @@ -1313,7 +1313,7 @@
47 esac
48 fi # !DEBUGGING
49 case "$XCC_GCC_VERSION" in
50 - 3* | 4*)
51 + 3* | 4* | 5* | 6* | 7* | 8* )
52 # When not optimizing on linux, or with Apple's gcc 4 on MacOS X,
53 # or with GCC 4 when "gcc -Os" is used:
54 # C_CODE_ALIGNMENT is wrong. &EVAL-WHEN = 0x806D512