Fix compilation errors with libstdc++v3 for AVR target and allow --enable-libstdcxx

Felipe Magno de Almeida felipe.m.almeida@gmail.com
Fri Sep 16 06:37:00 GMT 2016


Hello,

Another patch.

On Fri, Sep 16, 2016 at 2:53 AM, Felipe Magno de Almeida
<felipe.m.almeida@gmail.com> wrote:
> On Fri, Sep 16, 2016 at 2:42 AM, Marc Glisse <marc.glisse@inria.fr> wrote:
>> On Thu, 15 Sep 2016, Felipe Magno de Almeida wrote:
>>
>> +               || sizeof(uint32_t) == sizeof(void*)
>> +                || sizeof(uint16_t) == sizeof(void*),
>>
>> Indentation is off?
>>
>>> Call _M_extract_* functions family through temporary int objects
>>
>>
>> Would it make sense to use a template type instead of int for this
>> parameter? Or possibly have a typedef that defaults to int (what POSIX
>> requires). The hard case would be a libc that uses bitfields for the fields
>> of struct tm (that could save some space), but I don't think anyone does
>> that.
>
> I've tried both approaches. Templates were causing problems of not
> defined instantations because they were being used as ints too
> in other _M_extract functions through a tmp integer. And typedef's
> caused the same problem of having to use a tmp value of the right
> type but for example _M_extract_wday_or_month could not have the
> same type (in AVR they do) and I'd have to use a temporary anyway
> then.
>
> This was the least intrusive way.
>
>>> float pointing
>>
>> floating point?
>
> :D. Yes.
>
>> A ChangeLog entry would also help.
>
> OK.
>
>> --
>> Marc Glisse
>
> Regards,
> --
> Felipe Magno de Almeida



-- 
Felipe Magno de Almeida
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-libstdc++-compilation-for-avr.patch
Type: text/x-diff
Size: 11948 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20160916/9a157a20/attachment.bin>


More information about the Libstdc++ mailing list