[Bug c/28120] The option -f[no-]inline-functions is invalid with -O2

2006-06-23 Thread rguenth at gcc dot gnu dot org
--- Comment #7 from rguenth at gcc dot gnu dot org 2006-06-23 10:06 --- Newer gcc always inline _static_ functions that are used _once_ into their only caller (regardless of being declared inline or not). You can disable this behavior with -fno-inline-functions-called-once. All gcc inl

[Bug c/28120] The option -f[no-]inline-functions is invalid with -O2

2006-06-23 Thread tanaka at personal-media dot co dot jp
--- Comment #6 from tanaka at personal-media dot co dot jp 2006-06-23 09:52 --- Please answer my question again. It can not be distinguished between a function, which specified __inline__ and an another function, which is not specified __inline__, after gcc-3.4. This is sample. /**

[Bug c/28120] The option -f[no-]inline-functions is invalid with -O2

2006-06-21 Thread tanaka at personal-media dot co dot jp
--- Comment #5 from tanaka at personal-media dot co dot jp 2006-06-22 03:28 --- I home to confirm a conclusion. That is to say, simple function is integrated into their callers when it compiled with a option -O2, after gcc-3.4 isn't it? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?i

[Bug c/28120] The option -f[no-]inline-functions is invalid with -O2

2006-06-21 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2006-06-21 14:19 --- (In reply to comment #3) > Or -fno-inline-functions-called-once for 4.2.0 and above. For this case that is. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28120

[Bug c/28120] The option -f[no-]inline-functions is invalid with -O2

2006-06-21 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-06-21 14:19 --- Or -fno-inline-functions-called-once for 4.2.0 and above. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28120

[Bug c/28120] The option -f[no-]inline-functions is invalid with -O2

2006-06-21 Thread tanaka at personal-media dot co dot jp
--- Comment #2 from tanaka at personal-media dot co dot jp 2006-06-21 12:46 --- Thanks for your reply. Originally, my wanting to say is that When compile a C source code only with an option -O2, small function is not inlined. But it is inlined by gcc-4.1.1. Small function is not inli

[Bug c/28120] The option -f[no-]inline-functions is invalid with -O2

2006-06-21 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2006-06-21 11:57 --- -f[no-]inline is what you are looking for. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added --