[Bug c/86217] New: option aux-info
hans.buchmann at fhnw dot ch
gcc-bugzilla@gcc.gnu.org
Tue Jun 19 18:34:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86217
Bug ID: 86217
Summary: option aux-info
Product: gcc
Version: 8.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: hans.buchmann at fhnw dot ch
Target Milestone: ---
Created attachment 44297
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44297&action=edit
The output file
Compiling the code
----------------------------
static inline int arch_within_stack_frames(const void * const stack,
const void * const stackend,
const void *obj, unsigned long len)
{
return 0;
}
static int arch_within_stack_frames(const void * const stack,
const void * const stackend,
const void *obj, unsigned long len);
---------------------------
with
gcc -aux-info aux-info.data \
-c \
-oaux-info.o \
aux-info.c
yields for aux-info.data:
---------------------------------------------------
/* compiled from: . */
/* aux-info.c:2:NF */
static int arch_within_stack_frames (const void *const const stack, const void
*const const stackend, const void *obj, long unsigned int len);
// !!!!!!twice
const
/* (stack, stackend, obj, len) const void *const const stack; const void *const
const stackend; const void *obj; long unsigned int len; */
/* aux-info.c:10:NC */
static int arch_within_stack_frames (const void *const , const void *const ,
const void *, long unsigned int);
--------------------------------------------
it seems that the keyword 'inline' doubles the keyword const.
gcc -v:
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib
--libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info
--with-bugurl=https://bugs.archlinux.org/
--enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared
--enable-threads=posix --enable-libmpx --with-system-zlib --with-isl
--enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu
--disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object
--enable-linker-build-id --enable-lto --enable-plugin
--enable-install-libiberty --with-linker-hash-style=gnu
--enable-gnu-indirect-function --enable-multilib --disable-werror
--enable-checking=release --enable-default-pie --enable-default-ssp
Thread model: posix
gcc version 8.1.1 20180531 (GCC)
Sincerely
Hans Buchmann
More information about the Gcc-bugs
mailing list