Patchwork Committed: fix i686 bootstrap: x86_64_elf_select_section is unused

login
register
mail settings
Submitter Joern Rennecke
Date Aug. 26, 2013, 11:07 a.m.
Message ID <20130826070729.cdddm9kednkkg48c-nzlynne@webmail.spamcop.net>
Download mbox | patch
Permalink /patch/269859/
State New
Headers show

Comments

Joern Rennecke - Aug. 26, 2013, 11:07 a.m.
bootstrap for i686-pc-linux-gnu was failing with:

/ssd/fsf/boot-201992/./prev-gcc/xg++  
-B/ssd/fsf/boot-201992/./prev-gcc/ -B/usr/local/i686-pc-linux-gnu/bin/  
-nostdinc++  
-B/ssd/fsf/boot-201992/prev-i686-pc-linux-gnu/libstdc++-v3/src/.libs  
-B/ssd/fsf/boot-201992/prev-i686-pc-linux-gnu/libstdc++-v3/libsupc++/.libs  
-I/ssd/fsf/boot-201992/prev-i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu -I/ssd/fsf/boot-201992/prev-i686-pc-linux-gnu/libstdc++-v3/include -I/ssd/fsf/gcc/libstdc++-v3/libsupc++ -L/ssd/fsf/boot-201992/prev-i686-pc-linux-gnu/libstdc++-v3/src/.libs -L/ssd/fsf/boot-201992/prev-i686-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -c  -DIN_GCC_FRONTEND -g -O2 -gtoggle -DIN_GCC   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H -I. -Icp -I../../gcc/gcc -I../../gcc/gcc/cp -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include  -I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/bid -I../libdecnumber -I../../gcc/gcc/../libbacktrace    ../../gcc/gcc/cp/cp-gimplify.c -o  
cp/cp-gimplify.o
../../gcc/gcc/config/i386/i386.c:4851:1: error: ‘section*  
x86_64_elf_select_section(tree, int, long long unsigned int)’ defined  
but not used [-Werror=unused-function]

committed as obvious.

Patch

Index: config/i386/i386.c
===================================================================
--- config/i386/i386.c	(revision 201992)
+++ config/i386/i386.c	(working copy)
@@ -4847,7 +4847,7 @@  ix86_in_large_data_p (tree exp)
    RELOC indicates whether forming the initial value of DECL requires
    link-time relocations.  */
 
-static section * ATTRIBUTE_UNUSED
+ATTRIBUTE_UNUSED static section *
 x86_64_elf_select_section (tree decl, int reloc,
 			   unsigned HOST_WIDE_INT align)
 {