https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61807

            Bug ID: 61807
           Summary: genautomata.c fails to compile
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: y.rajesh.4683 at gmail dot com

I am compiling GCC for Octeon board. I keep getting the following errors. 

/mnt/data/archive/GCC/gcc_4.9_1/prev-mips64-octeon-linux-gnu/libstdc++-v3/include/mips64-octeon-linux-gnu/bits/mathcalls.h:364:1:
warning: invoking macro __MATH_PRECNAME argument 2: empty macro arguments are
undefined in ISO C90 and ISO C++98
In file included from .././../gcc-4.9.0/gcc/system.h:642:0,
                 from .././../gcc-4.9.0/gcc/genautomata.c:108:
/mnt/data/archive/GCC/gcc_4.9_1/prev-mips64-octeon-linux-gnu/libstdc++-v3/include/mips64-octeon-linux-gnu/dlfcn.h:167:21:
warning: comma at end of enumerator list [-Wpedantic]
     RTLD_DI_MAX = 10,
                     ^
.././../gcc-4.9.0/gcc/genautomata.c: In function 'char* next_sep_el(const
char**, int, int)':
.././../gcc-4.9.0/gcc/genautomata.c:1181:11: error: invalid conversion from
'void*' to 'char*' [-fpermissive]
   out_str = obstack_base (&irp);
           ^
In file included from .././../gcc-4.9.0/gcc/genautomata.c:112:0:
.././../gcc-4.9.0/gcc/genautomata.c: In function 'const char*
regexp_representation(regexp_t)':
/mnt/data/archive/GCC/gcc_4.9_1/prev-mips64-octeon-linux-gnu/libstdc++-v3/include/mips64-octeon-linux-gnu/obstack.h:206:51:
error: invalid conversion from 'void*' to 'const char*' [-fpermissive]
 #define obstack_base(h) ((void *) (h)->object_base)
                                                   ^
.././../gcc-4.9.0/gcc/genautomata.c:6876:10: note: in expansion of macro
'obstack_base'
   return obstack_base (&irp);
          ^

Can I case the return value of the obstack_base to avoid this problem.

Reply via email to