bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/25121] New: tc-hppa.c:1371:23: error: implicit conversion from


From: danglin at gcc dot gnu.org
Subject: [Bug gas/25121] New: tc-hppa.c:1371:23: error: implicit conversion from 'enum el f_hppa_reloc_type' to 'bfd_reloc_code_real_type'
Date: Sun, 20 Oct 2019 18:59:36 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=25121

            Bug ID: 25121
           Summary: tc-hppa.c:1371:23: error: implicit conversion from
                    'enum el f_hppa_reloc_type' to
                    'bfd_reloc_code_real_type'
           Product: binutils
           Version: 2.34 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: danglin at gcc dot gnu.org
  Target Milestone: ---
              Host: hppa-unknown-linux-gnu
            Target: hppa-unknown-linux-gnu
             Build: hppa-unknown-linux-gnu

I see the following errors building with gcc trunk:

gcc -DHAVE_CONFIG_H -I. -I../../src/gas  -I. -I../../src/gas -I../bfd
-I../../sr
c/gas/config -I../../src/gas/../include -I../../src/gas/..
-I../../src/gas/../bf
d -DLOCALEDIR="\"/home/dave/opt/test/share/locale\""  -W -Wall
-Wstrict-prototyp
es -Wmissing-prototypes -Wshadow -Wstack-usage=262144 -Werror -Wwrite-strings
-I
../../src/gas/../zlib -g -O2 -MT config/tc-hppa.o -MD -MP -MF $depbase.Tpo -c
-o
 config/tc-hppa.o ../../src/gas/config/tc-hppa.c &&\
mv -f $depbase.Tpo $depbase.Po
../../src/gas/config/tc-hppa.c: In function 'tc_gen_reloc':
../../src/gas/config/tc-hppa.c:1371:23: error: implicit conversion from 'enum
el
f_hppa_reloc_type' to 'bfd_reloc_code_real_type' {aka 'enum
bfd_reloc_code_real'
} [-Werror=enum-conversion]
 1371 |       fixp->fx_r_type = R_HPPA_PCREL_CALL;
      |                       ^
../../src/gas/config/tc-hppa.c:1376:15: error: implicit conversion from
'bfd_rel
oc_code_real_type' {aka 'enum bfd_reloc_code_real'} to 'elf_hppa_reloc_type'
[-W
error=enum-conversion]
 1376 |           fixp->fx_r_type,
      |           ~~~~^~~~~~~~~~~
../../src/gas/config/tc-hppa.c: In function 'md_assemble':
../../src/gas/config/tc-hppa.c:5790:13: error: implicit conversion from
'reloc_type' {aka 'enum elf_hppa_reloc_type'} to 'bfd_reloc_code_real_type'
{aka 'enum bfd_reloc_code_real'} [-Werror=enum-conversion]
 5790 |     the_insn.reloc, the_insn.field_selector,
      |     ~~~~~~~~^~~~~~
../../src/gas/config/tc-hppa.c: In function 'hppa_fix_adjustable':
../../src/gas/config/tc-hppa.c:8320:52: error: implicit conversion from
'bfd_reloc_code_real_type' {aka 'enum bfd_reloc_code_real'} to
'elf_hppa_reloc_type' [-Werror=enum-conversion]
 8320 |   code = elf_hppa_reloc_final_type (stdoutput, fixp->fx_r_type,
      |                                                ~~~~^~~~~~~~~~~
cc1: all warnings being treated as errors
make[4]: *** [Makefile:1229: config/tc-hppa.o] Error 1
make[4]: Leaving directory '/home/dave/gnu/binutils/objdir/gas'
make[3]: *** [Makefile:1274: all-recursive] Error 1
make[3]: Leaving directory '/home/dave/gnu/binutils/objdir/gas'
make[2]: *** [Makefile:816: all] Error 2
make[2]: Leaving directory '/home/dave/gnu/binutils/objdir/gas'
make[1]: *** [Makefile:4907: all-gas] Error 2
make[1]: Leaving directory '/home/dave/gnu/binutils/objdir'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]