Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ BUILD_PREFIX_1 = @BUILD_PREFIX_1@

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

Expand Down Expand Up @@ -584,7 +584,7 @@ CXXFLAGS_FOR_TARGET = @CXXFLAGS_FOR_TARGET@
LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
LDFLAGS_FOR_TARGET = @LDFLAGS_FOR_TARGET@
GOCFLAGS_FOR_TARGET = -O2 -g
GOCFLAGS_FOR_TARGET = -Og -g

FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
Expand Down
4 changes: 2 additions & 2 deletions Makefile.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ BUILD_PREFIX_1 = @BUILD_PREFIX_1@

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

Expand Down Expand Up @@ -517,7 +517,7 @@ CXXFLAGS_FOR_TARGET = @CXXFLAGS_FOR_TARGET@
LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
LDFLAGS_FOR_TARGET = @LDFLAGS_FOR_TARGET@
GOCFLAGS_FOR_TARGET = -O2 -g
GOCFLAGS_FOR_TARGET = -Og -g

FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
Expand Down
4 changes: 2 additions & 2 deletions config/acinclude.m4
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dnl normal versions of a library), tasteless as that idea is.
if test "$ac_test_CXXFLAGS" = set; then
CXXFLAGS="$ac_save_CXXFLAGS"
elif test $ac_cv_prog_cxx_g = yes; then
CXXFLAGS="-g -O2"
CXXFLAGS="-g -Og"
else
CXXFLAGS="-O2"
fi
Expand Down Expand Up @@ -121,7 +121,7 @@ dnl normal versions of a library), tasteless as that idea is.
if test "$ac_test_CFLAGS" = set; then
CFLAGS="$ac_save_CFLAGS"
elif test $ac_cv_prog_cc_g = yes; then
CFLAGS="-g -O2"
CFLAGS="-g -Og"
else
CFLAGS="-O2"
fi
Expand Down
8 changes: 4 additions & 4 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -4800,7 +4800,7 @@ if test "$ac_test_CFLAGS" = set; then
CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
if test "$GCC" = yes; then
CFLAGS="-g -O2"
CFLAGS="-g -Og"
else
CFLAGS="-g"
fi
Expand Down Expand Up @@ -5147,7 +5147,7 @@ if test "$ac_test_CXXFLAGS" = set; then
CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
if test "$GXX" = yes; then
CXXFLAGS="-g -O2"
CXXFLAGS="-g -Og"
else
CXXFLAGS="-g"
fi
Expand Down Expand Up @@ -6853,7 +6853,7 @@ fi
# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
if test "x$CFLAGS_FOR_TARGET" = x; then
if test "x${is_cross_compiler}" = xyes; then
CFLAGS_FOR_TARGET="-g -O2"
CFLAGS_FOR_TARGET="-g -Og"
else
CFLAGS_FOR_TARGET=$CFLAGS
case " $CFLAGS " in
Expand All @@ -6870,7 +6870,7 @@ fi

if test "x$CXXFLAGS_FOR_TARGET" = x; then
if test "x${is_cross_compiler}" = xyes; then
CXXFLAGS_FOR_TARGET="-g -O2"
CXXFLAGS_FOR_TARGET="-g -Og"
else
CXXFLAGS_FOR_TARGET=$CXXFLAGS
case " $CXXFLAGS " in
Expand Down
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2381,7 +2381,7 @@ AC_SUBST(DEBUG_PREFIX_CFLAGS_FOR_TARGET)
# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
if test "x$CFLAGS_FOR_TARGET" = x; then
if test "x${is_cross_compiler}" = xyes; then
CFLAGS_FOR_TARGET="-g -O2"
CFLAGS_FOR_TARGET="-g -Og"
else
CFLAGS_FOR_TARGET=$CFLAGS
case " $CFLAGS " in
Expand All @@ -2398,7 +2398,7 @@ AC_SUBST(CFLAGS_FOR_TARGET)

if test "x$CXXFLAGS_FOR_TARGET" = x; then
if test "x${is_cross_compiler}" = xyes; then
CXXFLAGS_FOR_TARGET="-g -O2"
CXXFLAGS_FOR_TARGET="-g -Og"
else
CXXFLAGS_FOR_TARGET=$CXXFLAGS
case " $CXXFLAGS " in
Expand Down
2 changes: 1 addition & 1 deletion libgloss/config/default.mh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ NEWLIB_LDFLAGS = `if [ -d ${objroot}/newlib ]; then echo -B${objroot}/newlib/ -L
INCLUDES = -I. -I$(srcdir)/.. -I$(objdir)/.. -idirafter $(srcroot)/include
# Note that when building the library, ${MULTILIB} is not the way multilib
# options are passed; they're passed in $(CFLAGS).
CFLAGS_FOR_TARGET = -O2 -g ${MULTILIB} ${INCLUDES} ${NEWLIB_CFLAGS}
CFLAGS_FOR_TARGET = -Og -g ${MULTILIB} ${INCLUDES} ${NEWLIB_CFLAGS}
LDFLAGS_FOR_TARGET = ${MULTILIB} ${NEWLIB_LDFLAGS}
AR_FLAGS = rc

Expand Down
2 changes: 1 addition & 1 deletion libgloss/config/dos.mh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ NEWLIB_LDFLAGS = `if [ -d ${objroot}/newlib ]; then echo -B${objroot}/newlib/; f
INCLUDES = -I.
# Note that when building the library, ${MULTILIB} is not the way multilib
# options are passed; they're passed in $(CFLAGS).
CFLAGS_FOR_TARGET = -O2 -g ${MULTILIB} ${INCLUDES} ${NEWLIB_CFLAGS}
CFLAGS_FOR_TARGET = -Og -g ${MULTILIB} ${INCLUDES} ${NEWLIB_CFLAGS}
LDFLAGS_FOR_TARGET = ${MULTILIB} ${NEWLIB_LDFLAGS}
ARFLAGS_FOR_TARGET = qc

Expand Down
2 changes: 1 addition & 1 deletion libgloss/config/ppc.mh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ CFLAGS_MRELOCATABLE = -mrelocatable-lib -mno-eabi
INCLUDES = -I. -I$(srcdir)/.. -I$(objdir)/..
# Note that when building the library, ${MULTILIB} is not the way multilib
# options are passed; they're passed in $(CFLAGS).
CFLAGS_FOR_TARGET = -O2 -g ${MULTILIB} ${INCLUDES} ${NEWLIB_CFLAGS}
CFLAGS_FOR_TARGET = -Og -g ${MULTILIB} ${INCLUDES} ${NEWLIB_CFLAGS}
LDFLAGS_FOR_TARGET = ${MULTILIB} ${NEWLIB_LDFLAGS}
AR_FLAGS = qc

Expand Down
2 changes: 1 addition & 1 deletion libgloss/configure
Original file line number Diff line number Diff line change
Expand Up @@ -4077,7 +4077,7 @@ if test "$ac_test_CFLAGS" = set; then
CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
if test "$GCC" = yes; then
CFLAGS="-g -O2"
CFLAGS="-g -Og"
else
CFLAGS="-g"
fi
Expand Down
2 changes: 1 addition & 1 deletion libtool.m4
Original file line number Diff line number Diff line change
Expand Up @@ -7074,7 +7074,7 @@ AC_DEFUN([LT_PROG_GCJ],
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
[AC_CHECK_TOOL(GCJ, gcj,)
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -Og"
AC_SUBST(GCJFLAGS)])])[]dnl
])

Expand Down
2 changes: 1 addition & 1 deletion newlib/configure
Original file line number Diff line number Diff line change
Expand Up @@ -4029,7 +4029,7 @@ if test "$ac_test_CFLAGS" = set; then
CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
if test "$GCC" = yes; then
CFLAGS="-g -O2"
CFLAGS="-g -Og"
else
CFLAGS="-g"
fi
Expand Down
8 changes: 4 additions & 4 deletions winsup/cygwin/aarch64/fastcwd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ find_fast_cwd_pointer_aarch64 ()
start = pc = (const uint32_t *) use_cwd;

const uint32_t *ldrpc = NULL;
uint32_t ldroffset, ldrsz;
uint32_t ldrrn, ldrrd;
uint32_t ldroffset = 0, ldrsz = 0;
uint32_t ldrrn = 0, ldrrd = 0;

/* find the ldr (immediate unsigned offset) for RtlpCurDirRef */
for (; pc < start + 20 && !IS_INSN (pc, ret) && !IS_INSN (pc, b); pc++)
Expand Down Expand Up @@ -163,8 +163,8 @@ find_fast_cwd_pointer_aarch64 ()
if (IS_INSN (pc, bl) && extract_bl_target (pc) == ent_crit)
break;
}
uint32_t addoffset;
uint32_t addrn;
uint32_t addoffset = 0;
uint32_t addrn = 0;
for (; pc >= start; pc--)
{
if (IS_INSN (pc, add) && (*pc & 0x1F) == 0)
Expand Down
Loading
Loading