Re: [BUILDROBOT] avr broken
On Tue, 2016-08-16 14:26:38 -0400, Nathan Sidwellwrote: > On 08/16/16 13:04, Jan-Benedict Glaw wrote: > > > That'll probably work. But after all, I'm not an AVR maintainer > > (not even an user), but just running the Build Robot. > > Does your robot approve? :) Ohoooh! See there! :) http://toolchain.lug-owl.de/buildbot/show_build_details.php?id=602648 The Robot has an answer. I guess that means he's okay with the patch (of which, unfortunately, both versions didn't make it to the list.) MfG, JBG -- Jan-Benedict Glaw jbg...@lug-owl.de +49-172-7608481 Signature of: The course of history shows that as a government grows, liberty the second : decreases." (Thomas Jefferson) signature.asc Description: Digital signature
Re: [BUILDROBOT] avr broken
On 08/17/2016 09:20 AM, Denis Chertykov wrote: > 2016-08-16 21:26 GMT+03:00 Nathan Sidwell: >> On 08/16/16 13:04, Jan-Benedict Glaw wrote: >> >>> That'll probably work. But after all, I'm not an AVR maintainer (not >>> even an user), but just running the Build Robot. >> >> >> Does your robot approve? :) >> > > I'm an AVR maintainer. > The patch does not have any AVR port modifications. > I can't approve it. > Based on Nathan's ACK, I've installed the patch as r239522. Martin
Re: [BUILDROBOT] avr broken
2016-08-16 21:26 GMT+03:00 Nathan Sidwell: > On 08/16/16 13:04, Jan-Benedict Glaw wrote: > >> That'll probably work. But after all, I'm not an AVR maintainer (not >> even an user), but just running the Build Robot. > > > Does your robot approve? :) > I'm an AVR maintainer. The patch does not have any AVR port modifications. I can't approve it.
Re: [BUILDROBOT] avr broken
On 08/16/16 13:04, Jan-Benedict Glaw wrote: That'll probably work. But after all, I'm not an AVR maintainer (not even an user), but just running the Build Robot. Does your robot approve? :)
Re: [BUILDROBOT] avr broken
On 08/16/16 10:23, Martin Liška wrote: On 08/16/2016 03:36 PM, Nathan Sidwell wrote: On 08/16/16 08:49, Martin Liška wrote: On 08/13/2016 02:14 PM, Jan-Benedict Glaw wrote: This doesn't work for AVR since their LONG_LONG_TYPE_SIZE depents on target flags (see eg. build http://toolchain.lug-owl.de/buildbot/show_build_details.php?id=602648) Hello. Sorry for the breakage, I haven't tried to build avr target for the patch. I'm sending a candidate patch which survives regression tests on ppc64le-redhat-linux. Apart from that, cc1 can be built with --target=avr-linux. Ready to be installed? Martin is LONG_LONG_TYPE_SIZE something not suitable for a #if on avr? Exactly that's causing the problem. ok. good. There's nothing particularly AVRish in the patch, so I'd say commit if you don't hear from JB in a timely manner nathan
Re: [BUILDROBOT] avr broken
On 08/16/16 08:49, Martin Liška wrote: On 08/13/2016 02:14 PM, Jan-Benedict Glaw wrote: This doesn't work for AVR since their LONG_LONG_TYPE_SIZE depents on target flags (see eg. build http://toolchain.lug-owl.de/buildbot/show_build_details.php?id=602648) Hello. Sorry for the breakage, I haven't tried to build avr target for the patch. I'm sending a candidate patch which survives regression tests on ppc64le-redhat-linux. Apart from that, cc1 can be built with --target=avr-linux. Ready to be installed? Martin is LONG_LONG_TYPE_SIZE something not suitable for a #if on avr? presuming that's the problem, I think this approach is fine. I did have a think about putting the 32/64 bit check in one place rather than the two places it is. But (a) that's overkill and (b) it's in 2 places already. So this is ok, of it's ok from AVR's POV. nathan
[BUILDROBOT] avr broken (was: [PATCH 1/4] Cherry-pick fprofile-generate-atomic from google/gcc-4_9 branch)
On Fri, 2016-08-05 15:43:02 +0200, Martin Liškawrote: [...] > Great, attaching install candidate. > >From 0b3ac8636ef34b02e301f22c86dde0602f9969ef Mon Sep 17 00:00:00 2001 > From: marxin > Date: Thu, 28 Jul 2016 14:32:47 +0200 > Subject: [PATCH 1/4] Cherry-pick fprofile-generate-atomic from google/gcc-4_9 > branch > > gcc/ChangeLog: > > 2016-08-05 Martin Liska > > Cherry picked (and modified) from google-4_7 branch > 2012-12-26 Rong Xu > * common.opt (fprofile-update): Add new flag. > * coretypes.h: Define enum profile_update. > * doc/invoke.texi: Document -fprofile-update. > * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and > GCOV_TYPE_ATOMIC_FETCH_ADD_FN. > * tree-profile.c (gimple_init_edge_profiler): Generate > also atomic profiler update. > (gimple_gen_edge_profiler): Likewise. [...] > --- a/gcc/gcov-io.h > +++ b/gcc/gcov-io.h > @@ -164,6 +164,14 @@ see the files COPYING3 and COPYING.RUNTIME respectively. > If not, see > #ifndef GCC_GCOV_IO_H > #define GCC_GCOV_IO_H > > +#if LONG_LONG_TYPE_SIZE > 32 > +#define GCOV_TYPE_ATOMIC_FETCH_ADD_FN __atomic_fetch_add_8 > +#define GCOV_TYPE_ATOMIC_FETCH_ADD BUILT_IN_ATOMIC_FETCH_ADD_8 > +#else > +#define GCOV_TYPE_ATOMIC_FETCH_ADD_FN __atomic_fetch_add_4 > +#define GCOV_TYPE_ATOMIC_FETCH_ADD BUILT_IN_ATOMIC_FETCH_ADD_4 > +#endif > + > #ifndef IN_LIBGCOV > /* About the host */ > This doesn't work for AVR since their LONG_LONG_TYPE_SIZE depents on target flags (see eg. build http://toolchain.lug-owl.de/buildbot/show_build_details.php?id=602648) g++ -fno-PIE -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 auto-profile.o -MT auto-profile.o -MMD -MP -MF ./.deps/auto-profile.TPo /home/jbglaw/repos/gcc/gcc/auto-profile.c In file included from ./tm.h:19:0, from /home/jbglaw/repos/gcc/gcc/backend.h:28, from /home/jbglaw/repos/gcc/gcc/auto-profile.c:26: ./options.h:261:36: error: token "." is not valid in preprocessor expressions #define target_flags global_options.x_target_flags ^ ./options.h:5153:23: note: in expansion of macro ‘target_flags’ #define TARGET_INT8 ((target_flags & MASK_INT8) != 0) ^ /home/jbglaw/repos/gcc/gcc/config/avr/avr.h:138:24: note: in expansion of macro ‘TARGET_INT8’ #define INT_TYPE_SIZE (TARGET_INT8 ? 8 : 16) ^ /home/jbglaw/repos/gcc/gcc/config/avr/avr.h:141:30: note: in expansion of macro ‘INT_TYPE_SIZE’ #define LONG_LONG_TYPE_SIZE (INT_TYPE_SIZE == 8 ? 32 : 64) ^ /home/jbglaw/repos/gcc/gcc/gcov-io.h:167:5: note: in expansion of macro ‘LONG_LONG_TYPE_SIZE’ #if LONG_LONG_TYPE_SIZE > 32 ^ Makefile:1096: recipe for target 'auto-profile.o' failed make[1]: *** [auto-profile.o] Error 1 make[1]: Leaving directory '/home/jbglaw/build/avr/build-gcc/gcc' MfG, JBG -- Jan-Benedict Glaw jbg...@lug-owl.de +49-172-7608481 Signature of:http://www.chiark.greenend.org.uk/~sgtatham/bugs.html the second : signature.asc Description: Digital signature