public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/31362]  New: gcc should not inline functions with 'section' attribute
@ 2007-03-26 14:07 thutt at vmware dot com
  2007-03-26 14:08 ` [Bug c/31362] " thutt at vmware dot com
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: thutt at vmware dot com @ 2007-03-26 14:07 UTC (permalink / raw)
  To: gcc-bugs

gcc should never inline functions which have a 'section' attribute set
on them.

If the section is placed at a specific location in memory via a linker
script, then the function will not be placed into its correct address,
and the resultant executable is incorrect.

gcc 4.1.1 will inline static function at -O1 and -O2, but not -O0 and
-O3; this can be seen by compiling the attached test program at
various optimization levels.

    static int __attribute__((section(".special_section"))) 
    special_function_0(void)
    {
       return 0;
    }

    int __attribute__((section(".special_section"))) 
    special_function_1(void)
    {
       return 0;
    }

    int main(void)
    {
       special_function_0();
       special_function_1();
       return 0;
    }


-- 
           Summary: gcc should not inline functions with 'section' attribute
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: thutt at vmware dot com


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


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug c/31362] gcc should not inline functions with 'section' attribute
  2007-03-26 14:07 [Bug c/31362] New: gcc should not inline functions with 'section' attribute thutt at vmware dot com
@ 2007-03-26 14:08 ` thutt at vmware dot com
  2007-03-26 14:09 ` thutt at vmware dot com
                   ` (17 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: thutt at vmware dot com @ 2007-03-26 14:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from thutt at vmware dot com  2007-03-26 15:08 -------
Created an attachment (id=13288)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13288&action=view)
Simple Script which will build the original C source

Simple Script which will build the original C source


-- 


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


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug c/31362] gcc should not inline functions with 'section' attribute
  2007-03-26 14:07 [Bug c/31362] New: gcc should not inline functions with 'section' attribute thutt at vmware dot com
  2007-03-26 14:08 ` [Bug c/31362] " thutt at vmware dot com
@ 2007-03-26 14:09 ` thutt at vmware dot com
  2007-03-26 14:09 ` thutt at vmware dot com
                   ` (16 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: thutt at vmware dot com @ 2007-03-26 14:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from thutt at vmware dot com  2007-03-26 15:09 -------
Created an attachment (id=13290)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13290&action=view)
preprocessed source


-- 


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


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug c/31362] gcc should not inline functions with 'section' attribute
  2007-03-26 14:07 [Bug c/31362] New: gcc should not inline functions with 'section' attribute thutt at vmware dot com
  2007-03-26 14:08 ` [Bug c/31362] " thutt at vmware dot com
  2007-03-26 14:09 ` thutt at vmware dot com
@ 2007-03-26 14:09 ` thutt at vmware dot com
  2007-03-26 14:11 ` rguenth at gcc dot gnu dot org
                   ` (15 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: thutt at vmware dot com @ 2007-03-26 14:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from thutt at vmware dot com  2007-03-26 15:09 -------
Created an attachment (id=13289)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13289&action=view)
original source


-- 


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


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug c/31362] gcc should not inline functions with 'section' attribute
  2007-03-26 14:07 [Bug c/31362] New: gcc should not inline functions with 'section' attribute thutt at vmware dot com
                   ` (2 preceding siblings ...)
  2007-03-26 14:09 ` thutt at vmware dot com
@ 2007-03-26 14:11 ` rguenth at gcc dot gnu dot org
  2007-03-26 14:41 ` thutt at vmware dot com
                   ` (14 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-03-26 14:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2007-03-26 15:11 -------
If it is incorrect to inline a function you should specify that with
__attribute__((noinline)), I don't see why in general inlining a function which
out of line copy is in a special section is wrong.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug c/31362] gcc should not inline functions with 'section' attribute
  2007-03-26 14:07 [Bug c/31362] New: gcc should not inline functions with 'section' attribute thutt at vmware dot com
                   ` (3 preceding siblings ...)
  2007-03-26 14:11 ` rguenth at gcc dot gnu dot org
@ 2007-03-26 14:41 ` thutt at vmware dot com
  2007-03-26 14:47 ` rguenth at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: thutt at vmware dot com @ 2007-03-26 14:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from thutt at vmware dot com  2007-03-26 15:40 -------
I'm going to argue that comment #4 is incorrect.

1.  This new behavior is a regression from previous versions of gcc.

2.  The 4.1.1 compiler gets it right at -O0 and -O3.  Previous
    versions of gcc which we've been using also get this right at all
    optimization levels.

3.  The function is 'static', not '__attribute__((inline))'.  The use
    of static doesn't implicitly give the optimizer permission to
    inline the function, it only declares the linkage to be
    'internal'.

    However, if the compiler determines that the function meets
    certain criteria, such as being static and not having its address
    taken, then it *can* inline it.

    These 'certain criteria' should be expanded to include changing
    the section of a function; if it's not in the default text
    section, it shouldn't be inlined.  (Of course, this shouldn't
    impact gcc's internal garbage collection mechanism of changing
    function & data sections).

In the actual implementation from which this test case was derived,
the function *must* reside at a specific location in memory, but due
to the inlining, it does not.  This causes failures in the
application.


-- 

thutt at vmware dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


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


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug c/31362] gcc should not inline functions with 'section' attribute
  2007-03-26 14:07 [Bug c/31362] New: gcc should not inline functions with 'section' attribute thutt at vmware dot com
                   ` (4 preceding siblings ...)
  2007-03-26 14:41 ` thutt at vmware dot com
@ 2007-03-26 14:47 ` rguenth at gcc dot gnu dot org
  2007-03-26 14:51 ` rguenth at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-03-26 14:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rguenth at gcc dot gnu dot org  2007-03-26 15:47 -------
<qoute>
In the actual implementation from which this test case was derived,
the function *must* reside at a specific location in memory, but due
to the inlining, it does not.  This causes failures in the
application.
</quote>

You should tell the compiler this.  This is exactly what we have the
noinline and the always_inline (for the opposite case) attributes for.

Note that 'inline' is a mere hint to the compiler, the compiler is free
to inline functions not marked as such if it is possible and looks profitable.
You could for example put a function in section .text.hot but of course still
want inlining if possible.

The behavior is not a regression really, as it is not documented that
the section attribute prevents inlining.  Overloading the section attribute
with this additional restriction does not look right.


-- 


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


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug c/31362] gcc should not inline functions with 'section' attribute
  2007-03-26 14:07 [Bug c/31362] New: gcc should not inline functions with 'section' attribute thutt at vmware dot com
                   ` (5 preceding siblings ...)
  2007-03-26 14:47 ` rguenth at gcc dot gnu dot org
@ 2007-03-26 14:51 ` rguenth at gcc dot gnu dot org
  2007-03-26 14:58 ` thutt at vmware dot com
                   ` (11 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-03-26 14:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from rguenth at gcc dot gnu dot org  2007-03-26 15:51 -------
Note that for your testcase even if you specify the noinline attribute the
function calls will be optimized away as the function calls do not have
side-effects.


-- 


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


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug c/31362] gcc should not inline functions with 'section' attribute
  2007-03-26 14:07 [Bug c/31362] New: gcc should not inline functions with 'section' attribute thutt at vmware dot com
                   ` (6 preceding siblings ...)
  2007-03-26 14:51 ` rguenth at gcc dot gnu dot org
@ 2007-03-26 14:58 ` thutt at vmware dot com
  2007-03-26 15:28 ` rguenth at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: thutt at vmware dot com @ 2007-03-26 14:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from thutt at vmware dot com  2007-03-26 15:57 -------
Furthermore, 

   4.  By placing the code in a different section, I'm instructing the
       the compiler to *not* put it in '.text'.  By inlining it, it
       places it in '.text' despite my instructions.


-- 


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


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug c/31362] gcc should not inline functions with 'section' attribute
  2007-03-26 14:07 [Bug c/31362] New: gcc should not inline functions with 'section' attribute thutt at vmware dot com
                   ` (7 preceding siblings ...)
  2007-03-26 14:58 ` thutt at vmware dot com
@ 2007-03-26 15:28 ` rguenth at gcc dot gnu dot org
  2007-03-26 15:58 ` pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-03-26 15:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from rguenth at gcc dot gnu dot org  2007-03-26 16:28 -------
We inline static functions used once (special_function_0 in your testcase)
starting with the tree inliner which appeared in 3.4.0.  So the "bug" is
present
in all releases starting from 3.4.0 and still present in mainline.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |3.4.0 4.3.0
      Known to work|                            |3.3.6


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


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug c/31362] gcc should not inline functions with 'section' attribute
  2007-03-26 14:07 [Bug c/31362] New: gcc should not inline functions with 'section' attribute thutt at vmware dot com
                   ` (8 preceding siblings ...)
  2007-03-26 15:28 ` rguenth at gcc dot gnu dot org
@ 2007-03-26 15:58 ` pinskia at gcc dot gnu dot org
  2007-03-26 16:02 ` rguenth at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-03-26 15:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from pinskia at gcc dot gnu dot org  2007-03-26 16:58 -------
And now there is already an option to stop this inlining static functions
called once.
http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-finline_002dfunctions_002dcalled_002donce-507


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug c/31362] gcc should not inline functions with 'section' attribute
  2007-03-26 14:07 [Bug c/31362] New: gcc should not inline functions with 'section' attribute thutt at vmware dot com
                   ` (9 preceding siblings ...)
  2007-03-26 15:58 ` pinskia at gcc dot gnu dot org
@ 2007-03-26 16:02 ` rguenth at gcc dot gnu dot org
  2007-03-26 16:46 ` thutt at vmware dot com
                   ` (7 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-03-26 16:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from rguenth at gcc dot gnu dot org  2007-03-26 17:02 -------
4.1.2 also inlines the other one, so that won't help.  Still noinline will.


-- 


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


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug c/31362] gcc should not inline functions with 'section' attribute
  2007-03-26 14:07 [Bug c/31362] New: gcc should not inline functions with 'section' attribute thutt at vmware dot com
                   ` (10 preceding siblings ...)
  2007-03-26 16:02 ` rguenth at gcc dot gnu dot org
@ 2007-03-26 16:46 ` thutt at vmware dot com
  2007-03-26 17:11 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: thutt at vmware dot com @ 2007-03-26 16:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from thutt at vmware dot com  2007-03-26 17:46 -------
I respectfully submit that I think you guys are missing the point.

    The problem isn't that the compiler is inlining functions which
    are called once, the problem is that the compiler is inlining a
    function which I told it not to put into the '.text' section.

I fully understand that there are many ways to make gcc *not* inline
the function (noinline attribute, not static, call more than once,
take it's address), and I've already done that.

If I tell gcc to place code or data into another section, then it
should do that -- always.


-- 


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


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug c/31362] gcc should not inline functions with 'section' attribute
  2007-03-26 14:07 [Bug c/31362] New: gcc should not inline functions with 'section' attribute thutt at vmware dot com
                   ` (11 preceding siblings ...)
  2007-03-26 16:46 ` thutt at vmware dot com
@ 2007-03-26 17:11 ` pinskia at gcc dot gnu dot org
  2007-03-26 17:55 ` thutt at vmware dot com
                   ` (5 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-03-26 17:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from pinskia at gcc dot gnu dot org  2007-03-26 18:10 -------
Why do you think sections are special?
GCC does not know if a section is special or not and it really should not know.


-- 


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


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug c/31362] gcc should not inline functions with 'section' attribute
  2007-03-26 14:07 [Bug c/31362] New: gcc should not inline functions with 'section' attribute thutt at vmware dot com
                   ` (12 preceding siblings ...)
  2007-03-26 17:11 ` pinskia at gcc dot gnu dot org
@ 2007-03-26 17:55 ` thutt at vmware dot com
  2007-03-26 19:22 ` eweddington at cso dot atmel dot com
                   ` (4 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: thutt at vmware dot com @ 2007-03-26 17:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from thutt at vmware dot com  2007-03-26 18:54 -------
> Why do you think sections are special?
> GCC does not know if a section is special or not and it really should not know.

I don't necessarily think that sections are 'special', but since gcc
has the capability to change the section, it seems like it ought to
follow instructions.

If that's not convincing enough, let me quote from the gcc 'info' page
about function attributes:

     `section ("SECTION-NAME")'

          Normally, the compiler places the code it generates in the
          `text' section.  Sometimes, however, you need additional
          sections, or you need certain particular functions to appear
          in special sections.  The `section' attribute specifies that
          a function lives in a particular section.  For example, the
          declaration:

               extern void foobar (void) __attribute__ ((section ("bar")));

          puts the function `foobar' in the `bar' section.

          Some file formats do not support arbitrary sections so the
          `section' attribute is not available on all platforms.  If
          you need to map the entire contents of a module to a
          particular section, consider using the facilities of the
          linker instead.

I don't think that I can be more clear than this text -- placing an
__attribute__(section ("bar")) will place the attributed function into
the 'bar' section.

By inlining the function, it's *not* placing it into the 'bar'
section.

There are many reasons why a function might need to be placed into a
special section but those reasons are really moot since the
documentation of the compiler states exactly what the section attribute
is supposed to do.


-- 


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


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug c/31362] gcc should not inline functions with 'section' attribute
  2007-03-26 14:07 [Bug c/31362] New: gcc should not inline functions with 'section' attribute thutt at vmware dot com
                   ` (13 preceding siblings ...)
  2007-03-26 17:55 ` thutt at vmware dot com
@ 2007-03-26 19:22 ` eweddington at cso dot atmel dot com
  2007-03-26 20:21 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: eweddington at cso dot atmel dot com @ 2007-03-26 19:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #15 from eweddington at cso dot atmel dot com  2007-03-26 20:22 -------
FWIW, I agree with the OP. This will place a burden on users who work with
embedded systems such as the AVR. Special sections are sometimes needed in the
AVR to place code into a special bootloader area that gets relocated at link
time to a user defined address. Many times there is only a single function call
to the bootloader code. As the problem is described, there is a potential that
the bootloader call would be inlined, hence no longer properly in the section
that has to be relocated to a special address. Now the burden will be left to
the end user to figure out that they need to add noinline to work around a too
aggressive, and too stupid inliner.


-- 

eweddington at cso dot atmel dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eweddington at cso dot atmel
                   |                            |dot com


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


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug c/31362] gcc should not inline functions with 'section' attribute
  2007-03-26 14:07 [Bug c/31362] New: gcc should not inline functions with 'section' attribute thutt at vmware dot com
                   ` (14 preceding siblings ...)
  2007-03-26 19:22 ` eweddington at cso dot atmel dot com
@ 2007-03-26 20:21 ` pinskia at gcc dot gnu dot org
  2007-03-27 12:49 ` thutt at vmware dot com
                   ` (2 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-03-26 20:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #16 from pinskia at gcc dot gnu dot org  2007-03-26 21:21 -------
You supposed to mark all functions which you don't want inlined as noinline. 
that is what the noinline attribute is there for.  The inliner is just too
smart that is all.  If you want a dumber inliner fine, but don't complain to us
when the inliner is not as good any more.


-- 


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


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug c/31362] gcc should not inline functions with 'section' attribute
  2007-03-26 14:07 [Bug c/31362] New: gcc should not inline functions with 'section' attribute thutt at vmware dot com
                   ` (15 preceding siblings ...)
  2007-03-26 20:21 ` pinskia at gcc dot gnu dot org
@ 2007-03-27 12:49 ` thutt at vmware dot com
  2007-03-27 13:22 ` rguenth at gcc dot gnu dot org
  2007-03-27 13:44 ` thutt at vmware dot com
  18 siblings, 0 replies; 20+ messages in thread
From: thutt at vmware dot com @ 2007-03-27 12:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #17 from thutt at vmware dot com  2007-03-27 13:49 -------
In response to comment #16:

I wouldn't call an inliner which inlines functions specifically marked as "do
not put this in '.text'" as 'smart'.  I'd use a more pejorative adjective, such
as 'broken' or 'dumb'.


-- 


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


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug c/31362] gcc should not inline functions with 'section' attribute
  2007-03-26 14:07 [Bug c/31362] New: gcc should not inline functions with 'section' attribute thutt at vmware dot com
                   ` (16 preceding siblings ...)
  2007-03-27 12:49 ` thutt at vmware dot com
@ 2007-03-27 13:22 ` rguenth at gcc dot gnu dot org
  2007-03-27 13:44 ` thutt at vmware dot com
  18 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-03-27 13:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #18 from rguenth at gcc dot gnu dot org  2007-03-27 14:22 -------
Well, you can continue to waste your time arguing here instead of fixing your
code
with a few additions of noinline.

         'The `section' attribute specifies that
          a function lives in a particular section.'

this just says that the function (the out-of-line copy) lives in a particular
section.  It doesn't mention inlined copies of the function _body_.


-- 


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


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug c/31362] gcc should not inline functions with 'section' attribute
  2007-03-26 14:07 [Bug c/31362] New: gcc should not inline functions with 'section' attribute thutt at vmware dot com
                   ` (17 preceding siblings ...)
  2007-03-27 13:22 ` rguenth at gcc dot gnu dot org
@ 2007-03-27 13:44 ` thutt at vmware dot com
  18 siblings, 0 replies; 20+ messages in thread
From: thutt at vmware dot com @ 2007-03-27 13:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #19 from thutt at vmware dot com  2007-03-27 14:44 -------

I guess I need a bigger typeface because I don't see where it says
'(the out-of-line copy)'.

Or, perhaps, you've simply added that '(the out-of-line copy)'
annotation yourself because that's what the code currently does, and
because it suits your agenda.  I guess you also felt free to interpret
that it's ok to inline such functions, even though it doesn't say any
such thing, and even though it goes against exactly what the 'section'
attribute intends to do.

But, as you stated, it's a waste of my time, and you folks obviously
aren't going to treat this as a legitmate defect, so there's no point
in continuing this.


-- 


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


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2007-03-27 13:44 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-26 14:07 [Bug c/31362] New: gcc should not inline functions with 'section' attribute thutt at vmware dot com
2007-03-26 14:08 ` [Bug c/31362] " thutt at vmware dot com
2007-03-26 14:09 ` thutt at vmware dot com
2007-03-26 14:09 ` thutt at vmware dot com
2007-03-26 14:11 ` rguenth at gcc dot gnu dot org
2007-03-26 14:41 ` thutt at vmware dot com
2007-03-26 14:47 ` rguenth at gcc dot gnu dot org
2007-03-26 14:51 ` rguenth at gcc dot gnu dot org
2007-03-26 14:58 ` thutt at vmware dot com
2007-03-26 15:28 ` rguenth at gcc dot gnu dot org
2007-03-26 15:58 ` pinskia at gcc dot gnu dot org
2007-03-26 16:02 ` rguenth at gcc dot gnu dot org
2007-03-26 16:46 ` thutt at vmware dot com
2007-03-26 17:11 ` pinskia at gcc dot gnu dot org
2007-03-26 17:55 ` thutt at vmware dot com
2007-03-26 19:22 ` eweddington at cso dot atmel dot com
2007-03-26 20:21 ` pinskia at gcc dot gnu dot org
2007-03-27 12:49 ` thutt at vmware dot com
2007-03-27 13:22 ` rguenth at gcc dot gnu dot org
2007-03-27 13:44 ` thutt at vmware dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).