how to switch to read-only data section test mangled

Jack Howarth howarth at bromo.med.uc.edu
Wed May 18 00:15:59 CEST 2011


  The problem with llvm-gcc and gmp-5.0.2 turns out to be due to an improper
regeneration of connfigure. The patch I sent to fix this only included an
acinclude.m4 change which is properly applied...

http://gmplib.org/list-archives/gmp-bugs/2011-April/002236.html

however the regenerated configure in gmp 5.0.2 strangely ended up with
the line...

const int foo[] = {1,2,3};

transformed into....

const int foo = {1,2,3};

This is a critical error as it produces warning in both clang....

conftest.c:1:22: warning: excess elements in scalar initializer
const int foo = { 1, 2, 3 };
                     ^
1 warning generated.

and llvm-gcc...

conftest.c:1: warning: excess elements in scalar initializer
conftest.c:1: warning: (near initialization for 'foo')
conftest.c:1: warning: excess elements in scalar initializer
conftest.c:1: warning: (near initialization for 'foo')

More importantly this malformed test triggers the creation of a .literal4 section
on llvm-gcc. I assume the configure was hand-edited as it should have matched the
proper contents from acinclude.m4 in gmp-5.0.2. Can we please get this fixed
for gmp 5.0.3?
       Jack



More information about the gmp-bugs mailing list