This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Ada] Clean up No_Run_Time tests in exp_ch4.adb


Hi,

I couldn't find a test for the No_Run_Time pragma so I
tried to make one but failed:

$ cat noruntime.adb
procedure Noruntime is
begin
   null;
end Noruntime;
$ gnatmake -f noruntime.adb -largs -nodefaultlibs
gcc -c noruntime.adb
gnatbind -x noruntime.ali
gnatlink noruntime.ali -nodefaultlibs
/usr/lib/../lib64/crt1.o: In function `_start':
../sysdeps/x86_64/elf/start.S:106: undefined reference to
`__libc_csu_fini'
../sysdeps/x86_64/elf/start.S:107: undefined reference to
`__libc_csu_init'
../sysdeps/x86_64/elf/start.S:113: undefined reference to
`__libc_start_main'
/opt/cfarm/release/4.3.0/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/adalib/libgnat.a(s-exctab.o): In function `system__exception_table__internal_exception':
/home/guerby/tmp/build/gcc/ada/rts/s-exctab.adb:169: undefined reference
to `memcpy'
...
(it's linked with libgnat so plenty of libgnat errors follow...)

What additional flags do I need to make a standalone executable
which doesn't bring any library (may be some startup file though)?

Thanks in advance,

Laurent


On Thu, 2008-03-27 at 08:48 +0100, Arnaud Charlet wrote:
> Tested on i686-linux, committed on trunk
> 
> There were explicit tests for No_Run_Time mode in Exp_Ch4 that are
> not needed because Rtsfind will signal the relevant entities as
> not available in No_Run_Time mode. No test needed, since no change
> in behavior
> 
> 2008-03-26  Robert Dewar  <dewar@adacore.com>
> 
> 	* exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
> 	No_Run_Time_Mode
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]