<< Back to previous view

[PCC-164] libs/wine/ldt.c failed to compile with pcc Created: 28/Jun/10  Updated: 04/May/14

Status: Closed
Project: pcc
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Detlef Riekenberg Assignee: Anders Magnusson
Resolution: Won't Fix Votes: 0
Environment: ubuntu 10.04 / i386

File Attachments: File ldt_pcc-E.c    

 Description   
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


 Comments   
Comment by Anders Magnusson [ 12/Aug/10 08:18 AM ]
Hi,

can you please recheck this file with the latest sources? I cannot reproduce it.
Comment by Anders Magnusson [ 12/Aug/10 08:19 AM ]
Hm, I missed the pic flag, I have reproduced it now.
Comment by Anders Magnusson [ 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.
Comment by Detlef Riekenberg [ 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
Comment by Anders Magnusson [ 04/May/14 03:15 PM ]
Looking deeper into this, it expects gcc internal behaviour. Pcc is following the standard. So no plans to currently change pcc.
Generated at Fri Aug 29 18:06:04 CEST 2014 using JIRA Enterprise Edition, Version: 3.13.1-#333.