Issue Details (XML | Word | Printable)

Key: PCC-164
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Detlef Riekenberg
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
pcc

libs/wine/ldt.c failed to compile with pcc

Created: 28/Jun/10 08:57 PM   Updated: 22/Feb/11 09:07 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

File Attachments: 1. File ldt_pcc-E.c (380 kB)

Environment:
ubuntu 10.04 / i386


 Description  « Hide
source:
http://source.winehq.org/git/wine.git?a=blob_plain;f=libs/wine/ldt.c;hb=db68b1e60228a562f6df723adf682bd216457c0c

preprocessed version is attached:
~/.wine/bin_pcc/libs/wine$ pcc -D__USER_LABEL_PREFIX__="" -D__WINESRC__ -DWINE_UNICODE_API="" -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wtype-limits -Wwrite-strings -Wpointer-arith -g -O2 -c ldt_pcc-E.c -o ldt_pcc-E.o
/tmp/ctm.zrBeIa: Assembler messages:
/tmp/ctm.zrBeIa:3604: Error: symbol `wine_get_fs' is already defined
/tmp/ctm.zrBeIa:3637: Error: symbol `wine_set_fs' is already defined



The original source and the preprocessed version can be compiled with gcc

--
By by ... Detlef


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson added a comment - 12/Aug/10 08:18 AM
Hi,

can you please recheck this file with the latest sources? I cannot reproduce it.

Anders Magnusson added a comment - 12/Aug/10 08:19 AM
Hm, I missed the pic flag, I have reproduced it now.

Anders Magnusson added a comment - 12/Aug/10 08:25 AM
Ok, problem is that pcc cannot inline on i386 if compiled PIC since the magic hidden argument in ebx is difficult to handle.
I'll put this on the TODO list, it's not so easy to fix.

Detlef Riekenberg added a comment - 22/Feb/11 09:07 PM
This is still an Issue with current Wine and current pcc:

/tmp/ctm.VkmvAY: Assembler messages:
/tmp/ctm.VkmvAY:5469: Error: symbol `wine_get_fs' is already defined
/tmp/ctm.VkmvAY:5502: Error: symbol `wine_set_fs' is already defined
pcc 1.1.0.DEVEL 20110221 for i686-pc-linux-gnu, xxx@yyy

--
By by ... Detlef