This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/21982] GCC should combine adjacent stdio calls


------- Additional Comments From dnovillo at gcc dot gnu dot org  2005-06-09 14:37 -------
(In reply to comment #1)
> If side effects appear in the arguments, that also would be a problem, e.g.:
> 
> printf("%d", i++);
> printf("%d", i++);
> 
> should not be turned into:
> 
> printf("%d%d", i++, i++);
> 
There should be little danger of this.  Side-effects are explicitly exposed in
GIMPLE.  As long as the printf() calls are adjacent, we should be able to
combine them.

Diego.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21982


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]