* AW: AW:[Xenomai-help] undefinedreference __xnarch_xchg_called_with_bad_pointer
@ 2006-03-01 7:20 Roderik_Wildenburg
2006-03-01 8:03 ` Philippe Gerum
0 siblings, 1 reply; 2+ messages in thread
From: Roderik_Wildenburg @ 2006-03-01 7:20 UTC (permalink / raw)
To: holindho, rpm; +Cc: xenomai
Any idea why I don´t get this error when compiling the native examples. Isn´t atomic.h included with these examples too ?
> -----Ursprüngliche Nachricht-----
> Von: xenomai-help-bounces@domain.hid
> [mailto:xenomai-help-bounces@domain.hid] Im Auftrag von Heikki Lindholm
> Gesendet: Dienstag, 28. Februar 2006 20:06
> An: Philippe Gerum
> Cc: xenomai@xenomai.org
> Betreff: Re: AW:[Xenomai-help] undefinedreference
> __xnarch_xchg_called_with_bad_pointer
>
> Philippe Gerum kirjoitti:
> > Heikki Lindholm wrote:
> >
> >> Uh. I guess the compiler isn't killing the *_bad_pointer
> function as
> >> dead code when debug is enabled (although it is dead-code.)
> >
> >
> > The optimizer is disabled by --enable-debug so that we don't get
> > strange jumps while tracing with GDB, I guess that's why
> the dead code
> > is not eliminated. What about just killing this check,
> since the same
> > code is already validated when compiling it as a kernel module?
> > (except asm-uvm/system.h, but that's not important).
>
> Yep. That seems like the way to go. I don't see much to gain
> from the check. Of course, paranoid way would be to add the
> __bad_ptr() function with abort() or something inside. Quick
> patch attached for the former case.
>
> - hl
>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: AW: AW:[Xenomai-help] undefinedreference __xnarch_xchg_called_with_bad_pointer
2006-03-01 7:20 AW: AW:[Xenomai-help] undefinedreference __xnarch_xchg_called_with_bad_pointer Roderik_Wildenburg
@ 2006-03-01 8:03 ` Philippe Gerum
0 siblings, 0 replies; 2+ messages in thread
From: Philippe Gerum @ 2006-03-01 8:03 UTC (permalink / raw)
To: Roderik_Wildenburg; +Cc: xenomai
Roderik_Wildenburg@domain.hid wrote:
> Any idea why I don´t get this error when compiling the native examples. Isn´t atomic.h included with these examples too ?
Included yes, but not actually used.
>
>
>>-----Ursprüngliche Nachricht-----
>>Von: xenomai-help-bounces@domain.hid
>>[mailto:xenomai-help-bounces@domain.hid] Im Auftrag von Heikki Lindholm
>>Gesendet: Dienstag, 28. Februar 2006 20:06
>>An: Philippe Gerum
>>Cc: xenomai@xenomai.org
>>Betreff: Re: AW:[Xenomai-help] undefinedreference
>>__xnarch_xchg_called_with_bad_pointer
>>
>>Philippe Gerum kirjoitti:
>>
>>>Heikki Lindholm wrote:
>>>
>>>
>>>>Uh. I guess the compiler isn't killing the *_bad_pointer
>>
>>function as
>>
>>>>dead code when debug is enabled (although it is dead-code.)
>>>
>>>
>>>The optimizer is disabled by --enable-debug so that we don't get
>>>strange jumps while tracing with GDB, I guess that's why
>>
>>the dead code
>>
>>>is not eliminated. What about just killing this check,
>>
>>since the same
>>
>>>code is already validated when compiling it as a kernel module?
>>>(except asm-uvm/system.h, but that's not important).
>>
>>Yep. That seems like the way to go. I don't see much to gain
>>from the check. Of course, paranoid way would be to add the
>>__bad_ptr() function with abort() or something inside. Quick
>>patch attached for the former case.
>>
>>- hl
>>
>
>
--
Philippe.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-03-01 8:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-01 7:20 AW: AW:[Xenomai-help] undefinedreference __xnarch_xchg_called_with_bad_pointer Roderik_Wildenburg
2006-03-01 8:03 ` Philippe Gerum
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.