> > The recent work, I'm not exactly sure if it's actually /this/ commit, > broke nios2-rtems, see eg. build > http://toolchain.lug-owl.de/buildbot/show_build_details.php?id=376303 > > g++ -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions > -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing > -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual > -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings > -fno-common -DHAVE_CONFIG_H -I. -I. -I/home/jbglaw/repos/gcc/gcc > -I/home/jbglaw/repos/gcc/gcc/. -I/home/jbglaw/repos/gcc/gcc/../include > -I/home/jbglaw/repos/gcc/gcc/../libcpp/include > -I/home/jbglaw/repos/gcc/gcc/../libdecnumber > -I/home/jbglaw/repos/gcc/gcc/../libdecnumber/dpd -I../libdecnumber > -I/home/jbglaw/repos/gcc/gcc/../libbacktrace -o optabs.o -MT optabs.o -MMD > -MP -MF ./.deps/optabs.TPo /home/jbglaw/repos/gcc/gcc/optabs.c > gawk -f /home/jbglaw/repos/gcc/gcc/opt-functions.awk -f > /home/jbglaw/repos/gcc/gcc/opt-read.awk \ > -f /home/jbglaw/repos/gcc/gcc/optc-save-gen.awk \ > -v header_name="config.h system.h coretypes.h tm.h" < optionlist > > options-save.c > g++ -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions > -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing > -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual > -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings > -fno-common -DHAVE_CONFIG_H -I. -I. -I/home/jbglaw/repos/gcc/gcc > -I/home/jbglaw/repos/gcc/gcc/. -I/home/jbglaw/repos/gcc/gcc/../include > -I/home/jbglaw/repos/gcc/gcc/../libcpp/include > -I/home/jbglaw/repos/gcc/gcc/../libdecnumber > -I/home/jbglaw/repos/gcc/gcc/../libdecnumber/dpd -I../libdecnumber > -I/home/jbglaw/repos/gcc/gcc/../libbacktrace -o options-save.o -MT > options-save.o -MMD -MP -MF ./.deps/options-save.TPo options-save.c > options-save.c: In function ‘void cl_target_option_stream_in(data_in*, > bitpack_d*, cl_target_option*)’: > options-save.c:1901:41: error: expected primary-expression before ‘enum’ > ptr->saved_custom_code_status[256] = (enum nios2_ccs_code > saved_custom_code_status[256]) bp_unpack_value (bp, 64); > ^ > options-save.c:1901:41: error: expected ‘)’ before ‘enum’ > options-save.c:1902:40: error: expected primary-expression before ‘int’ > ptr->saved_custom_code_index[256] = (int saved_custom_code_index[256]) > bp_unpack_value (bp, 64); > ^ > options-save.c:1902:40: error: expected ‘)’ before ‘int’ > options-save.c:1903:49: error: expected primary-expression before ‘int’ > ptr->saved_fpu_custom_code[n2fpu_code_num] = (int > saved_fpu_custom_code[n2fpu_code_num]) bp_unpack_value (bp, 64); > ^ > options-save.c:1903:49: error: expected ‘)’ before ‘int’ > make[1]: *** [options-save.o] Error 1
Yep, it is because my code does not handle streaming of arrays into the target optimization nodes. I will take a look on why that array is really needed. It seems like a overkill? Honza > > > (I just bisected it just now, it's this commit: > > 2014-11-14 Jan Hubicka <hubi...@ucw.cz> > > * optc-save-gen.awk: Output cl_target_option_eq, > cl_target_option_hash, cl_target_option_stream_out, > cl_target_option_stream_in functions. > * opth-gen.awk: Output prototypes for > cl_target_option_eq and cl_target_option_hash. > * lto-streamer.h (cl_target_option_stream_out, > cl_target_option_stream_in): Declare. > * tree.c (cl_option_hash_hash): Use cl_target_option_hash. > (cl_option_hash_eq): Use cl_target_option_eq. > * tree-streamer-in.c (unpack_value_fields): Stream in > TREE_TARGET_OPTION. > * lto-streamer-out.c (DFS::DFS_write_tree_body): Follow > DECL_FUNCTION_SPECIFIC_TARGET. > (hash_tree): Hash TREE_TARGET_OPTION; visit > DECL_FUNCTION_SPECIFIC_TARGET. > * tree-streamer-out.c (streamer_pack_tree_bitfields): Skip > TS_TARGET_OPTION. > (streamer_write_tree_body): Output TS_TARGET_OPTION. > ) > > MfG, JBG > > -- > Jan-Benedict Glaw jbg...@lug-owl.de +49-172-7608481 > Signature of: http://perl.plover.com/Questions.html > the second :