On Fri, Nov 19, 2021 at 7:35 AM Gary Oblock via Gcc <gcc@gcc.gnu.org> wrote:
>
> Our test group added "-fchecking" to a script and my optimization
> failed.
>
> I can't find any explanation of this type of bug. I grepped the code
> and flag_checking was all over the place so it's not like
> I can use gdb to pin it down.
>
> Can somebody help me make sense out of this?
>
> lto1: error: type variant differs by TYPE_UNSIGNED
>  <integer_type 0x7f39933411f8 public unsigned DI

looks like you built a new type variant but changed TYPE_UNSIGNED on it?

-fchecking enables extra IL checking and is default enabled when you configure
with --enable-checking=yes but still conditionally enabled with
--enable-checking=release
by using -fchecking.

Richard.

>     size <integer_cst 0x7f3993325bb8 type <integer_type 0x7f399333a0a8 
> bitsizetype> constant 64>
>     unit-size <integer_cst 0x7f3993325bd0 type <integer_type 0x7f399333a000 
> sizetype> constant 8>
>     align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 
> 0x7f399333a738 precision:64 min <integer_cst 0x7f3993325fd8 0> max 
> <integer_cst 0x7f3993326580 18446744073709551615>
>     pointer_to_this <pointer_type 0x7f3992961690>>
>  <integer_type 0x7f3992d1a3f0 _reorg_SP_ptr_type_node public DI
>     size <integer_cst 0x7f3993325bb8 type <integer_type 0x7f399333a0a8 
> bitsizetype> constant 64>
>     unit-size <integer_cst 0x7f3993325bd0 type <integer_type 0x7f399333a000 
> sizetype> constant 8>
>     align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 
> 0x7f3992d1a3f0 precision:64 min <integer_cst 0x7f3992d26510 
> -9223372036854775808> max <integer_cst 0x7f3992d57090 9223372036854775807>
>     pointer_to_this <pointer_type 0x7f3992d1aa80>>
> (null):0: confused by earlier errors, bailing out
> lto-wrapper: fatal error: /home/gary/gcc_build_gcc11_v4/install/bin/gcc 
> returned 1 exit status
> compilation terminated.
> [Leaving LTRANS ./exe.lto.o]
> /usr/bin/ld: error: lto-wrapper failed
> [Leaving exe.lto_wrapper_args]
> collect2: error: ld returned 1 exit status
>
> Thanks,
>
> Gary
>
>
> CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is 
> for the sole use of the intended recipient(s) and contains information that 
> is confidential and proprietary to Ampere Computing or its subsidiaries. It 
> is to be used solely for the purpose of furthering the parties' business 
> relationship. Any unauthorized review, copying, or distribution of this email 
> (or any attachments thereto) is strictly prohibited. If you are not the 
> intended recipient, please contact the sender immediately and permanently 
> delete the original and any copies of this email and any attachments thereto.

Reply via email to