public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/40207] request for enhancement: delay argument loading until needed
       [not found] <bug-40207-4@http.gcc.gnu.org/bugzilla/>
@ 2021-08-08 20:08 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-08 20:08 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40207

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED
         Depends on|                            |59299

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed in GCC 5+ by r5-1146.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59299
[Bug 59299] We do not sink loads

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

* [Bug middle-end/40207] request for enhancement: delay argument loading until needed
  2009-05-20 15:15 [Bug c/40207] New: " jbaron at redhat dot com
  2009-05-20 15:21 ` [Bug middle-end/40207] " pinskia at gcc dot gnu dot org
@ 2009-05-20 16:56 ` fche at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fche at redhat dot com @ 2009-05-20 16:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from fche at redhat dot com  2009-05-20 16:56 -------
(In reply to comment #1)
> The define and the static inline functions are not equivalent at all.

Right, in general, but if the expressions are side-effect-free,
gcc could move their evaluation farther down.


-- 

fche at redhat dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fche at redhat dot com


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


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

* [Bug middle-end/40207] request for enhancement: delay argument loading until needed
  2009-05-20 15:15 [Bug c/40207] New: " jbaron at redhat dot com
@ 2009-05-20 15:21 ` pinskia at gcc dot gnu dot org
  2009-05-20 16:56 ` fche at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-05-20 15:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2009-05-20 15:21 -------
The define and the static inline functions are not equivalent at all.
#define evaluate(val) \
do { \
      typeof(val) tmpval = val; \
        if (unlikely(enabled)) { \
                printf("value is: %d\n", tmpval); \
        } \
} while (0)

makes the define equivalent to the static inline funciton.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
          Component|c                           |middle-end


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


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

end of thread, other threads:[~2021-08-08 20:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-40207-4@http.gcc.gnu.org/bugzilla/>
2021-08-08 20:08 ` [Bug middle-end/40207] request for enhancement: delay argument loading until needed pinskia at gcc dot gnu.org
2009-05-20 15:15 [Bug c/40207] New: " jbaron at redhat dot com
2009-05-20 15:21 ` [Bug middle-end/40207] " pinskia at gcc dot gnu dot org
2009-05-20 16:56 ` fche at redhat 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).