Skip to content

Commit 774a246

Browse files
committed
Disable optimizations for easier debugging
1 parent c37a56c commit 774a246

File tree

13 files changed

+23
-23
lines changed

13 files changed

+23
-23
lines changed

Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ BUILD_PREFIX_1 = @BUILD_PREFIX_1@
364364

365365
# Flags to pass to stage2 and later makes. They are defined
366366
# here so that they can be overridden by Makefile fragments.
367-
BOOT_CFLAGS= -g -O2
367+
BOOT_CFLAGS= -g -Og
368368
BOOT_LDFLAGS=
369369
BOOT_ADAFLAGS= -gnatpg
370370

@@ -584,7 +584,7 @@ CXXFLAGS_FOR_TARGET = @CXXFLAGS_FOR_TARGET@
584584
LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
585585
LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
586586
LDFLAGS_FOR_TARGET = @LDFLAGS_FOR_TARGET@
587-
GOCFLAGS_FOR_TARGET = -O2 -g
587+
GOCFLAGS_FOR_TARGET = -Og -g
588588

589589
FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
590590
SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@

Makefile.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ BUILD_PREFIX_1 = @BUILD_PREFIX_1@
367367

368368
# Flags to pass to stage2 and later makes. They are defined
369369
# here so that they can be overridden by Makefile fragments.
370-
BOOT_CFLAGS= -g -O2
370+
BOOT_CFLAGS= -g -Og
371371
BOOT_LDFLAGS=
372372
BOOT_ADAFLAGS= -gnatpg
373373

@@ -517,7 +517,7 @@ CXXFLAGS_FOR_TARGET = @CXXFLAGS_FOR_TARGET@
517517
LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
518518
LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
519519
LDFLAGS_FOR_TARGET = @LDFLAGS_FOR_TARGET@
520-
GOCFLAGS_FOR_TARGET = -O2 -g
520+
GOCFLAGS_FOR_TARGET = -Og -g
521521

522522
FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
523523
SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@

config/acinclude.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dnl normal versions of a library), tasteless as that idea is.
2424
if test "$ac_test_CXXFLAGS" = set; then
2525
CXXFLAGS="$ac_save_CXXFLAGS"
2626
elif test $ac_cv_prog_cxx_g = yes; then
27-
CXXFLAGS="-g -O2"
27+
CXXFLAGS="-g -Og"
2828
else
2929
CXXFLAGS="-O2"
3030
fi
@@ -121,7 +121,7 @@ dnl normal versions of a library), tasteless as that idea is.
121121
if test "$ac_test_CFLAGS" = set; then
122122
CFLAGS="$ac_save_CFLAGS"
123123
elif test $ac_cv_prog_cc_g = yes; then
124-
CFLAGS="-g -O2"
124+
CFLAGS="-g -Og"
125125
else
126126
CFLAGS="-O2"
127127
fi

configure

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4800,7 +4800,7 @@ if test "$ac_test_CFLAGS" = set; then
48004800
CFLAGS=$ac_save_CFLAGS
48014801
elif test $ac_cv_prog_cc_g = yes; then
48024802
if test "$GCC" = yes; then
4803-
CFLAGS="-g -O2"
4803+
CFLAGS="-g -Og"
48044804
else
48054805
CFLAGS="-g"
48064806
fi
@@ -5147,7 +5147,7 @@ if test "$ac_test_CXXFLAGS" = set; then
51475147
CXXFLAGS=$ac_save_CXXFLAGS
51485148
elif test $ac_cv_prog_cxx_g = yes; then
51495149
if test "$GXX" = yes; then
5150-
CXXFLAGS="-g -O2"
5150+
CXXFLAGS="-g -Og"
51515151
else
51525152
CXXFLAGS="-g"
51535153
fi
@@ -6853,7 +6853,7 @@ fi
68536853
# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
68546854
if test "x$CFLAGS_FOR_TARGET" = x; then
68556855
if test "x${is_cross_compiler}" = xyes; then
6856-
CFLAGS_FOR_TARGET="-g -O2"
6856+
CFLAGS_FOR_TARGET="-g -Og"
68576857
else
68586858
CFLAGS_FOR_TARGET=$CFLAGS
68596859
case " $CFLAGS " in
@@ -6870,7 +6870,7 @@ fi
68706870

68716871
if test "x$CXXFLAGS_FOR_TARGET" = x; then
68726872
if test "x${is_cross_compiler}" = xyes; then
6873-
CXXFLAGS_FOR_TARGET="-g -O2"
6873+
CXXFLAGS_FOR_TARGET="-g -Og"
68746874
else
68756875
CXXFLAGS_FOR_TARGET=$CXXFLAGS
68766876
case " $CXXFLAGS " in

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2381,7 +2381,7 @@ AC_SUBST(DEBUG_PREFIX_CFLAGS_FOR_TARGET)
23812381
# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
23822382
if test "x$CFLAGS_FOR_TARGET" = x; then
23832383
if test "x${is_cross_compiler}" = xyes; then
2384-
CFLAGS_FOR_TARGET="-g -O2"
2384+
CFLAGS_FOR_TARGET="-g -Og"
23852385
else
23862386
CFLAGS_FOR_TARGET=$CFLAGS
23872387
case " $CFLAGS " in
@@ -2398,7 +2398,7 @@ AC_SUBST(CFLAGS_FOR_TARGET)
23982398

23992399
if test "x$CXXFLAGS_FOR_TARGET" = x; then
24002400
if test "x${is_cross_compiler}" = xyes; then
2401-
CXXFLAGS_FOR_TARGET="-g -O2"
2401+
CXXFLAGS_FOR_TARGET="-g -Og"
24022402
else
24032403
CXXFLAGS_FOR_TARGET=$CXXFLAGS
24042404
case " $CXXFLAGS " in

libgloss/config/default.mh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ NEWLIB_LDFLAGS = `if [ -d ${objroot}/newlib ]; then echo -B${objroot}/newlib/ -L
44
INCLUDES = -I. -I$(srcdir)/.. -I$(objdir)/.. -idirafter $(srcroot)/include
55
# Note that when building the library, ${MULTILIB} is not the way multilib
66
# options are passed; they're passed in $(CFLAGS).
7-
CFLAGS_FOR_TARGET = -O2 -g ${MULTILIB} ${INCLUDES} ${NEWLIB_CFLAGS}
7+
CFLAGS_FOR_TARGET = -Og -g ${MULTILIB} ${INCLUDES} ${NEWLIB_CFLAGS}
88
LDFLAGS_FOR_TARGET = ${MULTILIB} ${NEWLIB_LDFLAGS}
99
AR_FLAGS = rc
1010

libgloss/config/dos.mh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ NEWLIB_LDFLAGS = `if [ -d ${objroot}/newlib ]; then echo -B${objroot}/newlib/; f
44
INCLUDES = -I.
55
# Note that when building the library, ${MULTILIB} is not the way multilib
66
# options are passed; they're passed in $(CFLAGS).
7-
CFLAGS_FOR_TARGET = -O2 -g ${MULTILIB} ${INCLUDES} ${NEWLIB_CFLAGS}
7+
CFLAGS_FOR_TARGET = -Og -g ${MULTILIB} ${INCLUDES} ${NEWLIB_CFLAGS}
88
LDFLAGS_FOR_TARGET = ${MULTILIB} ${NEWLIB_LDFLAGS}
99
ARFLAGS_FOR_TARGET = qc
1010

libgloss/config/ppc.mh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ CFLAGS_MRELOCATABLE = -mrelocatable-lib -mno-eabi
88
INCLUDES = -I. -I$(srcdir)/.. -I$(objdir)/..
99
# Note that when building the library, ${MULTILIB} is not the way multilib
1010
# options are passed; they're passed in $(CFLAGS).
11-
CFLAGS_FOR_TARGET = -O2 -g ${MULTILIB} ${INCLUDES} ${NEWLIB_CFLAGS}
11+
CFLAGS_FOR_TARGET = -Og -g ${MULTILIB} ${INCLUDES} ${NEWLIB_CFLAGS}
1212
LDFLAGS_FOR_TARGET = ${MULTILIB} ${NEWLIB_LDFLAGS}
1313
AR_FLAGS = qc
1414

libgloss/configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4077,7 +4077,7 @@ if test "$ac_test_CFLAGS" = set; then
40774077
CFLAGS=$ac_save_CFLAGS
40784078
elif test $ac_cv_prog_cc_g = yes; then
40794079
if test "$GCC" = yes; then
4080-
CFLAGS="-g -O2"
4080+
CFLAGS="-g -Og"
40814081
else
40824082
CFLAGS="-g"
40834083
fi

libtool.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7074,7 +7074,7 @@ AC_DEFUN([LT_PROG_GCJ],
70747074
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
70757075
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
70767076
[AC_CHECK_TOOL(GCJ, gcj,)
7077-
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7077+
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -Og"
70787078
AC_SUBST(GCJFLAGS)])])[]dnl
70797079
])
70807080

0 commit comments

Comments
 (0)