]> TLD Linux GIT Repositories - packages/gcc.git/blob - gcc-nodebug.patch
- fixed branch.diff, bug-111413.patch already in branch.diff
[packages/gcc.git] / gcc-nodebug.patch
1 diff -urNp -x '*.orig' gcc-10.2.0.org/Makefile.in gcc-10.2.0/Makefile.in
2 --- gcc-10.2.0.org/Makefile.in  2020-07-23 08:35:16.912379792 +0200
3 +++ gcc-10.2.0/Makefile.in      2021-03-21 01:23:21.870335808 +0100
4 @@ -373,7 +373,7 @@ BUILD_PREFIX_1 = @BUILD_PREFIX_1@
5  
6  # Flags to pass to stage2 and later makes.  They are defined
7  # here so that they can be overridden by Makefile fragments.
8 -BOOT_CFLAGS= -g -O2
9 +BOOT_CFLAGS= -O2
10  BOOT_LDFLAGS=
11  BOOT_ADAFLAGS= -gnatpg
12  
13 @@ -619,8 +619,8 @@ CXXFLAGS_FOR_TARGET = @CXXFLAGS_FOR_TARG
14  LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
15  LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
16  LDFLAGS_FOR_TARGET = @LDFLAGS_FOR_TARGET@
17 -GOCFLAGS_FOR_TARGET = -O2 -g
18 -GDCFLAGS_FOR_TARGET = -O2 -g
19 +GOCFLAGS_FOR_TARGET = -O2
20 +GDCFLAGS_FOR_TARGET = -O2
21  
22  FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
23  SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
24 diff -urNp -x '*.orig' gcc-10.2.0.org/gcc/ada/gcc-interface/Makefile.in gcc-10.2.0/gcc/ada/gcc-interface/Makefile.in
25 --- gcc-10.2.0.org/gcc/ada/gcc-interface/Makefile.in    2020-07-23 08:35:17.112381997 +0200
26 +++ gcc-10.2.0/gcc/ada/gcc-interface/Makefile.in        2021-03-21 01:23:21.859335808 +0100
27 @@ -66,7 +66,7 @@
28  # CFLAGS is for the user to override to, e.g., do a bootstrap with -O2.
29  # BOOT_CFLAGS is the value of CFLAGS to pass
30  # to the stage2 and stage3 compilations
31 -CFLAGS = -g
32 +CFLAGS =
33  BOOT_CFLAGS = -O $(CFLAGS)
34  # These exists to be overridden by the t-* files, respectively.
35  T_CFLAGS =
36 @@ -105,13 +105,13 @@ TEXI2PDF = texi2pdf
37  GNATBIND_FLAGS = -static -x
38  ADA_CFLAGS =
39  ADAFLAGS = -W -Wall -gnatpg -gnata
40 -FORCE_DEBUG_ADAFLAGS = -g
41 +FORCE_DEBUG_ADAFLAGS =
42  NO_INLINE_ADAFLAGS = -fno-inline
43  NO_OMIT_ADAFLAGS = -fno-omit-frame-pointer
44  NO_SIBLING_ADAFLAGS = -fno-optimize-sibling-calls
45  NO_REORDER_ADAFLAGS = -fno-toplevel-reorder
46  GNATLIBFLAGS = -W -Wall -gnatpg -nostdinc
47 -GNATLIBCFLAGS = -g -O2
48 +GNATLIBCFLAGS = -O2
49  # Pretend that _Unwind_GetIPInfo is available for the target by default.  This
50  # should be autodetected during the configuration of libada and passed down to
51  # here, but we need something for --disable-libada and hope for the best.
52 diff -urNp -x '*.orig' gcc-10.2.0.org/libada/Makefile.in gcc-10.2.0/libada/Makefile.in
53 --- gcc-10.2.0.org/libada/Makefile.in   2020-07-23 08:35:18.684399314 +0200
54 +++ gcc-10.2.0/libada/Makefile.in       2021-03-21 01:23:21.859335808 +0100
55 @@ -61,7 +61,7 @@ LDFLAGS=
56  CFLAGS=-g
57  PICFLAG = @PICFLAG@
58  GNATLIBFLAGS= -W -Wall -gnatpg -nostdinc
59 -GNATLIBCFLAGS= -g -O2
60 +GNATLIBCFLAGS= -O2
61  GNATLIBCFLAGS_FOR_C = -W -Wall $(GNATLIBCFLAGS) $(CFLAGS_FOR_TARGET) \
62         -fexceptions -DIN_RTS @have_getipinfo@ @have_capability@
63  
64 diff -urNp -x '*.orig' gcc-10.2.0.org/libffi/Makefile.am gcc-10.2.0/libffi/Makefile.am
65 --- gcc-10.2.0.org/libffi/Makefile.am   2020-07-23 08:35:18.736399887 +0200
66 +++ gcc-10.2.0/libffi/Makefile.am       2021-03-21 01:23:21.859335808 +0100
67 @@ -202,7 +202,7 @@ nodist_libffi_convenience_la_SOURCES = $
68  
69  LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
70  
71 -AM_CFLAGS = -Wall -g -fexceptions
72 +AM_CFLAGS = -Wall -fexceptions
73  if FFI_DEBUG
74  # Build debug. Define FFI_DEBUG on the commandline so that, when building with
75  # MSVC, it can link against the debug CRT.
76 diff -urNp -x '*.orig' gcc-10.2.0.org/libffi/Makefile.in gcc-10.2.0/libffi/Makefile.in
77 --- gcc-10.2.0.org/libffi/Makefile.in   2020-07-23 08:35:54.708796179 +0200
78 +++ gcc-10.2.0/libffi/Makefile.in       2021-03-21 01:23:21.860335808 +0100
79 @@ -604,7 +604,7 @@ libffi_convenience_la_LIBADD = $(libffi_
80  libffi_convenience_la_DEPENDENCIES = $(libffi_la_DEPENDENCIES)
81  nodist_libffi_convenience_la_SOURCES = $(nodist_libffi_la_SOURCES)
82  LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
83 -AM_CFLAGS = -Wall -g -fexceptions $(am__append_2)
84 +AM_CFLAGS = -Wall -fexceptions $(am__append_2)
85  @LIBAT_BUILD_VERSIONED_SHLIB_FALSE@libffi_version_script = 
86  @LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE@@LIBAT_BUILD_VERSIONED_SHLIB_TRUE@libffi_version_script = -Wl,--version-script,libffi.map
87  @LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE@@LIBAT_BUILD_VERSIONED_SHLIB_TRUE@libffi_version_script = -Wl,-M,libffi.map-sun
88 diff -urNp -x '*.orig' gcc-10.2.0.org/libgcc/Makefile.in gcc-10.2.0/libgcc/Makefile.in
89 --- gcc-10.2.0.org/libgcc/Makefile.in   2020-07-23 08:35:18.748400018 +0200
90 +++ gcc-10.2.0/libgcc/Makefile.in       2021-03-21 01:23:21.860335808 +0100
91 @@ -243,7 +243,7 @@ endif
92  
93  # Options to use when compiling libgcc2.a.
94  #
95 -LIBGCC2_DEBUG_CFLAGS = -g
96 +LIBGCC2_DEBUG_CFLAGS =
97  LIBGCC2_CFLAGS = -O2 $(LIBGCC2_INCLUDES) $(GCC_CFLAGS) $(HOST_LIBGCC2_CFLAGS) \
98                  $(LIBGCC2_DEBUG_CFLAGS) -DIN_LIBGCC2 \
99                  -fbuilding-libgcc -fno-stack-protector \
100 diff -urNp -x '*.orig' gcc-10.2.0.org/libstdc++-v3/include/Makefile.am gcc-10.2.0/libstdc++-v3/include/Makefile.am
101 --- gcc-10.2.0.org/libstdc++-v3/include/Makefile.am     2021-03-21 01:22:56.853335808 +0100
102 +++ gcc-10.2.0/libstdc++-v3/include/Makefile.am 2021-03-21 01:23:21.861335808 +0100
103 @@ -1343,22 +1343,22 @@ ${host_builddir}/gthr-default.h: ${tople
104  # Build two precompiled C++ includes, stdc++.h.gch/*.gch
105  ${pch1a_output}: ${allstamped} ${host_builddir}/c++config.h ${pch1_source}
106         -mkdir -p ${pch1_output_builddir}
107 -       $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) -O2 -g -std=gnu++0x ${pch1_source} \
108 +       $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) -O2 -std=gnu++0x ${pch1_source} \
109         -o $@
110  
111  ${pch1b_output}: ${allstamped} ${host_builddir}/c++config.h ${pch1_source}
112         -mkdir -p ${pch1_output_builddir}
113 -       $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) -O2 -g ${pch1_source} -o $@
114 +       $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) -O2 ${pch1_source} -o $@
115  
116  # Build a precompiled TR1 include, stdtr1c++.h.gch/O2.gch
117  ${pch2_output}: ${pch2_source} ${pch1_output}
118         -mkdir -p ${pch2_output_builddir}
119 -       $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) -O2 -g ${pch2_source} -o $@
120 +       $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) -O2 ${pch2_source} -o $@
121  
122  # Build a precompiled extension include, extc++.h.gch/O2.gch
123  ${pch3_output}: ${pch3_source} ${pch2_output}
124         -mkdir -p ${pch3_output_builddir}
125 -       $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) -O2 -g ${pch3_source} -o $@
126 +       $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) -O2 ${pch3_source} -o $@
127  
128  # For robustness sake (in light of junk files or in-source
129  # configuration), copy from the build or source tree to the install
130 diff -urNp -x '*.orig' gcc-10.2.0.org/libstdc++-v3/include/Makefile.in gcc-10.2.0/libstdc++-v3/include/Makefile.in
131 --- gcc-10.2.0.org/libstdc++-v3/include/Makefile.in     2021-03-21 01:22:56.854335808 +0100
132 +++ gcc-10.2.0/libstdc++-v3/include/Makefile.in 2021-03-21 01:23:21.861335808 +0100
133 @@ -1821,22 +1821,22 @@ ${host_builddir}/gthr-default.h: ${tople
134  # Build two precompiled C++ includes, stdc++.h.gch/*.gch
135  ${pch1a_output}: ${allstamped} ${host_builddir}/c++config.h ${pch1_source}
136         -mkdir -p ${pch1_output_builddir}
137 -       $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) -O2 -g -std=gnu++0x ${pch1_source} \
138 +       $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) -O2 -std=gnu++0x ${pch1_source} \
139         -o $@
140  
141  ${pch1b_output}: ${allstamped} ${host_builddir}/c++config.h ${pch1_source}
142         -mkdir -p ${pch1_output_builddir}
143 -       $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) -O2 -g ${pch1_source} -o $@
144 +       $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) -O2 ${pch1_source} -o $@
145  
146  # Build a precompiled TR1 include, stdtr1c++.h.gch/O2.gch
147  ${pch2_output}: ${pch2_source} ${pch1_output}
148         -mkdir -p ${pch2_output_builddir}
149 -       $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) -O2 -g ${pch2_source} -o $@
150 +       $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) -O2 ${pch2_source} -o $@
151  
152  # Build a precompiled extension include, extc++.h.gch/O2.gch
153  ${pch3_output}: ${pch3_source} ${pch2_output}
154         -mkdir -p ${pch3_output_builddir}
155 -       $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) -O2 -g ${pch3_source} -o $@
156 +       $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) -O2 ${pch3_source} -o $@
157  
158  # For robustness sake (in light of junk files or in-source
159  # configuration), copy from the build or source tree to the install