This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc-ss-20030224: configure gives warnings on i686-pc-cygwin


In building gcc-ss-20030224 for i686-pc-cygwin, configure gives the
following warnings:

checking linker read-only and read-write section mixing... conftest1.s: \
Assembler messages:
conftest1.s:1: Warning: rest of line ignored; first ignored character \
is `"'
conftest2.s: Assembler messages:
conftest2.s:1: Warning: rest of line ignored; first ignored character \
is `"'
conftest3.s: Assembler messages:
conftest3.s:1: Warning: rest of line ignored; first ignored character \
is `"'


I've examined the results of configure and it seems that the variables
gcc_cv_gld{major,minor}_version are never set.  As a result when running
the read-only and read-write section mixing test, configure attempts to
build object files from three assembler files, all of which use a .section
syntax valid only on ELF systems (according to the 'as' manual)--with
the section name in double-quotes--and as such it's not valid for COFF
(which gcc/binutils uses for Cygwin/MinGW).

It works correctly if you take the quotes out of the program, as in:

--- gcc/configure.orig 2003-01-24 12:12:04.000000000 -0500
+++ gcc/configure 2003-03-02 02:50:13.000000000 -0500
@@ -8110,8 +8110,8 @@
   fi
 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ;
then
-  echo '.section "myfoosect", "a"' > conftest1.s
-  echo '.section "myfoosect", "aw"' > conftest2.s
+  echo '.section myfoosect, "a"' > conftest1.s
+  echo '.section myfoosect, "aw"' > conftest2.s
   echo '.byte 1' >> conftest2.s
-  echo '.section "myfoosect", "a"' > conftest3.s
+  echo '.section myfoosect, "a"' > conftest3.s
   echo '.byte 0' >> conftest3.s
   if $gcc_cv_as -o conftest1.o conftest1.s \

No warnings are produced under Cygwin--and FWIW, the check result
is "read-write".

---
Eric R. Krause




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]