Issue Details (XML | Word | Printable)

Key: PCC-122
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Anders Magnusson
Reporter: Detlef Riekenberg
Votes: 0
Watchers: 0
Operations

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

pcc failed to compile any binary (GCC_COMPAT mode enabled)

Created: 30/Mar/10 05:28 PM   Updated: 12/Jun/10 09:39 PM
Component/s: C frontend
Affects Version/s: None
Fix Version/s: None

Environment: ubuntu 8.04 / i386


 Description  « Hide
autoconf failed to build a binary with pcc (GCC_COMPAT mode enabled):
/usr/include//stdio.h, line 426: syntax error

extern int __REDIRECT (sscanf, (__const char *__restrict __s,
__const char *__restrict __format, ...),
__isoc99_sscanf) __THROW;


--
by by ... Detlef


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Detlef Riekenberg added a comment - 30/Mar/10 05:33 PM
Bug 104 is still not fixed:
$ pcc redirect.c -o redirect_pcc
-> undefined reference to `main'

pcc use the __asm__ part and creates a function declaration for the following code (main)


The assembler code produced from redirect.c (attached to bug# 104)
(http://pcc.ludd.ltu.se/jira/secure/attachment/10085/redirect.c)
is attached in bug #104 as ctm_asm.M1JEsK
(http://pcc.ludd.ltu.se/jira/secure/attachment/10087/ctm_asm.M1JEsK).

--
By by ... Detlef

Detlef Riekenberg added a comment - 12/Jun/10 04:38 PM
This is still an issue, which forbid to use pcc on linux
(As Example for Wine-1.2rc3)

--
By by ... Detlef
 

Anders Magnusson added a comment - 12/Jun/10 06:36 PM
Hm, pragma rename directives are obviously handled wrong for declarations.

Anders Magnusson added a comment - 12/Jun/10 09:39 PM
Fixed now by adding support for renaming of redeclared declarations.