Re: How does NORET_TYPE works ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi..

I forgot something..

On Jan 25, 2008 8:31 PM, amit mehta <amit4g@xxxxxxxxx> wrote:
> here the code just gets expanded as "int main(void)"
> They might have added this MACRO(NORET_TYPE) just to make sure that
> nobody replaces ' void ' with anything else.
>
> Thanks Mulyadi for throwing the light here.

i check panic() prototype somewhere in .h file (forgot the name),
there I see its full form...something like:\
NORET_TYPE panic() <a definition>

where the definition expands to ...IIRC:
attribute __no_return_

So, IMHO, what's really matter is this last "macro"... since if you
check "info glibc", this is the definition that tells gcc not to
create what we call "prologue"..i.e leave+ret or pop+ret

regards,

Mulyadi.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux