Skip to content

Commit

Permalink
gentoo: gcc: don't try to sed CFLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
thesamesam committed Dec 20, 2024
1 parent 9c6ec0d commit 5588689
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 46 deletions.
23 changes: 0 additions & 23 deletions gcc/configure
Original file line number Diff line number Diff line change
Expand Up @@ -5473,29 +5473,6 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu


# Remove all -O flags: for historical reasons, unless bootstrapping we prefer
# optimizations to be activated explicitly by the toplevel.
case "$CC" in
*/prev-gcc/xgcc*) ;;
*)
new_CFLAGS=
for flag in $CFLAGS; do
case $flag in
-O*) ;;
*) new_CFLAGS="$new_CFLAGS $flag" ;;
esac
done
CFLAGS=$new_CFLAGS
new_CXXFLAGS=
for flag in $CXXFLAGS; do
case $flag in
-O*) ;;
*) new_CXXFLAGS="$new_CXXFLAGS $flag" ;;
esac
done
CXXFLAGS=$new_CXXFLAGS
;;
esac



Expand Down
23 changes: 0 additions & 23 deletions gcc/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -463,29 +463,6 @@ ACX_PROG_GDC([-I"$srcdir"/d])
# Do configure tests with the C++ compiler, since that's what we build with.
AC_LANG(C++)

# Remove all -O flags: for historical reasons, unless bootstrapping we prefer
# optimizations to be activated explicitly by the toplevel.
case "$CC" in
*/prev-gcc/xgcc*) ;;
*)
new_CFLAGS=
for flag in $CFLAGS; do
case $flag in
-O*) ;;
*) new_CFLAGS="$new_CFLAGS $flag" ;;
esac
done
CFLAGS=$new_CFLAGS
new_CXXFLAGS=
for flag in $CXXFLAGS; do
case $flag in
-O*) ;;
*) new_CXXFLAGS="$new_CXXFLAGS $flag" ;;
esac
done
CXXFLAGS=$new_CXXFLAGS
;;
esac
AC_SUBST(CFLAGS)
AC_SUBST(CXXFLAGS)
AC_SUBST(GDCFLAGS)
Expand Down

0 comments on commit 5588689

Please sign in to comment.