This is the mail archive of the gcc-bugs@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]

[Bug lto/48094] ld: warning: section has unexpectedly large size errors in objc/obj-c++ lto


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48094

--- Comment #15 from Iain Sandoe <iains at gcc dot gnu.org> 2012-02-12 14:43:49 UTC ---
this var is a two element array consisting of two integer constants.

the var is marked 'preserve' (because it is read by the OBJC runtime, but not
referenced from the code).

we get one instance of the var per input object file to LTO.

we would like one instance in the output (assuming that the values are really
identical).

so, if we:
 mark the section as SECTION_MERGE
 mark the decl as TREE_READONLY

would we reasonably expect lto to merge them?
if that is not enough, what additional  constraints could be specified?


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