Commit Graph

16 Commits

Author SHA1 Message Date
Chris Metcalf
64d76ca064 tilegx: small performance fix for string routines
We were multiplying a byte by 0x0101010101010101ULL to create a
constant for SIMD ops, but the compiler isn't good at optimizing
this case (the fact that one operand is a byte is lost by the time
it would be possible to do the optimization).  So instead we add
a helper routine that explicitly uses SIMD ops to create the constant.
2012-05-14 15:46:12 -04:00
Chris Metcalf
575298fcd2 tile: allow memcpy(p, p, n) without corrupting memory at "p"
Although this is not required by the definition of memcpy(),
in practice this sort of thing does happen, and it's easy to make
the code robust by doing nothing in this case.  (Since structure
copy causes the compiler to emit a memcpy, in the case where the
target structure is the same as the destination, we were seeing
corruption.)
2012-05-14 15:46:12 -04:00
Chris Metcalf
cbf92fc466 tile: avoid using _LP64
The convention is to use __WORDSIZE everywhere.  I happened to
notice that we weren't doing this in __tls_get_addr.S.
2012-05-14 15:46:11 -04:00
Chris Metcalf
9b7108251c tile: support stackguard-macros.h header 2012-05-14 15:46:11 -04:00
Chris Metcalf
2a99f85fe3 tile: remove stale #define of ELF_MACHINE_PLTREL_OVERLAP 2012-05-14 15:46:11 -04:00
Chris Metcalf
87df4a4b09 tile: update pthread_attr_t and struct siginfo names
This adds a tag to the pthread_attr_t underlying type so we can
forward-declare it, and removes the siginfo_t type, to match
changes in the main tree.
2012-05-14 15:46:08 -04:00
Chris Metcalf
538c451b2b tile: Remove elf/ and create crti.S/crtn.S
This patches fixes up the tile startup files, moving elf/start.S up a
directory level and implementing the required crti.S and crtn.S files
based on the old initfini.c compiler output (hand-optimized to bum a
couple of cycles).
2012-05-14 15:34:04 -04:00
Mike Frysinger
cde9262435 tile: update _itoa.h include path
Common code moved _itoa.h necessitating a change in the #include path.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-04-15 12:09:17 -04:00
Richard Henderson
ed7e7d46e9 Use include_next to chain math_private.h headers. 2012-03-09 16:28:42 -08:00
Paul Eggert
ab84e3ff9c Replace FSF snail mail address by URL. 2012-03-09 23:56:38 +00:00
Chris Metcalf
5dfe919c9f tile: use const instead of __const. 2012-01-31 11:46:09 -05:00
Chris Metcalf
975e4ecfd4 tile: use <feedback.h> instead of <feedback-asm.h> in sysdep.h. 2012-01-31 11:26:00 -05:00
Chris Metcalf
1353ed1385 tile: Ignore feraiseexcept() internally. 2012-01-31 09:00:29 -05:00
Chris Metcalf
3d31999a90 Don't check HAVE_ELF or NO_UNDERSCORES in sysdeps/tile/sysdep.h. 2012-01-31 09:00:28 -05:00
Joseph Myers
647b14570e Update tile files for removal of ia64 from libc. 2012-01-07 16:53:16 +00:00
Chris Metcalf
63d143a25d Add sysdeps/tile, sysdeps/unix/sysv/linux/tile.
Changes are tracked in ChangeLog.tile.
Also add data/c++-types-tile-linux-gnu.data.
2011-12-03 21:14:25 -05:00