Issue Details (XML | Word | Printable)

Key: PCC-173
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Anders Magnusson
Reporter: Iain Hibbert
Votes: 0
Watchers: 0
Operations

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

different i386-specific features use the same SLOCAL flag bit

Created: 15/Oct/10 10:49 AM   Updated: 01/May/14 05:54 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

File Attachments: 1. File slocal.diff (0.5 kB)

Environment: pcc/i386


 Description  « Hide
Hi,
   in arch/i386/macdefs.h the following appears

/*
 * i386-specific symbol table flags.
 */
#define SSECTION SLOCAL1
#define STLS SLOCAL2
#define SSTDCALL SLOCAL2
#define SDLLINDIRECT SLOCAL3

which means that STLS and SSTDCALL can be confused in the codebase as both use SLOCAL2.

Since there are only 3 flags allocated for arch-specific features, and SSECTION is not actually used, the attached patch fixes this by removing SSECTION and using SLOCAL1 for STLS.


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson added a comment - 16/Oct/10 03:41 PM
stdcall do not work on i386, some other changes are needed to be happy with it.
Besides that, STLS and SSTDCALL are used on different symbols; tls on variables and stdcall on functions, so there should not be any ambiguity.

Anders Magnusson added a comment - 01/May/14 05:54 PM
The specific thing in the ticket is not a problem.