The operand of the shift operator is of type unsigned int.
"x <<= c" is exactly the same as "((int)x) << c"
It doesn't matter whether the promotion is explicit or implicit, the
semantics
are the same.
According to C99, the operand of the shift operator should be "integer
type", which include
Hi, Patrice,
I don't know about inserting call at the basic block level, but I am
quite sure inserting calls at the function level could be done by
aspect-oriented-programming (AOP).
For example, we used our project, AspectC compiler (www.aspectc.net), to
weave in following aspect into gcc,
- Original Message -
From: "Frank Ch. Eigler" <[EMAIL PROTECTED]>
To: "Michael Gong" <[EMAIL PROTECTED]>
Cc: "GERIN Patrice" <[EMAIL PROTECTED]>; "Jan Hubicka"
<[EMAIL PROTECTED]>;
Sent: Saturday, February 1
Hi,
We are pleased to announce the release of AspeCt-oriented C (ACC) V
0.5, formerly known as AspectC.
Besides some new features, the ACC 0.5 release also includes a set of
experimental weave adapters that
help integrate aspeCts in the build process of large C-based software
projects.
For m
Hi,
I am wondering why following program is compiled successfully by gcc ?
Please notice there is a ";" after the function definition.
Is there a gcc extension for it ?
/* foo.c */
int main() {
printf("hello world\n");
} ;
Thanks.
Michael
Yes. Gcc gives a warning under -pedantic.
gcc -pedantic foo.c
foo.c:3: warning: ISO C does not allow extra `;' outside of a function
It looks like an old C syntax.
Regards,
Michael
- Original Message -
From: "Andrew Pinski" <[EMAIL PROTECTED]>
To: &
One explanation could be:
- Original Message -
From: "Jan Beulich" <[EMAIL PROTECTED]>
To:
Sent: Monday, September 25, 2006 11:23 AM
Subject: preprocessing question
Can anyone set me strait on why, in the following code fragment
int x(unsigned);
struct alt_x {
unsigned val;
};
#d
Yes. You are right.
- Original Message -
From: "Andreas Schwab" <[EMAIL PROTECTED]>
To: "Michael Gong" <[EMAIL PROTECTED]>
Cc: "Jan Beulich" <[EMAIL PROTECTED]>;
Sent: Monday, September 25, 2006 12:08 PM
Subject: Re: preprocessing quest
Hi,
We are pleased to announce the release of AspeCt-oriented C (ACC) V 0.6.
The ACC 0.6 release includes some experimental features and a new script
"tacc" for automatically integrating aspect-compilation in building
large C-based software projects.
For more details and download, please vis