Go patch committed: Avoid some compiler crashes
Ian Lance Taylor
iant@google.com
Sat Jan 21 22:51:00 GMT 2012
This patch to the Go frontend avoids some compiler crashes on erroneous
code. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu.
Committed to mainline.
Ian
2012-01-21 Ian Lance Taylor <iant@google.com>
* go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
(Gcc_backend::type_alignment): Likewise.
(Gcc_backend::type_field_alignment): Likewise.
(Gcc_backend::type_field_offset): Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 2013 bytes
Desc: patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120121/d3ac081b/attachment.bin>
More information about the Gcc-patches
mailing list