11e78e4c66
Put __attribute__((noreturn)) for declartions of function pointers
...
Clang needs this change.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@103 eb4d4688-79bd-11dd-afb4-1d65580434c0
2012-01-12 07:45:39 +00:00
6232847ecb
Fix __sync_val_compare_and_swap detection
...
We should use the second argument of AC_TRY_LINK.
Otherwise, the main function defined twice and this test does never succeed.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@102 eb4d4688-79bd-11dd-afb4-1d65580434c0
2012-01-12 06:15:52 +00:00
6febec361e
Define GLOG_ prefixed log severities
...
Users can control if usual log severity values will be defined by
GLOG_NO_ABBREVIATED_SEVERITIES.
For http://code.google.com/p/google-glog/issues/detail?id=105
git-svn-id: https://google-glog.googlecode.com/svn/trunk@101 eb4d4688-79bd-11dd-afb4-1d65580434c0
2012-01-11 09:17:04 +00:00
8a4c1663e3
Make public headers "warnings clean" in the sense of -Wall -Wextra -Wshadow
...
-Werror. Fixes issue 98.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@100 eb4d4688-79bd-11dd-afb4-1d65580434c0
2011-12-29 12:40:48 +00:00
d8944b1743
Fix logging_striplog_test.sh in debug mode. Fixes issue 108.
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@99 eb4d4688-79bd-11dd-afb4-1d65580434c0
2011-12-29 12:36:09 +00:00
5a05c30365
Remove assumptions about function size in stacktrace_unittest.cc, which do not
...
hold when using certain compiler settings (for example, -O3 -g2 with GCC).
Fixes issue 107.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@98 eb4d4688-79bd-11dd-afb4-1d65580434c0
2011-12-28 15:45:05 +00:00
ac3e918969
Suppress warnings around return value of write and symlink.
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@97 eb4d4688-79bd-11dd-afb4-1d65580434c0
2011-09-05 08:00:43 +00:00
c2cbc763ed
Destruct global objects in ShutdownGoogleLogging
...
http://code.google.com/p/google-glog/issues/detail?id=69
git-svn-id: https://google-glog.googlecode.com/svn/trunk@96 eb4d4688-79bd-11dd-afb4-1d65580434c0
2011-09-05 08:00:01 +00:00
b1afbe7b3c
Add google:: prefixes for COUNTER in glog's document
...
http://code.google.com/p/google-glog/issues/detail?id=92
git-svn-id: https://google-glog.googlecode.com/svn/trunk@95 eb4d4688-79bd-11dd-afb4-1d65580434c0
2011-09-05 07:58:38 +00:00
54421697f4
Create a new log files after pid has changed
...
http://code.google.com/p/google-glog/issues/detail?id=51
http://code.google.com/p/google-glog/issues/detail?id=74
http://code.google.com/p/google-glog/issues/detail?id=82
git-svn-id: https://google-glog.googlecode.com/svn/trunk@94 eb4d4688-79bd-11dd-afb4-1d65580434c0
2011-09-05 07:56:21 +00:00
204ef03af8
Add files left behind by certain tests to CLEANFILES.
...
Remove autogen.sh, since you can just use autoreconf instead.
Ran autoreconf and fixed a couple of issues that popped up in
configure.ac and m4/ac_rwlock.m4. This updates the configuration
files to automake/aclocal 1.11.1 (from 1.10.1) and to autoconf 2.65
(from 2.61).
git-svn-id: https://google-glog.googlecode.com/svn/trunk@93 eb4d4688-79bd-11dd-afb4-1d65580434c0
2011-05-11 02:47:46 +00:00
3ae5baa10b
Reduce stack consumption for Demangle(). Fixes issue 81.
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@92 eb4d4688-79bd-11dd-afb4-1d65580434c0
2011-02-25 14:33:28 +00:00
0b4dcd23ac
Add partial C++0x support and recognition of GCC function clone suffixes to
...
demangle.cc. Fixes issue 80.
Make svn ignore autom4te.cache.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@91 eb4d4688-79bd-11dd-afb4-1d65580434c0
2011-02-07 14:43:05 +00:00
1e86eecaf6
Minor message update.
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@90 eb4d4688-79bd-11dd-afb4-1d65580434c0
2010-06-15 07:04:56 +00:00
6aa35189f5
Release 0.3.1.
...
This line, and those below, will be ignored--
M configure
M ChangeLog
M configure.ac
M packages/deb/changelog
git-svn-id: https://google-glog.googlecode.com/svn/trunk@89 eb4d4688-79bd-11dd-afb4-1d65580434c0
2010-06-15 06:30:24 +00:00
858a11d4e3
Add ShutdownGoogleLogging to close syslog.
...
This patch was contributed by DGunchev (thanks!)
http://code.google.com/p/google-glog/issues/detail?id=28
git-svn-id: https://google-glog.googlecode.com/svn/trunk@88 eb4d4688-79bd-11dd-afb4-1d65580434c0
2010-06-15 06:28:38 +00:00
b52f3fe2e4
s/ASSERT_EQ/CHECK_EQ/ .
...
We are not using gtests' ASSERT_* in our unittests.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@87 eb4d4688-79bd-11dd-afb4-1d65580434c0
2010-06-15 04:45:46 +00:00
c83adaa87d
Use sys/ucontext.h when it is found. Snow leopard needs this.
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@86 eb4d4688-79bd-11dd-afb4-1d65580434c0
2010-06-15 04:12:19 +00:00
1f8dac87fc
Move TEST_SRC_DIR from googletest.h to config.h.
...
Now test passes out side tree.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@85 eb4d4688-79bd-11dd-afb4-1d65580434c0
2010-05-28 03:56:29 +00:00
f31f51085c
Improve libunwind detection.
...
http://code.google.com/p/google-glog/issues/detail?id=42
git-svn-id: https://google-glog.googlecode.com/svn/trunk@84 eb4d4688-79bd-11dd-afb4-1d65580434c0
2010-05-28 03:45:27 +00:00
9e15c473b7
Add DCHECK_NOTNULL macro to logging.h (points to CHECK_NOTNULL in debug mode)
...
http://code.google.com/p/google-glog/issues/detail?id=25
git-svn-id: https://google-glog.googlecode.com/svn/trunk@83 eb4d4688-79bd-11dd-afb4-1d65580434c0
2010-05-28 03:43:29 +00:00
b2704e9f07
Add __extension__ for GCC's statement expression.
...
http://code.google.com/p/google-glog/issues/detail?id=31
git-svn-id: https://google-glog.googlecode.com/svn/trunk@82 eb4d4688-79bd-11dd-afb4-1d65580434c0
2010-05-28 03:32:50 +00:00
85f35499a7
Add some more google:: namespaces.
...
http://code.google.com/p/google-glog/issues/detail?id=40
git-svn-id: https://google-glog.googlecode.com/svn/trunk@81 eb4d4688-79bd-11dd-afb4-1d65580434c0
2010-05-28 03:31:14 +00:00
e912f200f0
Fix --enable-frame-pointers.
...
http://code.google.com/p/google-glog/issues/detail?id=44
git-svn-id: https://google-glog.googlecode.com/svn/trunk@80 eb4d4688-79bd-11dd-afb4-1d65580434c0
2010-05-28 03:28:41 +00:00
eb80cb0af5
Add information about the conflict with windows.h into our document.
...
http://code.google.com/p/google-glog/issues/detail?id=33
git-svn-id: https://google-glog.googlecode.com/svn/trunk@79 eb4d4688-79bd-11dd-afb4-1d65580434c0
2010-05-28 03:21:44 +00:00
65e631e038
The test for gflags works correctly on OpenBSD.
...
http://code.google.com/p/google-glog/issues/detail?id=49
git-svn-id: https://google-glog.googlecode.com/svn/trunk@78 eb4d4688-79bd-11dd-afb4-1d65580434c0
2010-05-28 03:12:15 +00:00
98b018f44b
test binaries are in the builddir, not the top_srcdir
...
http://codereview.appspot.com/989043/show
git-svn-id: https://google-glog.googlecode.com/svn/trunk@77 eb4d4688-79bd-11dd-afb4-1d65580434c0
2010-05-14 21:45:05 +00:00
cb35010215
Use GLOG_* environment variables even when gflags is installed.
...
Define GLOG_DEFINE_*, which checks if the GLOG_* environment variable
is defined. If defined, GLOG_DEFINE_* passes the value and otherwise,
it passes the original default value. In this way, GLOG_DEFINE_* macro
uses the value specified by gflags first, then GLOG_* environment
variables, and finally it uses the default value if neither of them are
specified.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@76 eb4d4688-79bd-11dd-afb4-1d65580434c0
2010-01-20 07:39:18 +00:00
327359662c
Handle ucontext.h properly in Snow leopard.
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@75 eb4d4688-79bd-11dd-afb4-1d65580434c0
2010-01-18 06:15:33 +00:00
b71aa94381
Fix compilation error with -DNDEBUG.
...
This bug is reported in
http://code.google.com/p/google-glog/issues/detail?id=19
git-svn-id: https://google-glog.googlecode.com/svn/trunk@74 eb4d4688-79bd-11dd-afb4-1d65580434c0
2009-11-11 09:07:47 +00:00
effef71e00
Use numeric_limits instead of SSIZE_MAX.
...
It seems a version of arm-linux-gcc doesn't have this symbol.
http://code.google.com/p/google-glog/issues/detail?id=18
git-svn-id: https://google-glog.googlecode.com/svn/trunk@73 eb4d4688-79bd-11dd-afb4-1d65580434c0
2009-11-11 09:06:51 +00:00
90e7825e55
Use intptr_t instead of int to cast from char* for Snow Leopard.
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@72 eb4d4688-79bd-11dd-afb4-1d65580434c0
2009-10-07 08:52:14 +00:00
7e610f65f5
Release 0.3.0.
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@71 eb4d4688-79bd-11dd-afb4-1d65580434c0
2009-07-31 05:27:23 +00:00
7e54f5ab11
Make the order of check for OS_WINDOWS|OS_CYGWIN and HAVE_PTHREAD consistent.
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@70 eb4d4688-79bd-11dd-afb4-1d65580434c0
2009-07-31 05:25:27 +00:00
1b5a90b691
Cast from pthread_t to pid_t via uintptr_t.
...
On 64bit NetBSD, pthread_t is a pointer and pid_t is an integer so
we cannot cast from pthread_t to pid_t directoly due to difference of
their size.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@69 eb4d4688-79bd-11dd-afb4-1d65580434c0
2009-07-30 10:45:13 +00:00
9495564423
Call glog_internal_namespace_::ProgramInvocationShortName() explicitly.
...
Otherwise, we may call google::ProgramInvocationShortName() in gflags.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@68 eb4d4688-79bd-11dd-afb4-1d65580434c0
2009-07-30 10:43:50 +00:00
5bf76bb4d5
Avoid warning for type punning like
...
src/logging_unittest.cc:591: warning: dereferencing type-punned pointer will break strict-aliasing rules
As we'll never dereference the casted pointers, it's OK to silence this warning.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@67 eb4d4688-79bd-11dd-afb4-1d65580434c0
2009-07-30 10:42:59 +00:00
fcbeeb9f35
Fix posix_strerror_r for OpenBSD.
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@66 eb4d4688-79bd-11dd-afb4-1d65580434c0
2009-07-30 05:51:28 +00:00
f028227fa3
Define DumpPCAndSymbol() only when HAVE_SYMBOLIZE is defined.
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@65 eb4d4688-79bd-11dd-afb4-1d65580434c0
2009-07-29 09:11:48 +00:00
d712e2084a
Fix user name detection for Windows.
...
This patch was given by ademin (thanks!).
http://code.google.com/p/google-glog/issues/detail?id=12
git-svn-id: https://google-glog.googlecode.com/svn/trunk@64 eb4d4688-79bd-11dd-afb4-1d65580434c0
2009-07-29 08:38:20 +00:00
fc88a722eb
Suppress warnings.
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@63 eb4d4688-79bd-11dd-afb4-1d65580434c0
2009-07-29 08:37:32 +00:00
b35305f1ab
Initializes the length of machine name properly.
...
This fix was suggested at (thanks!)
http://code.google.com/p/google-glog/issues/detail?id=9
git-svn-id: https://google-glog.googlecode.com/svn/trunk@62 eb4d4688-79bd-11dd-afb4-1d65580434c0
2009-07-29 07:34:28 +00:00
2c28a49394
Regression: Add NOGDI and NOMINMAX macros before including windows.h.
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@61 eb4d4688-79bd-11dd-afb4-1d65580434c0
2009-07-27 08:13:30 +00:00
c24b607748
Use internal namespace instead of anonymous namespace for Mutex.
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@60 eb4d4688-79bd-11dd-afb4-1d65580434c0
2009-07-27 05:42:23 +00:00
70cb94e244
Add cast for pthread_self() to avoid warning.
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@59 eb4d4688-79bd-11dd-afb4-1d65580434c0
2009-07-27 05:31:23 +00:00
d96287aa28
Add virtual ~Thread() to avoid warnings.
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@58 eb4d4688-79bd-11dd-afb4-1d65580434c0
2009-07-27 05:30:39 +00:00
ac63dd1f58
Add OS_NETBSD macro.
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@57 eb4d4688-79bd-11dd-afb4-1d65580434c0
2009-07-27 05:29:58 +00:00
8c4e3a9238
Suppress warnings. Most of this patch was given by keir (thanks!).
...
Corresponding glog bug: http://code.google.com/p/google-glog/issues/detail?id=10
The differences from keir's patch are:
- For raw_logging.h.in, I just included time.h for struct tm.
- Added a fprintf which warns that we should have died to avoid a warning for unused local variable.
- Added inline for some functions which may be unused in googletest.h.
- Removed DumpPCAndFrameSize as it was unused.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@56 eb4d4688-79bd-11dd-afb4-1d65580434c0
2009-07-08 17:19:09 +00:00
4cd8381429
Add m4/pc_from_ucontext.m4. It supports NetBSD and OpenBSD as well.
...
Also, update the version of acx_pthread.m4
git-svn-id: https://google-glog.googlecode.com/svn/trunk@55 eb4d4688-79bd-11dd-afb4-1d65580434c0
2009-07-08 15:41:38 +00:00
424c6fc5c2
Fix regression of r23.
...
http://code.google.com/p/google-glog/source/detail?r=23
git-svn-id: https://google-glog.googlecode.com/svn/trunk@54 eb4d4688-79bd-11dd-afb4-1d65580434c0
2009-07-08 15:38:35 +00:00