"-OaLOCALMIN=16" / "codealign LOCALMIN=16" is not reliable
Original Reporter info from Mantis: crossbuilder
-
Reporter name: Burkhard Carstens
Original Reporter info from Mantis: crossbuilder
- Reporter name: Burkhard Carstens
Description:
running attached testprogram...
- ... compiled with -O1 shows wrong alignment of local variables of "procedure l_unit" (in ca_unit.pas) when called from ca_unit.initialization.
- ... compiled with -O2 / -O3 shows allways wrong alignment of local variables in "procedure l" (codealign.pas) and "procedure l_unit" (in ca_unit.pas).
Steps to reproduce:
compile and run attached test
Additional information:
Tested on:
- 32bit suse-10.0, binutils 2.16.91
- 64bit suse 11.2 (using 32-bit compiler), binutils 2.19.51
Tested with options:
-Aas -Xe
-Aelf -Xe
-Anasmelf -Xe
"-Aelf" and "-Aas" show identical behaviour.
"-Anasmelf" does not produce a runable binary (test dies on startup).
Mantis conversion info:
- Mantis ID: 15582
- OS: linux
- OS Build: suse 10.0
- Platform: i386
- Version: 2.4.0
- Fixed in version: 3.3.1
- Fixed in revision: 43176 (#fb918994)
- Monitored by: » etrusco (Flávio Etrusco), » denial (Daniel Glöckner), » Vincent (Vincent Snijders), » Cyrax (Cyrax), » @MageSlayer (Denis Golovan)