gcc 5.2.0 compile error with 3.1-4.2.6-201511211620

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

gcc 5.2.0 compile error with 3.1-4.2.6-201511211620

Postby x14sg1 » Sat Nov 21, 2015 7:03 pm

Hello,

With gcc version 5.2.0 (GCC)a and grsecurity-3.1-4.2.6-201511211620.patch, I get a couple of these errors:

tools/gcc/initify_plugin.c:222:107: error: too many arguments to function 'tree_node* get_inner_reference(tree, long int*, long int*, tree_node**, machine_mode*, int*, int*, bool)'

It looks like something similar to the following is needed (at least this compiles) in tools/gcc/gcc-common.h about 612 lines in:

+#if BUILDING_GCC_VERSION == 5002
+#define get_inner_reference(exp, pbitsize, pbitpos, poffset, pmode, punsignedp, preversep, pvolatilep, keep_aligning) get_inner_reference(exp, pbitsize, pbitpos, poffset, pmode, punsignedp, pvolatilep, keep_aligning)
+#endif

I didn't modify the #ifdef that followed that since I wasn't sure what to do about the other line in the #ifdef:

+#define gen_rtx_set(ARG0, ARG1) gen_rtx_SET(VOIDmode, (ARG0), (ARG1))

Thanks
x14sg1
 
Posts: 137
Joined: Sun Aug 23, 2009 7:47 pm

Re: gcc 5.2.0 compile error with 3.1-4.2.6-201511211620

Postby x14sg1 » Sat Nov 21, 2015 8:42 pm

Hello,

Last patch fixed it.

Thanks
x14sg1
 
Posts: 137
Joined: Sun Aug 23, 2009 7:47 pm


Return to grsecurity support