http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54595
Bug #: 54595
Summary: [4.8 Regression] symbol causes a section type conflict
with itself with -O -g -fdata-section
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
AssignedTo: [email protected]
ReportedBy: [email protected]
Created attachment 28198
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28198
Preprocessed source, gzipped because it's huge
Compiling llvm with -O -g -fdata-section results in
$ /opt/android-toolchain-trunk/bin/arm-linux-androideabi-g++ -O -g
-fdata-sections -c FunctionAttrs.i -o
out/target/product/maguro/obj/STATIC_LIBRARIES/libLLVMipo_intermediates/FunctionAttrs.o
In file included from external/llvm/include/llvm/Argument.h:18:0,
from external/llvm/include/llvm/Function.h:24,
from external/llvm/include/llvm/Analysis/CallGraph.h:54,
from external/llvm/include/llvm/CallGraphSCCPass.h:25,
from external/llvm/lib/Transforms/IPO/FunctionAttrs.cpp:23:
external/llvm/include/llvm/Attributes.h:113:52: error:
llvm::Attribute::ReadOnly causes a section type conflict with
llvm::Attribute::ReadOnly
DECLARE_LLVM_ATTRIBUTE(ReadOnly,1<<10) ///< Function only reads from memory
^
I haven't tried to isolate the cause/reduce the test case yet; this might be a
dupe of
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53475