FPC does not build with -Os option
Original Reporter info from Mantis: CuriousKit @CuriousKit
-
Reporter name: J. Gareth Moreton
Original Reporter info from Mantis: CuriousKit @CuriousKit
- Reporter name: J. Gareth Moreton
Description:
As of revision r43880, the Free Pascal Compiler does not build under i386 and x86_64, failing at the ppc2 stage with access violations.
e.g. from i386-win32:
C:/Users/NLO-012/Documents/Programming/fpc/compiler/ppc2.exe -Ur -Xs -O2 -n -Fi../inc -Fi../i386 -Fi../win -FE. -FUC:/Users/NLO-012/Documents/Programming/fpc/rtl/units/i386-win32 -Os -di386 -dRELEASE -Us -Sg system.pp -Fi../win
system.pp(132,4) Error: Compilation raised exception internally
Fatal: Compilation aborted
An unhandled exception occurred at $004879F9:
EAccessViolation: Access violation<br/>
$004879F9
$00479C8B
$004CAB19
$004CCB99
$004CD024
$00434D72
$00413E55
An unhandled exception occurred at $00419A11:
EAccessViolation: Access violation
$00419A11
$00419A9A
$0040BC61
$77458DA2
$77458D74
$77444216
$00479C8B
$004CAB19
$004CCB99
$004CD024
$00434D72
$00413E55
Steps to reproduce:
Pull a fresh copy of the SVN trunk (r43880 or r43881) and attempt to run "make clean all install OPT=-Os"
Additional information:
Personally confirmed broken for i386-win32, x86_64-win64, i386-linux and x86_64-linux (the last two via Ubuntu).
Mantis conversion info:
- Mantis ID: 36530
- OS: Microsoft Windows
- OS Build: 10 Professional
- Build: r43880
- Platform: i386 and x86_64
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 43888 (#11287f01)