Compiling gcc with --enable-target-optspace (e.g. for embedded systems) (config/mt-ospace) overwrites -D_GNU_SOURCE (config/mt-linux). So errors occuring during compile because of missing pthread support (first in iostream.cc). Release: 2.95.2 19991024 Environment: linux How-To-Repeat: compile gcc with --enable-target-optspace
Responsible-Changed-From-To: unassigned->dj Responsible-Changed-Why: Build machinery mis-feature.
Does anyone know if this still happens?
Still happens.
DJ, this PR is currently assigned to you for some reason. Do you think you are likely to fix it?
Given that I forgot I had it, probably "no"
Thanks Ian for your help. This bug is still valid for gcc-4.6.0. When --enable-target-optspace is set config/mt-ospace is included and overwrites the configured CFLAGS_FOR_TARGET variable. config/mt-ospace: # Build libraries optimizing for space, not speed. CFLAGS_FOR_TARGET = -g -Os CXXFLAGS_FOR_TARGET = -g -Os So it's not possible to optimize the target libs for the target (e.g. -march=4kc -msoft-float).
Fixed for GCC 5 by r5-5081. https://gcc.gnu.org/pipermail/gcc-patches/2014-November/405648.html