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]

Re: [RFH] Uses of output.h in the front ends


>>>>> "Steven" == Steven Bosscher <stevenb.gcc@gmail.com> writes:

[...]

Steven> java/class.c:     switch_to_section (get_section (buf, flags, NULL));
Steven> java/class.c:     switch_to_section (get_section (buf, flags, NULL));

Steven> I am not sure how to fix this. I think it could be fixed by having a
Steven> version of build_constant_desc that puts the data in a specific
Steven> section while wrapping up global variables in varasm.

In this particular case I'm not sure why switch_to_section is needed.
The code is also setting DECL_SECTION_NAME -- is that not enough?
It seems to be enough elsewhere in the same file ... see
emit_register_classes_in_jcr_section further down.

Tom


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