mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 13:49:17 +02:00
* fixed bootstrap for Darwin/ppc with FPC 3.0 (workaround for
mantis #29906) git-svn-id: trunk@33631 -
This commit is contained in:
parent
14bab6c85d
commit
51209eac9c
@ -29,7 +29,14 @@ unit objcasm;
|
||||
uses
|
||||
aasmbase;
|
||||
|
||||
{ Workaround for mantis #29906: bug in PPC jump table generation if a jump
|
||||
table is created for a case-statement that handles at least the lowest
|
||||
and highest possible value of the case expression type }
|
||||
{$ifndef VER3_0_0}
|
||||
function objc_section_name(sec: TObjCAsmSectionType): string;
|
||||
{$else}
|
||||
function objc_section_name(sec: TAsmSectionType): string;
|
||||
{$endif}
|
||||
|
||||
implementation
|
||||
|
||||
@ -37,7 +44,11 @@ implementation
|
||||
verbose,
|
||||
systems;
|
||||
|
||||
{$ifndef VER3_0_0}
|
||||
function objc_section_name(sec: TObjCAsmSectionType): string;
|
||||
{$else}
|
||||
function objc_section_name(sec: TAsmSectionType): string;
|
||||
{$endif}
|
||||
begin
|
||||
result:='';
|
||||
if target_info.system in systems_darwin then
|
||||
|
Loading…
Reference in New Issue
Block a user