Signed-off-by: Slava Barinov <v.barinov@samsung.com>
%setup -q -b 1 -n coreutils-%{version}
%build
+/usr/bin/gcc-unforce-options
+/usr/bin/gcc-force-options -fsanitize=alignment,bool,enum,float-cast-overflow,float-divide-by-zero,integer-divide-by-zero,nonnull-attribute,null,object-size,return,returns-nonnull-attribute,signed-integer-overflow,unreachable
cp %{SOURCE1001} .
export CFLAGS=" -fpie"
static uintmax_t
unsigned_file_size (off_t size)
{
- return size + (size < 0) * ((uintmax_t) OFF_T_MAX - OFF_T_MIN + 1);
+ return size + (size < 0) * ((uintmax_t) OFF_T_MAX - (uintmax_t) OFF_T_MIN + 1);
}
/* Enter and remove entries in the table `cwd_file'. */