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

[0/3] Allow optabs to be zero-initialised


The global optab arrays require each insn_code field to be initialised
to CODE_FOR_nothing (a target-dependent value greater than any real
insn code).  This series of three patches allows them to be initialised
to zero instead.

The series is a prerequisite for the upcoming "speed up target_reinit"
patches, but I think it's a good thing in its own right.  It shaves
about 600K from the data section of cc1 (the exact value is target-
dependent) and cuts down the amount of run-time initialisation.
It also removes some preprocessor-conditional code.

Bootstrapped & regression-tested on x86_64-linux-gnu.

Richard


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