Bug#123468: [Bug c/6906] warn about asserts with side effects

2017-07-17 Thread felix.von.s at posteo dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=6906

felix  changed:

   What|Removed |Added

 CC||felix.von.s at posteo dot de

--- Comment #7 from felix  ---
What's wrong with the __builtin_pure_p approach? Sure, the diagnostics
generated by __attribute__((warning)) will be ugly, but it's still something.
It's also very simple to implement: it's just !TREE_SIDE_EFFECTS().

In fact, I patched my copy of GCC to add __builtin_pure_p defined just like
that and it seems to work fine. Might submit it soon (I didn't write any tests,
though).

-- 
You are receiving this mail because:
You reported the bug.


Bug#862927: gnat (GCC 7) fails to build on m68k

2017-07-17 Thread John Paul Adrian Glaubitz
On Fri, Jul 14, 2017 at 06:00:04PM +0200, John Paul Adrian Glaubitz wrote:
> I had a go at this and came up with the attached patch which
> fixes the problem for me.  With the patch applied, I can build
> a gnat cross-compiler for m68k.

The patch has already been merged upstream, both on trunk [1] and in
the gcc-7-branch [2], so carrying the patch is not necessary when
including the next slew of SVN updates.

Adrian

> [1] https://gcc.gnu.org/viewcvs/gcc?view=revision=250224
> [2] https://gcc.gnu.org/viewcvs/gcc?view=revision=250225

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Bug#868365: gcc-7: Please enable gnat-7 on m68k

2017-07-17 Thread John Paul Adrian Glaubitz
Hi!

On Sat, Jul 15, 2017 at 12:03:13AM +0200, John Paul Adrian Glaubitz wrote:
> After fixing gnat in gcc-7 with the small patch provided in
> #862927 [1], I have successfully bootstrapped gnat-7 for
> m68k and uploaded the packages to unstable so that gnat-7
> can be used as a build dependency for gcc-7.

While the patch allowed me to cross-build a native gnat-7, native
builds unfortunately currently fail with obscure linker errors [1]:

/usr/lib/gcc/m68k-linux-gnu/7/../../../m68k-linux-gnu/crt1.o: In function 
`_start':
(.text+0x1c): undefined reference to `main'
./xtreeprs.o: In function `_ada_xtreeprs':
xtreeprs.adb:(.text+0x4a6): undefined reference to `xtreeprs__TnamesBIP.1929'
xtreeprs.adb:(.text+0x4cc): undefined reference to `xtreeprs__TnamesBDI.1932'
xtreeprs.adb:(.text+0x168c): undefined reference to `xtreeprs__put_line__2.2465'
xtreeprs.adb:(.text+0x16b0): undefined reference to `xtreeprs__put_line__2.2465'
xtreeprs.adb:(.text+0x17d0): undefined reference to `xtreeprs__put_line__2.2465'
xtreeprs.adb:(.text+0x1802): undefined reference to `xtreeprs__put_line.2461'
xtreeprs.adb:(.text+0x23f4): undefined reference to `xtreeprs__put_line__2.2465'
xtreeprs.adb:(.text+0x26ae): undefined reference to `xtreeprs__put_line__2.2465'
xtreeprs.adb:(.text+0x28de): undefined reference to `xtreeprs__put_line__2.2465'
xtreeprs.adb:(.text+0x29a8): undefined reference to `xtreeprs__put_line.2461'
xtreeprs.adb:(.text+0x29d8): undefined reference to `xtreeprs__put_line.2461'
xtreeprs.adb:(.text+0x2a08): undefined reference to `xtreeprs__put_line.2461'
xtreeprs.adb:(.text+0x2a38): undefined reference to `xtreeprs__put_line.2461'
xtreeprs.adb:(.text+0x2cb2): undefined reference to `xtreeprs__put_line__2.2465'
xtreeprs.adb:(.text+0x2fca): undefined reference to `xtreeprs__put_line__2.2465'
xtreeprs.adb:(.text+0x309e): undefined reference to `xtreeprs__put_line.2461'
xtreeprs.adb:(.text+0x30ce): undefined reference to `xtreeprs__put_line.2461'
xtreeprs.adb:(.text+0x30ea): undefined reference to `xtreeprs___finalizer.1652'
xtreeprs.adb:(.text+0x314e): undefined reference to `xtreeprs__TnamesBDF.1940'
collect2: error: ld returned 1 exit status
gnatlink-7: error when calling /usr/bin/gcc-7
gnatmake: *** link failed.
/bin/bash: ./xtreeprs: No such file or directory
../../src/gcc/ada/Make-generated.in:28: recipe for target 'ada/treeprs.ads' 
failed
make[5]: *** [ada/treeprs.ads] Error 127
make[5]: *** Waiting for unfinished jobs
../../src/gcc/doc/cpp.texi: warning: document without nodes
../../src/gcc/doc/install.texi: warning: document without nodes
/usr/lib/gcc/m68k-linux-gnu/7/../../../m68k-linux-gnu/crt1.o: In function 
`_start':
(.text+0x1c): undefined reference to `main'
collect2: error: ld returned 1 exit status
gnatlink-7: error when calling /usr/bin/gcc-7
gnatmake: *** link failed.
/bin/bash: ./xsnamest: No such file or directory
../../src/gcc/ada/Make-generated.in:50: recipe for target 'ada/stamp-snames' 
failed
make[5]: *** [ada/stamp-snames] Error 127
/usr/lib/gcc/m68k-linux-gnu/7/../../../m68k-linux-gnu/crt1.o: In function 
`_start':
(.text+0x1c): undefined reference to `main'
collect2: error: ld returned 1 exit status
gnatlink-7: error when calling /usr/bin/gcc-7
gnatmake: *** link failed.
/bin/bash: ./xeinfo: No such file or directory
../../src/gcc/ada/Make-generated.in:35: recipe for target 'ada/einfo.h' failed
make[5]: *** [ada/einfo.h] Error 127
/usr/lib/gcc/m68k-linux-gnu/7/../../../m68k-linux-gnu/crt1.o: In function 
`_start':
(.text+0x1c): undefined reference to `main'
./csinfo.o: In function `_ada_csinfo':
csinfo.adb:(.text+0x3350): undefined reference to `csinfo__next_line.2855'
csinfo.adb:(.text+0x418a): undefined reference to `csinfo__next_line.2855'
csinfo.adb:(.text+0x443c): undefined reference to `csinfo__next_line.2855'
csinfo.adb:(.text+0x4b04): undefined reference to `csinfo__next_line.2855'
csinfo.adb:(.text+0x4dfa): undefined reference to `csinfo__next_line.2855'
./csinfo.o:csinfo.adb:(.text+0x54b6): more undefined references to 
`csinfo__next_line.2855' follow
./csinfo.o: In function `_ada_csinfo':
csinfo.adb:(.text+0x633a): undefined reference to `csinfo__vstringaIP.2881'
csinfo.adb:(.text+0x637e): undefined reference to `csinfo__vstringaDI.2884'
csinfo.adb:(.text+0x653e): undefined reference to `csinfo__sort.2907'
csinfo.adb:(.text+0x6550): undefined reference to `csinfo__next_line.2855'
csinfo.adb:(.text+0x6560): undefined reference to `csinfo__next_line.2855'
csinfo.adb:(.text+0x6570): undefined reference to `csinfo__next_line.2855'
csinfo.adb:(.text+0x65a0): undefined reference to `csinfo__next_line.2855'
csinfo.adb:(.text+0x69d8): undefined reference to `csinfo__next_line.2855'
./csinfo.o:csinfo.adb:(.text+0x7200): more undefined references to 
`csinfo__next_line.2855' follow
./csinfo.o: In function `_ada_csinfo':
csinfo.adb:(.text+0x7654): undefined reference to `csinfo__vstringaIP.2881'
csinfo.adb:(.text+0x7692): undefined reference to `csinfo__vstringaDI.2884'