Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2008-11

assembler error with inlining on power pc / mac? [Fwd: PPC: SynEditFoldedView giving "parameter syntax error"]

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin Friebe

Hi,

I do not have myself a power-pc, nor mac. But I have several reports like the below.

I know from one instance (where this happened during cross-compiling from a linux box) that the error disappeared, when inlining was disabled (The units explicitly marks a lot of procedures for inlining)

First: On power-pc/Mac, does fpc always use an external assembler? Or is there a build in assembler.

I know that the person cross-compiling was using an external assembler. / I do not know if the reporter below did or did not use an external assembler (but I see the "Assembling unit" in the output.)

I'd appreciate any other hints too.

Regards
Martin

Earlier message 40 lines
-------- Original Message -------- Subject: [Lazarus] PPC: SynEditFoldedView giving "parameter syntax error" Date: Thu, 6 Nov 2008 12:29:36 +0100 From: EarMaster - Bent Olsen Reply-To: General mailing list To: 'General mailing list' Hi all, I have updated Lazarus to latest revision (17246) on Win32 and Mac i386/PPC, and downloaded latest FPC 2.2.2 (20081106 on Win32, 20081104 on Mac i386/PPC). Lazarus are build nicely and with no errors on Win32 and Mac i386, but on PPC it is throwing: [...] Assembling syneditfoldedview Syneditfoldedview.pp:3191:Parameter syntax error (parameter 2) Syneditfoldedview.pp:3202:Parameter syntax error (parameter 2) [...]/lazarus/components/synedit/syneditfoldedview.pp(81,75) Error: Error while assembling exitcode 1 [...]/lazarus/components/synedit/syneditfoldedview.pp(81,75) Fatal: There were 2 errors compiling module, stopping Except for the compiler path, the environment settings, versions, and installations on Mac i386 and PPC are identical, so I have no clue as to why SynEdit will not compile. These are on Mac OS X version 10.4.11. Any clue as to what I might have missed out? Thanks, and best regards, Normann

Reply by email

Brad Campbell
to Martin Friebe
Martin Friebe wrote 15 lines
Hi, I do not have myself a power-pc, nor mac. But I have several reports like the below. I know from one instance (where this happened during cross-compiling from a linux box) that the error disappeared, when inlining was disabled (The units explicitly marks a lot of procedures for inlining) First: On power-pc/Mac, does fpc always use an external assembler? Or is there a build in assembler. I know that the person cross-compiling was using an external assembler. / I do not know if the reporter below did or did not use an external assembler (but I see the "Assembling unit" in the output.)

http://mantis.freepascal.org/view.php?id=12576

I've logged a bug for this one with links to the debug information. I'm more than happy to perform tests (native or cross) if it will help.

Brad

Dolphins are so intelligent that within a few weeks they can train Americans to stand at the edge of the pool and throw them fish.

Reply by email

Brad Campbell
to dmitry boyarintsev
dmitry boyarintsev wrote
Brad, could you make a smaller test, that fails using inline for powerpc?

I'm afraid I'm already a bit out of my depth with this one. The bug has been updated however as it's not a powerpc specific bug. The i386 code generator makes the same mistake but it just happens to compile (The code that does not compile is dead code).

Disassemblies in the bug report.

Brad

Dolphins are so intelligent that within a few weeks they can train Americans to stand at the edge of the pool and throw them fish.

Reply by email