This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix SHF_MERGE configury (was Re: Cannot bootstrap gcc compiler on main line)
On Wed, Sep 12, 2001 at 07:00:34PM +0200, Peter Schmid wrote:
> Which version of binutils is needed for a working section merging support
> (HAVE_GAS_SHF_MERGE)?
Well, working it is for quite some time. But I had to change the attribute
letters yesterday since they collided with some IA-64 flag (unimplemented
yet in gas).
Anyway, the problem is that invalid section attributes don't generate an
error, but merely a warning.
Commiting as obvious:
2001-09-12 Jakub Jelinek <jakub@redhat.com>
* configure.in (gcc_cv_as_shf_merge): Fix a typo.
Use --fatal-warnings option for gas.
--- gcc/configure.in.jj Wed Sep 12 17:40:41 2001
+++ gcc/configure.in Wed Sep 12 18:13:48 2001
@@ -1488,12 +1488,12 @@ AC_MSG_CHECKING(assembler section mergin
gcc_cv_as_shf_merge=no
if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 12 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
- gcc_cv_as_subsections="working SHF_MERGE support"
+ gcc_cv_as_shf_merge=yes
fi
elif test x$gcc_cv_as != x; then
# Check if we support SHF_MERGE sections
echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
- if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
+ if $gcc_cv_as --fatal-warnings -o conftest.o conftest.s > /dev/null 2>&1; then
gcc_cv_as_shf_merge=yes
fi
rm -f conftest.s conftest.o
--- gcc/configure.jj Wed Sep 12 17:40:42 2001
+++ gcc/configure Wed Sep 12 18:14:30 2001
@@ -7169,12 +7169,12 @@ echo "configure:6569: checking assembler
gcc_cv_as_shf_merge=no
if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 12 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
- gcc_cv_as_subsections="working SHF_MERGE support"
+ gcc_cv_as_shf_merge=yes
fi
elif test x$gcc_cv_as != x; then
# Check if we support SHF_MERGE sections
echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
- if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
+ if $gcc_cv_as --fatal-warnings -o conftest.o conftest.s > /dev/null 2>&1; then
gcc_cv_as_shf_merge=yes
fi
rm -f conftest.s conftest.o
Jakub