[PATCH 2/3] arm: Remove optpld macro

Corinna Vinschen vinschen@redhat.com
Thu Jan 12 14:56:00 GMT 2017


On Jan 11 23:50, Pat Pannuto wrote:
> LTO can re-order top-level assembly blocks, which can cause this
> macro definition to appear after its use (or not at all), causing
> compilation failures. As the macro has very few uses, simply removing
> it by inlining is a simple fix.

Am I the only one thinking this is a compiler bug, rather than correct
behaviour?

The macro definition is not an assembly block as such, but rather just
that: a macro definition which is supposed to be evaluated at compile
(or assemble) time.  To reorder it on the source level seems completely
out of the scope of LTO.

Am I missing something or should this be fixed in GCC?


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20170112/75387e2b/attachment.sig>


More information about the Newlib mailing list