On 30 October 2006 13:36, Mohamed Shafi wrote: > Hello all, > > Can anybody tell me the purpose of the testcase > testsuite\gcc.dg\special\gcsec-1.c in the gcc testsuite ? > Is it something related with garbage clooection?
Yes, but not the gcc garbage collector but the linker's section-based gc. > What exactly doec this testcase test ? It appears to be testing that the linker supports the --gc-sections option, and that the compiler generates the right output for it when compiling with -ffunction-sections -fdata-sections. cheers, DaveK -- Can't think of a witty .sigline today....