Changeset 954c024 in mainline


Ignore:
Timestamp:
2018-09-05T21:40:34Z (6 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f8048d1
Parents:
79b39d0
git-author:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-08-03 15:27:05)
git-committer:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-09-05 21:40:34)
Message:

Get rid of libsoftint and libsoftfloat in favor of using upstream libgcc.

Files:
31 deleted
14 edited

Legend:

Unmodified
Added
Removed
  • HelenOS.config

    r79b39d0 r954c024  
    8484! [PLATFORM=sparc64&MACHINE=generic] PROCESSOR (choice)
    8585
     86% Quad float type
     87@ "hard" Hardware
     88@ "soft" Software
     89! [PLATFORM=sparc64] QUADFLOAT (choice)
     90
    8691% CPU type
    8792@ "cortex_a8" ARM Cortex A-8
  • boot/Makefile.common

    r79b39d0 r954c024  
    151151ifeq ($(CONFIG_DEVEL_FILES), y)
    152152        RD_LIBS += \
    153                 $(USPACE_PATH)/lib/c/libc.a \
    154                 $(USPACE_PATH)/lib/softint/libsoftint.a \
    155                 $(USPACE_PATH)/lib/softfloat/libsoftfloat.a
     153                $(USPACE_PATH)/lib/c/libc.a
    156154endif
    157155
     
    159157        RD_LIBS += \
    160158                $(USPACE_PATH)/lib/c/libc.so.0 \
    161                 $(USPACE_PATH)/lib/softint/libsoftint.so.0 \
    162159                $(USPACE_PATH)/lib/math/libmath.so.0 \
    163160                $(USPACE_PATH)/lib/dltest/libdltest.so.0
  • defaults/sparc64/niagara/Makefile.config

    r79b39d0 r954c024  
    44# CPU type
    55PROCESSOR = sun4v
     6
     7# Quad Floats
     8QUADFLOAT = hard
    69
    710# Support for SMP
  • defaults/sparc64/ultra/Makefile.config

    r79b39d0 r954c024  
    55PROCESSOR = us
    66
     7# Quad Floats
     8QUADFLOAT = hard
     9
    710# Barebone build with essential binaries only
    811CONFIG_BAREBONE = y
  • kernel/arch/amd64/Makefile.inc

    r79b39d0 r954c024  
    3232
    3333FPU_NO_CFLAGS = -mno-sse -mno-sse2
     34
     35# TODO: Red Zone is only a problem if we allow interrupts to land on an active
     36#       stack. Using separate stack for interrupts and ensuring that we never
     37#       enable interrupts on an interrupt stack would allow us to get rid of
     38#       the argument.
     39
    3440COMMON_CFLAGS += -mcmodel=$(MEMORY_MODEL) -mno-red-zone -fno-unwind-tables -fno-omit-frame-pointer
    3541
  • kernel/arch/arm32/Makefile.inc

    r79b39d0 r954c024  
    3333ATSIGN = %
    3434
    35 COMMON_CFLAGS += -fno-omit-frame-pointer -mapcs-frame -march=$(subst _,-,$(PROCESSOR_ARCH)) -mno-unaligned-access -mfpu=vfpv3
     35COMMON_CFLAGS += -fno-omit-frame-pointer -mapcs-frame -mcpu=$(subst _,-,$(PROCESSOR)) -mno-unaligned-access -mfpu=vfpv3
    3636
    3737ifeq ($(CONFIG_FPU),y)
  • uspace/Makefile

    r79b39d0 r954c024  
    218218        lib/c \
    219219        lib/cpp \
    220         lib/softint \
    221         lib/softfloat \
    222220        lib/untar
    223221
     
    290288        $(MAKE) -r -C $(@D) deps.mk SELF_TARGET="$(@D).build"
    291289
    292 # Special case for base libraries.
    293 lib/c.build: lib/softfloat.build lib/softint.build
    294 
    295290$(BUILDS): $(BASE_BUILDS)
    296291
  • uspace/Makefile.common

    r79b39d0 r954c024  
    105105LIBCPP_PREFIX = $(LIB_PREFIX)/cpp
    106106LIBCPP_INCLUDES_FLAGS = -I$(LIBCPP_PREFIX)/include
    107 
    108 LIBSOFTFLOAT_PREFIX = $(LIB_PREFIX)/softfloat
    109 LIBSOFTINT_PREFIX = $(LIB_PREFIX)/softint
    110107
    111108LIBDLTEST_PREFIX = $(LIB_PREFIX)/dltest
     
    144141endif
    145142
    146 BASE_LIBS += $(LIBSOFTFLOAT_PREFIX)/libsoftfloat.a $(LIBSOFTINT_PREFIX)/libsoftint.a
     143BASE_LIBS += -lgcc
    147144
    148145ifneq ($(LINK_DYNAMIC),y)
  • uspace/app/tester/Makefile

    r79b39d0 r954c024  
    3030USPACE_PREFIX = ../..
    3131
    32 # TODO: softfloat testing should be done via unit tests.
    33 LIBS = block softfloat drv math
    34 EXTRA_CFLAGS = -I$(LIBSOFTFLOAT_PREFIX)
     32LIBS = block drv math
    3533
    3634BINARY = tester
     
    5755        float/float1.c \
    5856        float/float2.c \
    59         float/softfloat1.c \
    6057        vfs/vfs1.c \
    6158        ipc/ping_pong.c \
  • uspace/app/tester/tester.c

    r79b39d0 r954c024  
    6565#include "float/float1.def"
    6666#include "float/float2.def"
    67 #include "float/softfloat1.def"
    6867#include "vfs/vfs1.def"
    6968#include "ipc/ping_pong.def"
  • uspace/app/tester/tester.h

    r79b39d0 r954c024  
    9797extern const char *test_float1(void);
    9898extern const char *test_float2(void);
    99 extern const char *test_softfloat1(void);
    10099extern const char *test_vfs1(void);
    101100extern const char *test_ping_pong(void);
  • uspace/lib/c/arch/arm32/src/eabi.S

    r79b39d0 r954c024  
    3535        mov pc, lr
    3636FUNCTION_END(__aeabi_read_tp)
    37 
    38 FUNCTION_BEGIN(__aeabi_idiv)
    39         push {lr}
    40         bl __divsi3
    41         pop {lr}
    42         mov pc, lr
    43 FUNCTION_END(__aeabi_idiv)
    44 
    45 FUNCTION_BEGIN(__aeabi_uidiv)
    46         push {lr}
    47         bl __udivsi3
    48         pop {lr}
    49         mov pc, lr
    50 FUNCTION_END(__aeabi_uidiv)
    51 
    52 FUNCTION_BEGIN(__aeabi_idivmod)
    53         push {lr}
    54         sub sp, sp, #12
    55         add r2, sp, #4
    56         bl __udivmodsi3
    57         ldr r1, [sp, #4]
    58         add sp, sp, #12
    59         pop {lr}
    60         mov pc, lr
    61 FUNCTION_END(__aeabi_idivmod)
    62 
    63 FUNCTION_BEGIN(__aeabi_uidivmod)
    64         push {lr}
    65         sub sp, sp, #12
    66         add r2, sp, #4
    67         bl __udivmodsi3
    68         ldr r1, [sp, #4]
    69         add sp, sp, #12
    70         pop {lr}
    71         mov pc, lr
    72 FUNCTION_END(__aeabi_uidivmod)
    73 
    74 FUNCTION_BEGIN(__aeabi_ldivmod)
    75         push {lr}
    76         sub sp, sp, #24
    77         push {sp}
    78         bl __divmoddi3
    79         add sp, sp, #4
    80         pop {r2, r3}
    81         add sp, sp, #16
    82         pop {lr}
    83         mov pc, lr
    84 FUNCTION_END(__aeabi_ldivmod)
    85 
    86 FUNCTION_BEGIN(__aeabi_uldivmod)
    87         push {lr}
    88         sub sp, sp, #24
    89         push {sp}
    90         bl __udivmoddi3
    91         add sp, sp, #4
    92         pop {r2, r3}
    93         add sp, sp, #16
    94         pop {lr}
    95         mov pc, lr
    96 FUNCTION_END(__aeabi_uldivmod)
  • uspace/lib/c/arch/sparc64/Makefile.common

    r79b39d0 r954c024  
    3333endif
    3434
    35 COMMON_CFLAGS += -m64 -mcmodel=medlow
     35COMMON_CFLAGS += -m64 -mcmodel=medlow -mhard-float -m$(QUADFLOAT)-quad-float
    3636
    3737LDFLAGS += -Wl,-no-check-sections,--gc-sections
  • uspace/lib/posix/Makefile

    r79b39d0 r954c024  
    4040        ../math/libmath.a \
    4141        ../clui/libclui.a \
    42         $(LIBSOFTFLOAT_PREFIX)/libsoftfloat.a \
    43         $(LIBSOFTINT_PREFIX)/libsoftint.a \
    4442        $(LIBC_PREFIX)/libc.a \
    4543        $(LIBC_PREFIX)/crt0.o \
     
    9391
    9492EXPORT_LDLIBS = \
    95         -Wl,--start-group -lposix -lmath -lc -lsoftfloat -lsoftint -Wl,--end-group
     93        -Wl,--start-group -lposix -lmath -lc -lgcc -Wl,--end-group
    9694
    9795EXPORT_CFLAGS = \
Note: See TracChangeset for help on using the changeset viewer.