Age | Commit message (Collapse) | Author | |
---|---|---|---|
2007-01-29 | Richard Sandiford writes: | Mike Frysinger | |
However, retesting on m68k showed up a problem that had appeared in uClibc since the last time I tried. Specifically, revision 15785 did: -#define HEAP_GRANULARITY (sizeof (HEAP_GRANULARITY_TYPE)) +#define HEAP_GRANULARITY (__alignof__ (HEAP_GRANULARITY_TYPE)) -#define MALLOC_ALIGNMENT (sizeof (double)) +#define MALLOC_ALIGNMENT (__alignof__ (double)) The problem is that (a) MALLOC_HEADER_SIZE == MALLOC_ALIGNMENT (b) the header contains a size value of type size_t (c) sizeof (size_t) is 4 on m68k, but... (d) __alignof__ (double) is only 2 (the largest alignment used on m68k) So we only allocate 2 bytes for the 4-byte header, and the least significant 2 bytes of the size are in the user's area rather than the header. The patch below fixes that problem by redefining MALLOC_HEADER_SIZE to: MAX (MALLOC_ALIGNMENT, sizeof (size_t)) (but without the help of the MAX macro ;)). However, we really would like to have word alignment on Coldfire. It makes a big performance difference, and because we have to allocate a 4-byte header anyway, what wastage there is will be confined to the end of the allocated block. Any wastage will also be limited to 2 bytes per allocation compared to the current alignment. I've therefore used the __aligned__ type attribute to create a double type that has at least sizeof (size_t) bytes of alignment. I've introduced a new __attribute_aligned__ macro for this. It might seem silly protecting against old or non-GNU compilers here, but the extra alignment is only an optimisation, and having the macro is more in the spirit of the other attribute code. | |||
2007-01-29 | - s/if USE___THREAD/if defined USE___THREAD && USE___THREAD/g | Bernhard Reutner-Fischer | |
2007-01-29 | - see if defined foo before trying to look at the value of foo (that should ↵ | Bernhard Reutner-Fischer | |
be 0 in this case. Avoids some warnings). | |||
2007-01-29 | - sync with glibc (and provide a check for icc). | Bernhard Reutner-Fischer | |
Only affects gcc <2.7 or non-gcc compilers that bailed earlier due to missing int64_t | |||
2007-01-29 | pull in unistd.h for syscall() prototype | Mike Frysinger | |
2007-01-29 | use ifdef rather than if for stack direction | Mike Frysinger | |
2007-01-29 | fix from Atsushi Nemoto for displaying of 64bit types | Mike Frysinger | |
2007-01-29 | fix from Roman Kononov for reading in of 64bit types | Mike Frysinger | |
2007-01-29 | make sure reading 64bit types works | Mike Frysinger | |
2007-01-29 | make sure 64bit output is correct | Mike Frysinger | |
2007-01-29 | since these functions get exported, namespace the arguments | Mike Frysinger | |
2007-01-29 | mark local function static | Mike Frysinger | |
2007-01-29 | fixup shadowed warnings | Mike Frysinger | |
2007-01-29 | mark some funcs as noreturn | Mike Frysinger | |
2007-01-29 | fixup prototype warnings | Mike Frysinger | |
2007-01-29 | check to see if __USE_FILE_OFFSET64 is defined rather than if it evaluates ↵ | Mike Frysinger | |
to true | |||
2007-01-29 | make error output a little more helpful | Mike Frysinger | |
2007-01-29 | fixup warnings | Mike Frysinger | |
2007-01-29 | fix test to work even if CPPFLAGS contains -DNDEBUG | Mike Frysinger | |
2007-01-29 | sync some fixes from glibc | Mike Frysinger | |
2007-01-29 | missed an underscore in previous commit | Mike Frysinger | |
2007-01-28 | Bernhard Fischer writes: add undef/nonnull warnings to EXTRA_WARNINGS | Mike Frysinger | |
2007-01-28 | Bernhard Fischer writes: note how uClibc chooses to handle __resolved==NULL | Mike Frysinger | |
2007-01-28 | sync with glibc as pointed out by Bernhard Fischer | Mike Frysinger | |
2007-01-28 | - commentary typo fix | Bernhard Reutner-Fischer | |
2007-01-28 | fix from Bernd Schmidt to make sure _dl_debug_state isnt optimized away and ↵ | Mike Frysinger | |
does not generate relocs | |||
2007-01-28 | as pointed out by Jocke, use "2" for actual error messages and ↵ | Mike Frysinger | |
_dl_debug_file for debug messages | |||
2007-01-28 | initial waitid() implementation | Mike Frysinger | |
2007-01-28 | need string.h for memset() | Mike Frysinger | |
2007-01-28 | note 0.9.28.1 release | Mike Frysinger | |
2007-01-28 | its a new year | Mike Frysinger | |
2007-01-28 | make sure we clear out the buffer so that random garbage on the stack doesnt ↵ | Mike Frysinger | |
screw us up | |||
2007-01-28 | Paul Brook writes: | Mike Frysinger | |
The patch below tweaks the ARM nommu startup code so that doubleword stack alignment is preserved. This is required on EABI targets. | |||
2007-01-28 | fix typo as pointed out by Tony Wu and cleanup source | Mike Frysinger | |
2007-01-28 | dont rely on random stack state to trigger this issue; force the default ↵ | Mike Frysinger | |
stat structs to alternative bit masks | |||
2007-01-28 | new test taken from stat issue with new tar | Mike Frysinger | |
2007-01-28 | use .bz2 rather than .gz | Mike Frysinger | |
2007-01-27 | fix from blackfin repo: Jie Zhang writes: update __kernel_ipc_pid_t, ↵ | Mike Frysinger | |
__kernel_uid_t and __kernel_gid_t types to match actual kernel types | |||
2007-01-27 | fix from blackfin repo: Jie Zhang writes: Passing NULL as the second ↵ | Mike Frysinger | |
argument to utimes () if the second argument to utime () is NULL as the kernel will take care of getting/setting current time | |||
2007-01-26 | - fix format of comment | Bernhard Reutner-Fischer | |
2007-01-26 | dont actually have to worry about local changes as svn export takes care of that | Mike Frysinger | |
2007-01-26 | Fix libdl bug reported by Cedric Hombourger in | Joakim Tjernlund | |
http://uclibc.org/lists/uclibc/2007-January/017165.html | |||
2007-01-24 | fix from Bryan Wu: return NULL upon error, not the NULL string | Mike Frysinger | |
2007-01-22 | Recognize _SC_MONOTONIC_CLOCK in sysconf() even if __NR_clock_getres | Peter Kjellerstedt | |
is not defined. | |||
2007-01-21 | - repair misplaced #endif that got introduced in r17410. Fixes compilation. | Bernhard Reutner-Fischer | |
2007-01-20 | Disable declarations for NPTL. | "Steven J. Hill" | |
2007-01-20 | The case for _SC_MONOTONIC_CLOCK should only exist if 'clock_getres' does. | "Steven J. Hill" | |
2007-01-20 | - Trim superfluous trailing whitespace. No obj-code changes. | Bernhard Reutner-Fischer | |
2007-01-11 | I fixed that item long ago. | Joakim Tjernlund | |
2007-01-11 | Peter Mazinger pointed out that my last commit was faulty. | Joakim Tjernlund | |
This should fix it. |