comp.lang.ada
 help / color / mirror / Atom feed
* GNAT not generating any code for sub‑program: known bug?
@ 2013-04-27 21:08 Yannick Duchêne (Hibou57)
  2013-04-27 22:22 ` Yannick Duchêne (Hibou57)
  2013-04-28 22:35 ` Erroneous code generation from GNAT or GCC? Yannick Duchêne (Hibou57)
  0 siblings, 2 replies; 19+ messages in thread
From: Yannick Duchêne (Hibou57) @ 2013-04-27 21:08 UTC (permalink / raw)


Hi all,

I will make a stripped‑down version of the case, later. So far I just  
wonder if any one already encountered a similar case: GNAT not generating  
any code for a sub‑program. Here what it generates instead, according to  
the assembly file:

     .cfi_startproc
     ret
     .cfi_endproc

And that's all. I could just notice it appears as soon as any `-On` option  
is given and disappears when `-O0` is explicitly given to disallow any  
optimization.

Is this a known bug?

-- 
“Syntactic sugar causes cancer of the semi-colons.” [1]
“Structured Programming supports the law of the excluded muddle.” [1]
[1]: Epigrams on Programming — Alan J. — P. Yale University



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

end of thread, other threads:[~2013-05-01 18:19 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-27 21:08 GNAT not generating any code for sub‑program: known bug? Yannick Duchêne (Hibou57)
2013-04-27 22:22 ` Yannick Duchêne (Hibou57)
2013-04-27 23:48   ` Yannick Duchêne (Hibou57)
2013-04-28  7:14   ` Simon Wright
2013-04-28 17:52     ` Yannick Duchêne (Hibou57)
2013-04-28 19:27       ` Yannick Duchêne (Hibou57)
2013-04-28 20:46         ` Simon Wright
2013-04-28 20:43       ` Simon Wright
2013-04-28 22:35 ` Erroneous code generation from GNAT or GCC? Yannick Duchêne (Hibou57)
2013-04-28 22:49   ` Yannick Duchêne (Hibou57)
2013-04-28 23:52   ` Yannick Duchêne (Hibou57)
2013-04-29  1:35     ` Yannick Duchêne (Hibou57)
2013-04-30  0:48       ` Yannick Duchêne (Hibou57)
2013-04-30  6:40         ` Simon Wright
2013-04-30 17:04           ` Yannick Duchêne (Hibou57)
2013-04-30 19:06             ` Simon Wright
2013-04-30 21:28               ` Yannick Duchêne (Hibou57)
2013-04-30 22:22                 ` Simon Wright
2013-05-01 18:19               ` J-P. Rosen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox