Re: [Bug ada/118051] gnatprove indicates error

2024-12-16 Thread Arnaud Charlet via Gcc-bugs
> --- Comment #2 from Andrew Pinski --- > (In reply to Eric Botcazou from comment #1) >> GNATprove is not part of GCC, please report to the vendor instead. > > Though it is documented to be used: > https://gcc.gnu.org/onlinedocs/gnat_rm/SPARK_005f05.html Other tools are mentioned such as gprbu

Re: [Bug ada/118052] gnatproves bugs, nothing more indicated.

2024-12-16 Thread Arnaud Charlet via Gcc-bugs
> --- Comment #3 from Saada Mehdi <00120260a at gmail dot com> --- > Moreover, the message itself points at gcc bug / bugzilla. That's a bug by itself, but also not for GCC. Arno

Re: [Bug ada/112446] New: Switch -gnatyz included in -gnatyg

2023-11-09 Thread Arnaud Charlet via Gcc-bugs
> "gnatmake --help" states that -gnatyg is equivalent to -gnatydISux, but > in fact the new switch -gnatyz (check parentheses not required by operator > precedence rules) is included. > > If this is deliberate, the help information should say so. This is indeed deliberate, thanks for reporting!

Re: [Bug ada/69883] gcc-6.0 unable to build gcc-4.9 with ada

2016-02-20 Thread Arnaud Charlet
> I could understand that I can not build something form 1992 with todays > tools, but what I do not understand conceptionally, why the host compiler > seems to link with the target compiler's runtime, would it work as a > cross build then? No, for a cross build you need an identical native compil

Re: [Bug ada/66205] gnatbind generates invalid code when finalization is enabled in restricted runtime

2015-06-11 Thread Arnaud Charlet
> I???ve managed to make what I think is a very-low-quality workround by > (a) not suppressing the standard library on the target in system.ads > (b) including a C source file in the RTS which provides dummies for the > irrelevant-in-this-context __gl_* objects which bindgen now > references. > >

Re: [Bug ada/64492] New: Disabling libada prevents building gnattools-cross

2015-01-05 Thread Arnaud Charlet
> Unfortunately you can???t build the cross gnattools, because > --disable-libada > adds gnattools to the list of unconfigured directories, which means that > the > directory gcc/ada/tools is never created, let alone populated. > gcc/ada/gcc-interface/Makefile.in touches stamp-tools, but that???s

Re: [Bug ada/60411] ADA bootstrap failure on ARM

2014-03-10 Thread Arnaud Charlet
> the cross build for arm-linux-gnueabihf succeeds again. Great. > So they use the same system.ads, which now links with a-exexpr-gcc.adb; > Should'nt this target now also use EH_MECHANISM=-gcc or -arm? Yes, android should also use EH_MECHANISM=-arm I'll make that change.

Re: [Bug tree-optimization/60174] [4.9 regression] ICE on ACATS cc3305a

2014-02-18 Thread Arnaud Charlet
> Same result (system.ads and rep*.adb were in gcc/, but even moving them > to $builddir and using -I. doesn't work). Same result == testcase passes. > > Maybe I have to rebuild gnat1 using that modified system.ads? Even No, you don't need to do that, gnat1 reads system.ads at run time. Assumi

Re: [Bug tree-optimization/60174] [4.9 regression] ICE on ACATS cc3305a

2014-02-18 Thread Arnaud Charlet
> > ./gcc/xgcc -Bgcc -S cc3305a.adb -O2 -I gcc/ > cc3305a.adb:74:11: run-time library configuration error > cc3305a.adb:74:11: file s-soflin.ads not found > cc3305a.adb:74:11: entity "System.Soft_Links.Abort_Undefer" not > available > compilation abandoned > > at which point I need to add -I gcc/

Re: [Bug ada/60078] acats c761007 fails on ARM

2014-02-06 Thread Arnaud Charlet
> What is the test supposed to do? Looks at the top of c761007.a, you'll find answers to this question. > could you explain, why the test fails when the delay is added to the > unmodified test case? Sorry, I'm not following you here, I do not know which delay you would add where (and why). Arno

Re: [Bug ada/60078] acats c761007 fails on ARM

2014-02-06 Thread Arnaud Charlet
> well, I don't know if the Finalize method are supposed > to be called in a sequential manner, which GNAT does obviously not > guarantee. > But how about this, for a fix? That can't be a fix, only a workaround hiding a potential issue. Your patch is completely changing the semantic and purpose o

Re: [Bug testsuite/58645] FAIL: gnat.dg/specs/linker_alias.ads (test for errors, line 6)

2013-10-12 Thread Arnaud Charlet
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58645 > > --- Comment #2 from Dominique d'Humieres --- > > Sure, but you can just skip the testcase like on Darwin. > > It is not! I was about to open a PR for it: Actually the new output is as expected since types are now accepted (in addition to o

Re: [Bug ada/57188] [4.9 regression] Ada bootstrap broken on Solaris/x64: No_Implicit_Dynamic_Code violation

2013-05-13 Thread Arnaud Charlet
> >> * gcc-interface/Makefile.in (targ): Fix target name check. > >> > >> Having to deal with the target_alias instead of the canonical form found > >> in target seems rather counterintuitive and fragile to me. > > > > The ChangeLog entry is misleading, neither Pascal nor I have anything t

Re: [Bug bootstrap/54820] [4.8 Regression] ada: cannot find -lstdc++ since 4.8.0 20121002

2012-10-09 Thread Arnaud Charlet
> > On that machine, the entire user-space is built without any static > > libstdc++ > > libraries, so it's quite annoying (and unexpected) to have to install > > them for > > Ada bootstrap. Couldn't Ada use the g++/libstdc++ bits from the compiler > > being > > built? > > No, this is stage 1 so

Re: [Bug bootstrap/54820] [4.8 Regression] ada: cannot find -lstdc++ since 4.8.0 20121002

2012-10-09 Thread Arnaud Charlet
> On that machine, the entire user-space is built without any static > libstdc++ > libraries, so it's quite annoying (and unexpected) to have to install them > for > Ada bootstrap. Couldn't Ada use the g++/libstdc++ bits from the compiler > being built? That would probably be better indeed, it's

Re: [Bug ada/49944] [4.5/4.6/4.7 regression] Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:856:10: "pthread_attr_setaffinity_np" is undefined (more references follow)"

2011-08-02 Thread Arnaud Charlet
> I would not be so assertive as Arno. Really? As the person who wrote this file and as the main tasking expert of GNAT, I think I can be so assertive on this topic. > It seems to me (but I may be wrong) that > s-taprop-linux.adb really only calls glibc and libpthread, not the > kernel, and > the

Re: [Bug ada/49940] New: [4.5/4.6/4.7 regression] Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:717:32: "lwp_self" is undefined"

2011-08-02 Thread Arnaud Charlet
> The function __gnat_lwp_self exists in adaint.c only #if defined(linux), > so it may not apply to kfreebsd-*. The problem exists because > kfreebsd-* uses s-osinte-kfreebsd-gnu.ads, which does not import the > function, but also uses s-taprop-linux.adb, which does use the function. > (Note > th

Re: [Bug ada/49944] [4.5/4.6/4.7 regression] Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:856:10: "pthread_attr_setaffinity_np" is undefined (more references follow)"

2011-08-02 Thread Arnaud Charlet
> > This is because GNU/kFreeBSD uses s-taprop-linux.adb, which uses > > subprograms > > Well, then that's the bug: kFreeBSD should cheat and try to reuse linux Sorry, I meant of course "shouldN'T cheat" > files, that's bound to cause this kind of error.

Re: [Bug ada/47717] building library for arm-none-eabi causes internal error

2011-03-21 Thread Arnaud Charlet
> Just so we know, should it be possible to build libgnat.a using a project file > via gnatmake? No, project files aren't designed to do that out of the box, libgnat.a is a special library. Arno

Re: [Bug ada/42368] ada/cio.c uses common names

2011-02-08 Thread Arnaud Charlet
> Ping on this. Would a patch be OK? Depending on the patch, yes.

Re: [Bug ada/36939] Build Failure Ada SH2e

2011-02-07 Thread Arnaud Charlet
> With Laurent's stub version of s-scaval.adb added as s-scaval-sh.adb and a > minor change to a ada/gcc-interface/Makefile.in, sh-rtems now builds > Ada. > > Is this OK to commit? Note that the proper place to submit a patch officially is gcc-patches. In any case, adding s-scaval-sh.adb isn't O

Re: [Bug ada/42153] New: s-osinte.adb:46:21: missing body for "To_Duration" declared at s-osinte.ads:216

2009-11-22 Thread Arnaud Charlet
Laurent, This one is for you, caused by revision 154407 (you should also double check other linux implementations for similar issues). TIA. > /test/gnu/gcc/objdir/./gcc/xgcc -B/test/gnu/gcc/objdir/./gcc/ > -B/opt/gnu/gcc/gcc > -4.5.0/hppa2.0w-hp-hpux11.11/bin/ > -B/opt/gnu/gcc/gcc-4.5.0/hppa2.0w-

Re: [Bug ada/42073] [4.4 regression] Infinite loop when parsing a project file, alpha only

2009-11-17 Thread Arnaud Charlet
> #1 0x02853dd8 in ?? () from /usr/lib/libgnatprj.so.4.4 > #2 0x02856abc in prj__part__parse () from /usr/lib/libgnatprj.so.4.4 > #3 0x0284df7c in prj__pars__parse () from /usr/lib/libgnatprj.so.4.4 Well, there's no such thing as libgnatprj.so in GCC sources/Makefiles.

Re: [Bug tree-optimization/30911] VRP fails to eliminate range checks in Ada code

2009-11-17 Thread Arnaud Charlet
> > Is there anyway for the optimizers to get at this range information still? > > Or was range information removed because it is essentially impossible to use > > it correctly (if so this bug report should be closed as unfixable)? > > It was removed because it was impossible to use it correctly.

Re: [Bug ada/37309] tasking is not implemented on NetBSD

2009-11-17 Thread Arnaud Charlet
> This patch was simply not reviewed/discussed at all, Arnaud could you have a > look? gcc-patches submission URL: > > http://gcc.gnu.org/ml/gcc-patches/2009-03/msg01510.html Well, this submission does not include a visible changelog and requires saving the attachment and unzip to review the patc

Re: [Bug ada/38400] Acats faillures due to undefined pthread_setrunon_np

2008-12-11 Thread Arnaud Charlet
> The offending piece of code is pretty useless btw, even on IRIX 6.5. > The cpu# in question is always initialized in s-tasinf-irix.ads with > CPU_ANY so the end result is the same as when you wouldn't call > pthread_setrunon_np() at all. So my initial fix was to simply remove > this functionality

Re: [Bug ada/37034] /bin/sh: line 1: 26087 Aborted (core dumped) ./xsinfo ../../sinfo.h

2008-08-06 Thread Arnaud Charlet
> > > mkdir -p ada/bldtools/einfo > > > (cd ada/bldtools/sinfo && gnatmake -q xsinfo && ./xsinfo ../../sinfo.h ) > > > rm -f ada/bldtools/einfo/einfo.ads ada/bldtools/einfo/einfo.adb > > > ada/bldtools/einfo/xeinfo.adb > > > cp -p ../../gcc/gcc/ada/einfo.ads ../../gcc/gcc/ada/einfo.adb > > > ../../

Re: [Bug ada/37034] New: /bin/sh: line 1: 26087 Aborted (core dumped) ./xsinfo ../../sinfo.h

2008-08-05 Thread Arnaud Charlet
> mkdir -p ada/bldtools/einfo > (cd ada/bldtools/sinfo && gnatmake -q xsinfo && ./xsinfo ../../sinfo.h ) > rm -f ada/bldtools/einfo/einfo.ads ada/bldtools/einfo/einfo.adb > ada/bldtools/einfo/xeinfo.adb > cp -p ../../gcc/gcc/ada/einfo.ads ../../gcc/gcc/ada/einfo.adb > ../../gcc/gcc/ada/xeinfo.adb a

Re: [Bug ada/36591] New: error: "a-reatim.adb" must be compiled

2008-06-21 Thread Arnaud Charlet
> I am seeing quite a few errors in the acats testsuite with the following > errors: Most likely, your Ada run-time has not been rebuilt since your last incremental build. I'd suggest either redoing a build from scratch, or at least removing the /libada/stamp-libada and gcc/stamp-* files and redo

Re: [Bug ada/36573] s-intman.adb:232:50: "SA_ONSTACK" is undefined

2008-06-18 Thread Arnaud Charlet
> > s-intman.adb:232:50: "SA_ONSTACK" is undefined > > Looks like we need something like the following: Right. Assuming 0x1 is indeed the corresponding value of the SA_ONSTACK C macro, you can commit this change. Arno

Re: [Bug ada/35284] Branch to 0x0 from Ada run-time

2008-02-22 Thread Arnaud Charlet
> Arnaud, do you have any idea on what to look at (interesting breakpoint and > data structures)? RTEMS tasking works on other platforms. May be some Ada/C > thread interface data structure has the wrong size in the case of x86 and > things get corrupted (s-oisinte-rtems.ads). I'd suggest putting

Re: [Bug ada/33722] putenv() is made posix-conformant on FreeBSD 7.x

2007-10-10 Thread Arnaud Charlet
> Created an attachment (id=14335) > --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14335&action=view) > Fix for free() after putenv() on FreeBSD 7.x > > The patch allowed me to bootstrap gcc 4.2.2 on the FreeBSD 7.x with > gnat enabled. Patch looks good to me. OK for 4.2 branch and trunk.

Re: [Bug tree-optimization/30911] VRP fails to eliminate range checks in Ada code

2007-02-24 Thread Arnaud Charlet
> I was talking about the rts that get's used if I configure with > --disable-bootstrap, do a make and then run make check-ada from within the > gcc/ subdirectory. As far as I understand that rts seems to be built using > the bootstrap compiler. At least this would explain the difference in the >

Re: [Bug tree-optimization/30911] VRP fails to eliminate range checks in Ada code

2007-02-24 Thread Arnaud Charlet
> > we have a disconnect between the redundant checks in the rts and the > > testcases. If it happens that the non-bootstrapped rts is built by the > > host compiler(?). > > No, that never happens. The rts is always built with the latest (stage3) > compiler. Otherwise it would not even begin to w

Re: [Bug tree-optimization/30911] VRP fails to eliminate range checks in Ada code

2007-02-24 Thread Arnaud Charlet
> I guess that nearly all range checks are eliminated and without bootstrapping > we have a disconnect between the redundant checks in the rts and the > testcases. If it happens that the non-bootstrapped rts is built by the > host compiler(?). No, that never happens. The rts is always built with

Re: [Bug testsuite/27476] ACATS: Ada testsuite Bourne shell compatibility problem on hpux

2006-05-08 Thread Arnaud Charlet
>-- Comment #4 from pinskia at gcc dot gnu dot org 2006-05-08 16:31 --- > [ "x${main}" != "x" ] should also work and maybe a little more portable. That's also fine, although overkill these days. All host OSes supported by GNAT (and more) accept the following simpler and cleaner syntax:

Re: [Bug bootstrap/25859] gnatmake: error while loading shared libraries: libgcc_s.so.4: cannot open

2006-01-19 Thread Arnaud Charlet
> For some reason, the above doesn't seem to have been used in linking gnatmake: Indeed, gnatmake has to be handled specially. So I guess the gnatmake rule needs to use $(GCC_LINK) one way or another (although there should be no difference between trubk and 4.1 in that respect). Same for gnatlin

Re: [Bug bootstrap/25859] New: gnatmake: error while loading shared libraries: libgcc_s.so.4: cannot open

2006-01-19 Thread Arnaud Charlet
ular to avoid this kind of nightmare. This was fixed as part of: 2005-02-09 Arnaud Charlet <[EMAIL PROTECTED]> PR ada/16592 * Makefile.in: Link all gnat tools with -static-libgcc, since -shared-libgcc is now used by default on some systems (e.g. linux with

Re: [Bug ada/24533] FAIL: a85013b: *** glibc detected *** free(): invalid pointer: 0x00062a00 ***

2006-01-17 Thread Arnaud Charlet
> OK? Assuming you add a proper "???" comment explaining why we use an alignment of 8 in this file (basically summarizing this PR), this is OK. > 2006-01-16 John David Anglin <[EMAIL PROTECTED]> > > PR ada/24533 > * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to

Re: [Bug ada/24533] FAIL: a85013b: *** glibc detected *** free(): invalid pointer: 0x00062a00 ***

2006-01-04 Thread Arnaud Charlet
> So my question is wether the record+storage array+align will work for all > the C types in s-osinte* or is there an exception (ie a non opaque C type)? Now I understand your question ;-) The answer is no, this approach can't be applied blindly to all C types. This approach could most likely be

Re: [Bug ada/24533] FAIL: a85013b: *** glibc detected *** free(): invalid pointer: 0x00062a00 ***

2006-01-04 Thread Arnaud Charlet
> For most (if not all) s-osinte*.ads C type redeclarations, I believe it should > be sufficient to use a record containing a > System.Storage_Elements.Storage_Array of the C sizeof(struct), plus may be an > alignement clause (I don't know if C or GNU C allows to retrieve the alignment > of a struc

Re: [Bug ada/19902] New: ACATS cxa3004 cxb3006 fail at compile time "ambiguous expression"

2005-02-11 Thread Arnaud Charlet
> Probably related to recent changes, might be an ACATS problem. Right, these tests should be removed from the repository, or modified. We've informed the ACAA about this issue (incompatibility with Ada 2005). Arno