[PATCH 1/2] Fix minor glitches with basic asm

Bernd Edlinger bernd.edlinger@hotmail.de
Sun Dec 6 08:50:00 GMT 2015


Hi,

while looking at the handling of basic asm statements
I noticed two minor glitches, which I want to fix now.

First there is a missing check in compare_gimple_asm in ipa-icf-gimple.c

Here we check if two asm statements are exactly identical,
there is a possibility that one is a basic asm and the other is an
extended asm with zero operands. Even if both have the same string
the string means something slightly different, if % or { } are around.

example:

asm("%"); // OK
asm("%":); // error: invalid 'asm': invalid %-code


Boot-strapped and reg-tested on x86_64-pc-linux-gnu,
OK for trunk?


Thanks
Bernd.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-ipa-icf.diff
Type: text/x-patch
Size: 635 bytes
Desc: patch-ipa-icf.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20151206/ed846061/attachment.bin>


More information about the Gcc-patches mailing list