Bug 17614

Summary: impossible to CURSIG when compiling with optimization
Product: Base System Reporter: assar <assar>
Component: kernAssignee: Marcel Moolenaar <marcel>
Status: Closed FIXED    
Severity: Affects Only Me CC: assar
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description assar 2000-03-27 04:40:01 UTC
It's not possible to build a KLD without optimization if it uses the
CURSIG macro since this expand to a call to an `extern inline' function.

Fix: make the function `static __inline' instead of `extern __inline'
How-To-Repeat: 
write code that calls CURSIG
compile it without -O
kldload it
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 2000-03-29 11:35:16 UTC
Responsible Changed
From-To: freebsd-bugs->marcel

This looks like Marcel's stuff.  Please be patient, as Marcel 
doesn't have easy Internet access at the moment. 

Comment 2 assar 2000-03-30 11:45:11 UTC
> This looks like Marcel's stuff.  Please be patient, as Marcel 
> doesn't have easy Internet access at the moment. 

I don't really think so.  He wrote that code but this is just the same
problem that was handled in revisions 1.33 and 1.34 and could probably
be reviewed by any of the folks involved in those changes.

/assar
Comment 3 Marcel Moolenaar freebsd_committer freebsd_triage 2000-07-15 23:51:11 UTC
State Changed
From-To: open->closed

Already fixed in rev 1.37. Thanks...