|
Quick Lists
|
|
Bug ID:
|
6567389
|
|
Votes
|
0
|
|
Synopsis
|
Sun Studio 12 acomp doesn't accept __volatile keyword while gcc does
|
|
Category
|
c:compiler
|
|
Reported Against
|
|
|
Release Fixed
|
ceres(build_01)
|
|
State
|
11-Closed,
Verified,
bug
|
|
Priority:
|
5-Very Low
|
|
Related Bugs
|
|
|
Submit Date
|
08-JUN-2007
|
|
Description
|
** misplaced entry deleted
Posted Date : 2007-06-08 05:47:48.0
** misplaced entry deleted
Posted Date : 2007-06-08 05:48:10.0
Some open source software use __volatile keyword in GNU inline assembler, resulting in
a syntax error in SS12 acomp.
$ cat volatile.c
void dummy(void)
{
__asm__ __volatile ("": : :"memory");
}
$ suncc -m64 -c volatile.c
"volatile.c", line 3: syntax error before or at: __volatile
Posted Date : 2007-06-08 04:30:30.0
|
|
Work Around
|
__volatile__ keyword can be used instead of __volatile if the source code is permitted
to be changed.
Just use -D__volatile=__volatile__ w/o changing any sources
|
|
Evaluation
|
Support for __volatile keyword was added to acomp.
Posted Date : 2007-07-31 15:54:30.0
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |