Ignore:
Timestamp:
2018-07-06T20:06:58Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e89a06a
Parents:
da680b4b
git-author:
Jakub Jermar <jakub@…> (2018-07-06 20:05:27)
git-committer:
Jakub Jermar <jakub@…> (2018-07-06 20:06:58)
Message:

Don't use GCC C extension in -std=c++17 code

Pointer arithmetics on void * is a GCC C extension not supported in
standard-obedient modes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/arch/arm32/include/libarch/tls.h

    rda680b4b r6419c6e  
    6060static inline void __tcb_set(tcb_t *tcb)
    6161{
    62         void *tls = (void *) tcb;
     62        char *tls = (char *) tcb;
    6363        tls += sizeof(tcb_t) + ARM_TP_OFFSET;
    6464        asm volatile (
     
    7777static inline tcb_t *__tcb_get(void)
    7878{
    79         void *ret;
     79        char *ret;
    8080        asm volatile (
    8181            "mov %0, r9"
Note: See TracChangeset for help on using the changeset viewer.