bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/23847] New: New warning on i586: -Werror=absolute-value


From: mliska at suse dot cz
Subject: [Bug ld/23847] New: New warning on i586: -Werror=absolute-value
Date: Thu, 01 Nov 2018 12:57:09 +0000

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

            Bug ID: 23847
           Summary: New warning on i586: -Werror=absolute-value
           Product: binutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: mliska at suse dot cz
  Target Milestone: ---

I see it when building gdb package on i586:

make[2]: Leaving directory
'/home/abuild/rpmbuild/BUILD/gdb-8.2/build-i586-suse-linux/bfd/po'
make[2]: Entering directory
'/home/abuild/rpmbuild/BUILD/gdb-8.2/build-i586-suse-linux/bfd'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../../bfd  -DBINDIR='"/usr/bin"'   -DTRAD_CORE -I. -I../../bfd
-I../../bfd/../include  -DHAVE_i386_elf32_vec -DHAVE_iamcu_elf32_vec
-DHAVE_i386_pei_vec -DHAVE_x86_64_elf64_vec -DHAVE_x86_64_elf32_vec
-DHAVE_x86_64_pei_vec -DHAVE_l1om_elf64_vec -DHAVE_k1om_elf64_vec
-DHAVE_elf64_le_vec -DHAVE_elf64_be_vec -DHAVE_elf32_le_vec -DHAVE_elf32_be_vec
-DHAVE_powerpc_elf32_vec -DHAVE_rs6000_xcoff_vec -DHAVE_powerpc_elf32_le_vec
-DHAVE_powerpc_boot_vec -DHAVE_powerpc_elf64_vec -DHAVE_powerpc_elf64_le_vec
-DHAVE_rs6000_xcoff64_vec -DHAVE_rs6000_xcoff64_aix_vec -DHAVE_s390_elf32_vec
-DHAVE_s390_elf64_vec -DHAVE_arm_elf32_le_vec -DHAVE_arm_elf32_fdpic_le_vec
-DHAVE_arm_elf32_be_vec -DHAVE_arm_elf32_fdpic_be_vec
-DHAVE_aarch64_elf64_le_vec -DHAVE_aarch64_elf64_be_vec
-DHAVE_aarch64_elf32_le_vec -DHAVE_aarch64_elf32_be_vec -DHAVE_m68k_elf32_vec
-DHAVE_spu_elf32_vec -DHAVE_plugin_vec   -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wshadow -Wstack-usage=262144 -Werror 
-fomit-frame-pointer -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong
-funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection
-Wno-implicit-fallthrough -Wno-error=cast-function-type
-Wno-error=stringop-truncation -DPERF_ATTR_SIZE_VER5_BUNDLE
-I/home/abuild/rpmbuild/BUILD/gdb-8.2/build-i586-suse-linux/processor-trace-2.0-root/usr/include
 -MT elf32-arm.lo -MD -MP -MF .deps/elf32-arm.Tpo -c -o elf32-arm.lo
../../bfd/elf32-arm.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -DBINDIR=\"/usr/bin\"
-DTRAD_CORE -I. -I../../bfd -I../../bfd/../include -DHAVE_i386_elf32_vec
-DHAVE_iamcu_elf32_vec -DHAVE_i386_pei_vec -DHAVE_x86_64_elf64_vec
-DHAVE_x86_64_elf32_vec -DHAVE_x86_64_pei_vec -DHAVE_l1om_elf64_vec
-DHAVE_k1om_elf64_vec -DHAVE_elf64_le_vec -DHAVE_elf64_be_vec
-DHAVE_elf32_le_vec -DHAVE_elf32_be_vec -DHAVE_powerpc_elf32_vec
-DHAVE_rs6000_xcoff_vec -DHAVE_powerpc_elf32_le_vec -DHAVE_powerpc_boot_vec
-DHAVE_powerpc_elf64_vec -DHAVE_powerpc_elf64_le_vec -DHAVE_rs6000_xcoff64_vec
-DHAVE_rs6000_xcoff64_aix_vec -DHAVE_s390_elf32_vec -DHAVE_s390_elf64_vec
-DHAVE_arm_elf32_le_vec -DHAVE_arm_elf32_fdpic_le_vec -DHAVE_arm_elf32_be_vec
-DHAVE_arm_elf32_fdpic_be_vec -DHAVE_aarch64_elf64_le_vec
-DHAVE_aarch64_elf64_be_vec -DHAVE_aarch64_elf32_le_vec
-DHAVE_aarch64_elf32_be_vec -DHAVE_m68k_elf32_vec -DHAVE_spu_elf32_vec
-DHAVE_plugin_vec -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow
-Wstack-usage=262144 -Werror -fomit-frame-pointer -O2 -Wall -D_FORTIFY_SOURCE=2
-fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables
-fstack-clash-protection -Wno-implicit-fallthrough
-Wno-error=cast-function-type -Wno-error=stringop-truncation
-DPERF_ATTR_SIZE_VER5_BUNDLE
-I/home/abuild/rpmbuild/BUILD/gdb-8.2/build-i586-suse-linux/processor-trace-2.0-root/usr/include
-MT elf32-arm.lo -MD -MP -MF .deps/elf32-arm.Tpo -c ../../bfd/elf32-arm.c -o
elf32-arm.o
../../bfd/elf32-arm.c: In function 'elf32_arm_final_link_relocate':
../../bfd/elf32-arm.c:10905:10: error: absolute value function 'labs' given an
argument of type 'bfd_signed_vma' {aka 'long long int'} but has parameter of
type 'long int' which may cause truncation of value [-Werror=absolute-value]
10905 |  value = labs (relocation);
      |          ^~~~
cc1: all warnings being treated as errors

Note that it's a new GCC 9 warning.

-- 
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]