LoongArch: Deprecate -mignore-start-align option
Deprecates the -mignore-start-align option in LoongArch GAS as it's no longer needed.
The -mignore-start-align option for LoongArch’s assembler (GAS) is deprecated and now only issues a warning. This is because the assembler’s default optimization for alignment before the first relaxable relocation makes the special handling provided by this option redundant. The internal flag LARCH_opts.ignore_start_align has also been removed.
In Details
This patch deprecates the -mignore-start-align option in the LoongArch GAS backend. This option previously existed to prevent GAS from optimizing alignment before the first relaxable relocation. However, subsequent changes have made this optimization the default behavior, rendering the option unnecessary. The patch now makes the option issue a warning and removes the associated internal LARCH_opts.ignore_start_align flag, simplifying the assembler's configuration.
- GAS
- The GNU Assembler, a component of the GNU Binutils package that translates assembly language code into machine code.
- deprecated
- Marked for removal in a future version. While still functional, its use is discouraged, and users should migrate to alternatives.
- linker-relaxable
- A code fragment or instruction whose size or position can be adjusted by the linker during the relaxation phase to optimize code density or performance.
- relocation
- A process performed by the linker or dynamic loader to resolve symbolic references between different object files or libraries. It involves adjusting addresses based on the final memory layout.