Changeset 6419c6e in mainline


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.

Location:
uspace/lib/c/arch
Files:
3 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"
  • uspace/lib/c/arch/mips32/include/libarch/tls.h

    rda680b4b r6419c6e  
    6767static inline void __tcb_set(tcb_t *tcb)
    6868{
    69         void *tp = tcb;
     69        char *tp = (char *) tcb;
    7070        tp += MIPS_TP_OFFSET + sizeof(tcb_t);
    7171
     
    7575static inline tcb_t *__tcb_get(void)
    7676{
    77         void *retval;
     77        char *retval;
    7878
    7979        asm volatile ("add %0, $27, $0" : "=r" (retval));
  • uspace/lib/c/arch/ppc32/include/libarch/tls.h

    rda680b4b r6419c6e  
    4646static inline void __tcb_set(tcb_t *tcb)
    4747{
    48         void *tp = tcb;
     48        char *tp = (char *) tcb;
    4949        tp += PPC_TP_OFFSET + sizeof(tcb_t);
    5050
     
    5858static inline tcb_t *__tcb_get(void)
    5959{
    60         void *retval;
     60        char *retval;
    6161
    6262        asm volatile (
Note: See TracChangeset for help on using the changeset viewer.