-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Anthony, H.J. Lu,
Thanks, it was indeed a memory corruption. Not DIMM, but simply an
effect of the patch I made. The origin of the problem is not very
clear though:
- --- a/gcc-snapshot/lto-plugin/lto-plugin.c 2015-10-02
01:59:07.000000000 +0400
+++ b/gcc-snapshot/lto-plugin/lto-plugin.c 2015-10-02
02:09:17.000000000 +0400
@@ -591,7 +591,7 @@
all_symbols_read_handler (void)
{
unsigned i;
- - unsigned num_lto_args = num_claimed_files + lto_wrapper_num_args + 1;
+ unsigned num_lto_args = num_claimed_files + 2;
char **lto_argv;
const char **lto_arg_ptr;
if (num_claimed_files == 0)
@@ -611,8 +611,8 @@
free_1 ();
- - for (i = 0; i < lto_wrapper_num_args; i++)
- - *lto_arg_ptr++ = lto_wrapper_argv[i];
+ if (lto_wrapper_num_args > 0)
+ *lto_arg_ptr++ = lto_wrapper_argv[0];
for (i = 0; i < num_claimed_files; i++)
{
GCC compiled with this change is used to recompile GCC itself. LTO is
not used, so I did not expect any problem. However, GCC built with
this change randomly segfaults or corrupts the output assembly files.
- - D.
On 07/04/2013 06:31 AM, Anthony Foiani wrote:
> Dmitry Mikushin <[email protected]> writes:
>
>> Error: no such instruction: `eovq -32(%rbp),%rdx'
>
> That's only a one-bit error away from "movq ..."
>
> ('m' = 0x6d = 0b 0110 1101, 'e' = 0x65 = 0b 0110 0101)
>
> Maybe run memory tester overnight?
>
> (This is from personal experience -- I had a bad stick of RAM that
> caused all sorts of bizarre compile problems. I eventually
> isolated the problem and replaced the DIMM; the compile problems
> went away.)
>
> Good luck!
>
> Best regards, Anthony Foiani
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/
iQEcBAEBAgAGBQJR4WXeAAoJENwm3+sbf/pMdb8H/2jpjaR3CtNb2vC2RB2oMM8p
f3QeNdCCrmWqOMto/OnF8idt84NaAupYaQYiI1L9mGIg7RLjewG0fjCAET/kPUVj
33yZACXFxPFY2i3Uha8ThUf/N0RGCDrysNarioobGcZ8ROmGemhsVHemgBFn4DkB
khZmDO395GpdjZaN0UhBtzIOk+O+aT4ltiQdabrH7VP41C1O04KMtRcSTSQHU41d
t+4znSP9rqqOQwITJOM7zajSmApsdLXo2WpC7MDMcRTR5aLKcS8Ya8MdVPLf/j4k
ee1n/p8sXs3puzYKmYsWyayGqLe6AuVLEiqbN7/njlwfp0khnXgWXT+WhHbGqYw=
=5izP
-----END PGP SIGNATURE-----