C++ Does not Compile on PowerPC
Joel Sherrill
joel.sherrill at OARcorp.com
Sat May 5 15:09:12 UTC 2012
Disabling the pieces of code which are for simple vectored architectures makes sense when on PIC ones. I would propose not even defining this constant on those architectures and seeing how that ripples. And looking through isr.* and doing the same. It should be ok but this is the bottom of the dependency list.Lots of building to be sure
Sebastian Huber <sebastian.huber at embedded-brains.de> wrote:
>On 04/05/12 22:22, Joel Sherrill wrote:
>> Hi
>>
>> The stdint.h in gcc 4.7.0 has changed and made constants
>> like UINT32_MAX hidden to C++ code by default.
>>
>> In file included from
>> ../../.././psim/lib/include/rtems/score/isr.h:361:0,
>> from
>> ../../.././psim/lib/include/rtems/score/object.h:22,
>> from ../../.././psim/lib/include/rtems/score/mppkt.h:38,
>> from
>> ../../.././psim/lib/include/rtems/score/thread.h:92,
>> from ../../.././psim/lib/include/rtems/score/heap.h:22,
>> from ../../.././psim/lib/include/rtems/rtems/types.h:25,
>> from ../../.././psim/lib/include/rtems.h:48,
>> from
>> ../../.././psim/lib/include/rtems++/rtemsStatusCode.h:22,
>> from
>> ../../.././psim/lib/include/rtems++/rtemsEvent.h:23,
>> from
>> ../../../../../rtems/c/src/librtems++/src/rtemsEvent.cc:19:
>> ../../.././psim/lib/include/rtems/score/isr.inl: In function 'bool
>> _ISR_Is_vector_number_valid(uint32_t)':
>> ../../.././psim/lib/include/rtems/score/isr.inl:38:22: error:
>> 'UINT32_MAX' was not declared in this scope
>[...]
>> Any thoughts on how to address this?
>>
>
>This shows only that the PowerPC CPU port is broken. We don't define
>CPU_SIMPLE_VECTORED_INTERRUPTS thus it is implicitly FALSE. So we don't
>need these
>
>#define CPU_INTERRUPT_NUMBER_OF_VECTORS (0)
>#define CPU_INTERRUPT_MAXIMUM_VECTOR_NUMBER (UINT32_MAX)
>
>defines.
>
>--
>Sebastian Huber, embedded brains GmbH
>
>Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
>Phone : +49 89 18 90 80 79-6
>Fax : +49 89 18 90 80 79-9
>E-Mail : sebastian.huber at embedded-brains.de
>PGP : Public key available on request.
>
>Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
>
>_______________________________________________
>rtems-devel mailing list
>rtems-devel at rtems.org
>http://www.rtems.org/mailman/listinfo/rtems-devel
More information about the devel
mailing list