ARM section anchors
Paul Brook
paul@codesourcery.com
Fri Aug 29 23:25:00 GMT 2008
On Thursday 28 August 2008, Andrew Pinski wrote:
> On Thu, Aug 28, 2008 at 11:01 AM, Paul Brook <paul@codesourcery.com> wrote:
> > That patch below enables section anchors for ARM targets.
> >
> > Tested on arm-none-eabi
> > Applied to svn trunk.
> >
> > +/* Set default optimization options. */
> > +void
> > +arm_optimization_options (int level, int size ATTRIBUTE_UNUSED)
> > +{
> > + /* Enable section anchors by default at -O1 or higher. */
> > + flag_section_anchors = (level > 0 ? 1 : 0);
> > +}
>
> I notice two things:
> First this enables section anchors for objective-C, has the front-end
> been fixed? You said you tested on arm-eabi (and that enables
> objective-C by default and I know libobjc has been ported to that
> target) so what languages did you test?
Only C and C++.
> && lang_hooks.name[4] != 'O'
> && flag_toplevel_reorder != 0)
Eww. Seems strange that individual targets need to know about this sort of
thing.
Paul
More information about the Gcc-patches
mailing list