Changeset 58e7b26 in mainline
- Timestamp:
- 2018-08-31T19:10:47Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- be34d6f
- Parents:
- bbe5e34
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-04-20 18:54:48)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-08-31 19:10:47)
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/xcw/bin/helenos-cc
rbbe5e34 r58e7b26 41 41 "$CC" \ 42 42 -O3 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32LE -finput-charset=UTF-8 \ 43 - ffreestanding -fno-builtin -nostdlib -nostdinc\43 -nostdlib \ 44 44 -Wall -Wextra -Wno-clobbered -Wno-unused-parameter -Wmissing-prototypes \ 45 45 -std=gnu99 -Werror-implicit-function-declaration -Wwrite-strings -ggdb \ -
uspace/Makefile.common
rbbe5e34 r58e7b26 179 179 -O$(OPTIMIZATION) \ 180 180 -ffunction-sections \ 181 -fno-builtin-strftime \ 181 182 -pipe \ 182 183 -Wall \ 183 184 -Wextra \ 184 185 -Wno-unused-parameter \ 186 -Wno-nonnull-compare \ 185 187 -Wmissing-prototypes \ 186 188 -Wwrite-strings \ 187 189 -Werror-implicit-function-declaration 190 191 # XXX: -fno-builtin-strftime is for a seemingly spurious format warning. 188 192 189 193 ifeq ($(CONFIG_DEBUG),y) … … 211 215 # Flags that should always be used, even for third-party software. 212 216 COMMON_CPPFLAGS = \ 213 -nostdinc \214 217 -D__$(ENDIANESS)__ 215 218 216 219 COMMON_CFLAGS = \ 217 -ffreestanding \218 220 -nostdlib 219 221 -
uspace/lib/c/Makefile
rbbe5e34 r58e7b26 34 34 35 35 EXTRA_OUTPUT = $(START_FILES) 36 EXTRA_TEST_CFLAGS = -Wno-deprecated-declarations37 36 LIBRARY = libc 38 37 SOVERSION = 0.0 -
uspace/lib/c/arch/amd64/Makefile.common
rbbe5e34 r58e7b26 27 27 # 28 28 29 # TODO: We need to implement DWARF unwinding and get rid of this flag. 29 30 COMMON_CFLAGS += -fno-omit-frame-pointer 30 31 31 # XXX: clang doesn't support this flag, but the optimization is OS-specific, 32 # so it isn't used for amd64-unknown-elf target. 33 34 ifneq ($(COMPILER),clang) 35 COMMON_CFLAGS += -mno-tls-direct-seg-refs 36 endif 32 # XXX: This architecture requires unoptimized TLS pointer access, 33 # as with the GCC option `-mno-tls-direct-seg-refs`. 34 # The `amd64-helenos` target defaults to this behavior. 37 35 38 36 LDFLAGS += -Wl,--gc-sections -
uspace/lib/c/arch/ia32/Makefile.common
rbbe5e34 r58e7b26 33 33 endif 34 34 35 # XXX: This architecture requires unoptimized TLS pointer access, 36 # as with the GCC option `-mno-tls-direct-seg-refs`. 37 # The `i686-helenos` target defaults to this behavior. 38 35 39 COMMON_CFLAGS += -mno-tls-direct-seg-refs -fno-omit-frame-pointer 36 40 LDFLAGS += -Wl,--gc-sections -
uspace/lib/c/generic/stdio/sprintf.c
rbbe5e34 r58e7b26 36 36 #include <stdint.h> 37 37 #include <stdio.h> 38 #include <limits.h> 38 39 39 40 /** Print formatted to string. … … 53 54 va_list args; 54 55 va_start(args, fmt); 55 rc = vsnprintf(s, SIZE_MAX, fmt, args);56 rc = vsnprintf(s, INT_MAX, fmt, args); 56 57 va_end(args); 57 58 -
uspace/lib/c/generic/stdio/vsprintf.c
rbbe5e34 r58e7b26 36 36 #include <stdint.h> 37 37 #include <stdio.h> 38 #include <limits.h> 38 39 39 40 /** Print formatted to string with arguments passed as va_list. … … 50 51 int vsprintf(char *s, const char *fmt, va_list ap) 51 52 { 52 return vsnprintf(s, SIZE_MAX, fmt, ap);53 return vsnprintf(s, INT_MAX, fmt, ap); 53 54 } 54 55 -
uspace/lib/c/generic/time.c
rbbe5e34 r58e7b26 52 52 #include <stats.h> 53 53 54 #define ASCTIME_BUF_LEN 2 654 #define ASCTIME_BUF_LEN 27 55 55 56 56 #define HOURS_PER_DAY 24 -
uspace/lib/c/include/math.h
rbbe5e34 r58e7b26 49 49 #define M_SQRT2 1.41421356237309504880 50 50 #define M_SQRT1_2 0.70710678118654752440 51 52 /* GNU extensions, but GCC emits calls to them as an optimization. */ 53 void sincos(double, double *, double *); 54 void sincosf(float, float *, float *); 55 void sincosl(long double, long double *, long double *); 51 56 52 57 #endif -
uspace/lib/c/test/stdio/scanf.c
rbbe5e34 r58e7b26 42 42 #include <stdlib.h> 43 43 44 #pragma GCC diagnostic ignored "-Wformat-zero-length" 45 44 46 PCUT_INIT; 45 47 … … 604 606 605 607 cp = NULL; 606 rc = sscanf("abc", "% m3c", &cp);608 rc = sscanf("abc", "%3mc", &cp); 607 609 PCUT_ASSERT_INT_EQUALS(1, rc); 608 610 PCUT_ASSERT_NOT_NULL(cp); -
uspace/lib/c/test/string.c
rbbe5e34 r58e7b26 33 33 #include <pcut/pcut.h> 34 34 35 #pragma GCC diagnostic ignored "-Wstringop-truncation" 36 #pragma GCC diagnostic ignored "-Wstringop-overflow" 37 35 38 PCUT_INIT; 36 39 … … 544 547 PCUT_TEST(strpbrk_empty_string) 545 548 { 546 c har *p;549 const char *p; 547 550 548 551 p = strpbrk("", "abc"); … … 553 556 PCUT_TEST(strpbrk_empty_set) 554 557 { 555 c har *p;558 const char *p; 556 559 557 560 p = strpbrk("abc", ""); -
uspace/lib/math/generic/trig.c
rbbe5e34 r58e7b26 371 371 } 372 372 373 void sincosf(float x, float *s, float *c) 374 { 375 float base_arg = fmodf(x, 2 * M_PI); 376 377 if (base_arg < 0) { 378 *s = -base_sin_32(-base_arg); 379 *c = base_cos_32(-base_arg); 380 } else { 381 *s = base_sin_32(base_arg); 382 *c = base_cos_32(base_arg); 383 } 384 } 385 386 void sincos(double x, double *s, double *c) 387 { 388 double base_arg = fmod(x, 2 * M_PI); 389 390 if (base_arg < 0) { 391 *s = -base_sin_64(-base_arg); 392 *c = base_cos_64(-base_arg); 393 } else { 394 *s = base_sin_64(base_arg); 395 *c = base_cos_64(base_arg); 396 } 397 } 398 373 399 /** @} 374 400 */ -
uspace/lib/pcut/include/pcut/asserts.h
rbbe5e34 r58e7b26 148 148 #define PCUT_ASSERT_NULL(pointer) \ 149 149 do { \ 150 void *pcut_ptr_eval = (pointer); \150 const void *pcut_ptr_eval = (pointer); \ 151 151 if (pcut_ptr_eval != (NULL)) { \ 152 152 PCUT_ASSERTION_FAILED("Expected <" #pointer "> to be NULL, " \
Note:
See TracChangeset
for help on using the changeset viewer.