gcc/include
Andi Kleen 6e9bd0f898 [PATCH] Report LTO phase in lto1 process name v2
On larger parallel WHOPR builds I find it useful to see in top which
phase a given lto1 is in.

Set the process name to lto1-wpa, lto1-ltrans, lto1-lto depending
on the current mode.

This is currently only implemented for Linux and only
using the "comm" process name, which is reported in top.

v2: Moved function to libiberty, renamed setproctitle to match
BSD. In theory it should pick up BSD's libc function for this
on a BSD system, but I haven't tested this.

gcc/lto/

2010-10-06  Andi Kleen <ak@linux.intel.com>

	* lto.c (lto_process_name): Add.
	(lto_main): Call lto_process_name.

include/

2010-10-06  Andi Kleen <ak@linux.intel.com>

	* libiberty.h (setproctitle): Add prototype.

libiberty/

2010-10-06  Andi Kleen <ak@linux.intel.com>

	* Makefile.in (CFILES): Add setproctitle.
	(CONFIGURED_OFILES): Add setproctitle.
	(setproctitle): Add rule.
	* config.in: Regenerate.
	* configure: Regenerate.
	* configure.ac: Add checks for prctl PR_SET_NAME and setproctitle.
	* setproctitle.c: Add file.
	* functions.texi: Regenerate.

From-SVN: r165066
2010-10-06 22:02:58 +00:00
..
COPYING Update the address and phone number of the FSF organization. 2005-05-10 15:22:21 +00:00
COPYING3 COPYING_v3: New file. 2007-07-17 08:37:53 +00:00
ChangeLog [PATCH] Report LTO phase in lto1 process name v2 2010-10-06 22:02:58 +00:00
ChangeLog-9103 Convert ChangeLog files to UTF-8. 2008-09-05 13:07:45 +02:00
ansidecl.h re PR bootstrap/41771 (Bootstrap with Sun Studio 12.1 fails) 2010-01-05 17:14:30 +00:00
demangle.h re PR c++/12909 (ambiguity in mangling vector types) 2010-02-03 15:42:35 -05:00
dwarf2.h rtl.def (DEBUG_IMPLICIT_PTR): New rtl code. 2010-09-09 08:43:47 +02:00
dyn-string.h ansidecl.h: Add extern "C" when compiling with C++. 2009-06-01 05:47:20 +00:00
fibheap.h ansidecl.h: Add extern "C" when compiling with C++. 2009-06-01 05:47:20 +00:00
filenames.h * filenames.h (PATH_SEPARATOR): Delete. 2010-04-26 17:43:53 +00:00
floatformat.h floatformat.h (floatformat_ieee_half_big): Add declaration. 2010-07-06 13:00:59 +00:00
fnmatch.h Update the address and phone number of the FSF organization. 2005-05-10 15:22:21 +00:00
getopt.h Update the address and phone number of the FSF organization. 2005-05-10 15:22:21 +00:00
hashtab.h utils.c (init_gnat_to_gnu): Use typed GC allocation. 2010-06-08 07:25:24 +00:00
libiberty.h [PATCH] Report LTO phase in lto1 process name v2 2010-10-06 22:02:58 +00:00
lto-symtab.h Merge lto branch into trunk. 2009-10-03 17:10:11 -04:00
md5.h Fix this patch: 2008-03-25 00:19:55 +00:00
objalloc.h Update the address and phone number of the FSF organization. 2005-05-10 15:22:21 +00:00
obstack.h obstack.h (obstack_finish <!__GNUC__>): Cast result to void *. 2008-10-21 09:33:03 +10:30
partition.h Update the address and phone number of the FSF organization. 2005-05-10 15:22:21 +00:00
plugin-api.h plugin-api.h (ld_plugin_set_extra_library_path): New. 2010-06-21 21:14:46 +00:00
safe-ctype.h safe-ctype.h: Add #include of ctype.h before redefining the ctype.h macros. 2008-07-07 17:08:21 +00:00
sha1.h Update copyright notice to use GPLv3. 2010-04-20 08:36:39 +00:00
sort.h Update the address and phone number of the FSF organization. 2005-05-10 15:22:21 +00:00
splay-tree.h utils.c (init_gnat_to_gnu): Use typed GC allocation. 2010-06-08 07:25:24 +00:00
symcat.h * symcat.h (CONCAT5, CONCAT6, XCONCAT5, XCONCAT6): Define. 2010-03-23 15:58:01 +00:00
xregex.h xregex.h (_REGEX_RE_COMP): Define. 2001-08-02 19:23:47 -04:00
xregex2.h xregex2.h (regexec): Qualify this prototype with __extension__ when compiling with GNU C. 2005-07-12 14:39:07 +10:00
xtensa-config.h MAINTAINERS (CPU Port Maintainers): Add myself for xtensa port. 2010-05-26 17:36:37 +00:00