platform/upstream/glog.git
8 years agoAdd tomange to AUTHORS/CONTRIBUTORS
Fumitoshi Ukai [Thu, 6 Aug 2015 08:10:21 +0000 (17:10 +0900)]
Add tomange to AUTHORS/CONTRIBUTORS

8 years agoMerge pull request #20 from UbimoLTD/patch-1
Fumitoshi Ukai [Thu, 6 Aug 2015 08:09:02 +0000 (17:09 +0900)]
Merge pull request #20 from UbimoLTD/patch-1

Don't call RAW_VLOG with locking vmodule_lock

SetVLOGLevel locks vmodule_lock however RAW_VLOG at the end also implicitly locks it via InitVLOG3__.
This causes deadlock/segfault.

fixes #29

8 years agoMerge pull request #12 from ukai/fix_leak
Fumitoshi Ukai [Thu, 6 Aug 2015 07:57:51 +0000 (16:57 +0900)]
Merge pull request #12 from ukai/fix_leak

delete LogDestination::sinks_ at DeleteLogDestinations().

fixes #8

8 years agoAdd Sergiu Dotenco to AUTHORS/CONTRIBUTORS
Fumitoshi Ukai [Thu, 6 Aug 2015 07:55:37 +0000 (16:55 +0900)]
Add Sergiu Dotenco to AUTHORS/CONTRIBUTORS

8 years agoMerge pull request #7 from sergiud/master
Fumitoshi Ukai [Thu, 6 Aug 2015 07:53:55 +0000 (16:53 +0900)]
Merge pull request #7 from sergiud/master

Add CMake support. closes #4

8 years agoAdd Michael Tanner and tbennun to AUTORS/CONTRIBUTORS
Fumitoshi Ukai [Thu, 6 Aug 2015 07:45:44 +0000 (16:45 +0900)]
Add Michael Tanner and tbennun to AUTORS/CONTRIBUTORS

8 years agocmake: link to libunwind
Sergiu Dotenco [Tue, 21 Apr 2015 14:11:25 +0000 (16:11 +0200)]
cmake: link to libunwind

8 years agocmake: support gflags in static builds
Sergiu Dotenco [Mon, 20 Apr 2015 20:51:42 +0000 (22:51 +0200)]
cmake: support gflags in static builds

8 years agocmake: disabled 'template argument uses unnamed type' warning
Sergiu Dotenco [Fri, 27 Mar 2015 17:12:24 +0000 (18:12 +0100)]
cmake: disabled 'template argument uses unnamed type' warning

8 years agoadded missing include
Sergiu Dotenco [Thu, 26 Mar 2015 14:57:21 +0000 (15:57 +0100)]
added missing include

8 years agofixed vc 14.0 ctp 6 compilation error
Sergiu Dotenco [Thu, 26 Mar 2015 14:54:33 +0000 (15:54 +0100)]
fixed vc 14.0 ctp 6 compilation error

8 years agodetermine gflags namespace automatically
Sergiu Dotenco [Thu, 26 Mar 2015 14:52:15 +0000 (15:52 +0100)]
determine gflags namespace automatically

8 years agodo not redefine snprintf if it's already available
Sergiu Dotenco [Thu, 26 Mar 2015 14:59:00 +0000 (15:59 +0100)]
do not redefine snprintf if it's already available

8 years agodo not redefine stl logging macros
Sergiu Dotenco [Thu, 26 Mar 2015 14:58:01 +0000 (15:58 +0100)]
do not redefine stl logging macros

8 years agoallow to define TEST_SRC_DIR as a macro
Sergiu Dotenco [Thu, 26 Mar 2015 14:56:33 +0000 (15:56 +0100)]
allow to define TEST_SRC_DIR as a macro

8 years agoallow to use __declspec(noreturn)
Sergiu Dotenco [Thu, 26 Mar 2015 14:55:37 +0000 (15:55 +0100)]
allow to use __declspec(noreturn)

8 years agoexport the Demangle function
Sergiu Dotenco [Thu, 26 Mar 2015 14:50:47 +0000 (15:50 +0100)]
export the Demangle function

8 years agoadded cmake support
Sergiu Dotenco [Thu, 26 Mar 2015 14:48:56 +0000 (15:48 +0100)]
added cmake support

9 years agoUpdate vlog_is_on.cc
romange [Thu, 30 Apr 2015 17:28:32 +0000 (20:28 +0300)]
Update vlog_is_on.cc

SetVLOGLevel locks vmodule_lock however RAW_VLOG at the end also implicitly locks it via InitVLOG3__.

This causes deadlock/segfault.

9 years agoAdd Abhishek Parmar to the AUTHORS/CONTRIBUTORS files.
Pierre Phaneuf [Thu, 23 Apr 2015 10:41:53 +0000 (11:41 +0100)]
Add Abhishek Parmar to the AUTHORS/CONTRIBUTORS files.

9 years agodon't remove sinks_ elements.
Fumitoshi Ukai [Fri, 10 Apr 2015 15:05:05 +0000 (00:05 +0900)]
don't remove sinks_ elements.

9 years agoGuard GOOGLE_PREDICT_TRUE|FALS with #ifndef to avoid collision with other google...
Abhishek Parmar [Wed, 8 Apr 2015 17:19:06 +0000 (10:19 -0700)]
Guard GOOGLE_PREDICT_TRUE|FALS with #ifndef to avoid collision with other google opensource projects like protobuf.

9 years agodelete LogDestination::sinks_ at DeleteLogDestinations().
Fumitoshi Ukai [Fri, 27 Mar 2015 08:23:20 +0000 (17:23 +0900)]
delete LogDestination::sinks_ at DeleteLogDestinations().

fixes #8 AddLogSink memory leak

9 years agoMerge pull request #10 from jmr/std_vector
Fumitoshi Ukai [Fri, 27 Mar 2015 07:43:58 +0000 (16:43 +0900)]
Merge pull request #10 from jmr/std_vector

LOG_STRING: use std::vector and std::string.

9 years agoLOG_STRING: use std::vector and std::string.
Jesse Rosenstock [Thu, 26 Mar 2015 18:25:14 +0000 (14:25 -0400)]
LOG_STRING: use std::vector and std::string.

Previously, plain vector and string were used.
This assumed that there were "using" directives or
declarations before the macro was used.  This will
not always be the case.

9 years agoMerge pull request #6 from darkwind-mt/master
Fumitoshi Ukai [Thu, 26 Mar 2015 08:51:44 +0000 (17:51 +0900)]
Merge pull request #6 from darkwind-mt/master

Adds color output support for tmux terminals

9 years agoAdds color output support for tmux terminals
Michael Tanner [Mon, 23 Mar 2015 10:56:04 +0000 (10:56 +0000)]
Adds color output support for tmux terminals

9 years agoMerge pull request #2 from tbennun/master
Fumitoshi Ukai [Wed, 18 Mar 2015 05:54:40 +0000 (14:54 +0900)]
Merge pull request #2 from tbennun/master

Fix x64/Debug build on MSVS

9 years agoAdd the typical Google contributors and authors files.
Pierre Phaneuf [Mon, 16 Mar 2015 10:50:32 +0000 (10:50 +0000)]
Add the typical Google contributors and authors files.

Also add a CONTRIBUTING.md, that GitHub will link to in the pull request
creation page.

9 years agoFix x64/Debug build on MSVS
tbennun [Fri, 13 Mar 2015 05:56:59 +0000 (07:56 +0200)]
Fix x64/Debug build on MSVS

9 years agoMerge pull request #1 from ukai/release_0.3.4
Fumitoshi Ukai [Wed, 11 Mar 2015 04:02:27 +0000 (13:02 +0900)]
Merge pull request #1 from ukai/release_0.3.4

glog: release 0.3.4

9 years agoFix for "make rpm" and "make deb"
Fumitoshi Ukai [Tue, 10 Mar 2015 03:44:30 +0000 (12:44 +0900)]
Fix for "make rpm" and "make deb"

9 years agoglog: release 0.3.4
Fumitoshi Ukai [Mon, 9 Mar 2015 02:36:31 +0000 (11:36 +0900)]
glog: release 0.3.4

migrate to https://github.com/google/glog
use autoconf 2.69 / automake 1.14.1

9 years agoFixes for the latest MSVS.
<shinichiro.hamaji@gmail.com> [Tue, 19 Aug 2014 00:36:29 +0000 (00:36 +0000)]
Fixes for the latest MSVS.

- ssize_t
Since Windows does not have ssize_t, we need to include BaseTsd.h and
use SSIZE_t instead.

- include algorithm
MSVS 2013 requests developers to include algorithm when they use
std::min.

By yyanagisawa

git-svn-id: https://google-glog.googlecode.com/svn/trunk@143 eb4d4688-79bd-11dd-afb4-1d65580434c0

10 years agoAdd libc++ support
<shinichiro.hamaji@gmail.com> [Wed, 5 Mar 2014 05:20:24 +0000 (05:20 +0000)]
Add libc++ support

Similar patch was provided in

https://code.google.com/p/google-glog/issues/detail?id=121

git-svn-id: https://google-glog.googlecode.com/svn/trunk@142 eb4d4688-79bd-11dd-afb4-1d65580434c0

10 years agoBuild issues in demangle.cc
<ivanpe@chromium.com> [Sun, 2 Mar 2014 01:37:08 +0000 (01:37 +0000)]
Build issues in demangle.cc

git-svn-id: https://google-glog.googlecode.com/svn/trunk@141 eb4d4688-79bd-11dd-afb4-1d65580434c0

10 years agoAdding a callback mechanism to allow users of google.glog to provide
<ivanpe@chromium.com> [Sat, 1 Mar 2014 00:33:41 +0000 (00:33 +0000)]
Adding a callback mechanism to allow users of google.glog to provide
their own implementation of  OpenObjectFileContainingPcAndGetStartAddress.

GTTF: Make stack trace symbolization code recognize more symbols.
One example is __libc_start_main (easy to check), there may be more.

Include the correct elf header on OpenBSD and Android.

Fix Coverity NO_EFFECT defect. Comparing unsigned greater than or equal zero is always true.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@140 eb4d4688-79bd-11dd-afb4-1d65580434c0

10 years agoAdd StrError and replace posix_strerror_r calls
<shinichiro.hamaji@gmail.com> [Thu, 31 Oct 2013 05:39:43 +0000 (05:39 +0000)]
Add StrError and replace posix_strerror_r calls

For now, we do not remove the declaration of posix_strerror_r,
but we might remove it in future.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@139 eb4d4688-79bd-11dd-afb4-1d65580434c0

10 years agoFix VC build by adding GOOGLE_GLOG_DLL_DECL
<shinichiro.hamaji@gmail.com> [Thu, 31 Oct 2013 05:36:25 +0000 (05:36 +0000)]
Fix VC build by adding GOOGLE_GLOG_DLL_DECL

git-svn-id: https://google-glog.googlecode.com/svn/trunk@138 eb4d4688-79bd-11dd-afb4-1d65580434c0

10 years agoA style fix for C++11
<shinichiro.hamaji@gmail.com> [Mon, 29 Jul 2013 06:27:17 +0000 (06:27 +0000)]
A style fix for C++11

This patch is given by Nico (thanks!)

git-svn-id: https://google-glog.googlecode.com/svn/trunk@137 eb4d4688-79bd-11dd-afb4-1d65580434c0

10 years agoReduce dynamic allocation from 3 to 1 per log message
<shinichiro.hamaji@gmail.com> [Wed, 29 May 2013 14:10:49 +0000 (14:10 +0000)]
Reduce dynamic allocation from 3 to 1 per log message

This patch was contributed in

https://code.google.com/p/google-glog/issues/detail?id=131

by engel. Thanks!

git-svn-id: https://google-glog.googlecode.com/svn/trunk@136 eb4d4688-79bd-11dd-afb4-1d65580434c0

11 years agoAttempt to improve mingw-w64 support
<shinichiro.hamaji@gmail.com> [Mon, 18 Feb 2013 10:56:53 +0000 (10:56 +0000)]
Attempt to improve mingw-w64 support

- Set -Isrc/windows for mingw
- Check existence of sigaction, pread, and pwrite
- Provide alternative implementation of pread and pwrite
- Eliminate symlink code for OS_WINDOWS
- Don't check /proc/self/fd if the OS isn't linux
- Don't use MSVC specific declarations in port.h for mingw

git-svn-id: https://google-glog.googlecode.com/svn/trunk@135 eb4d4688-79bd-11dd-afb4-1d65580434c0

11 years agoSupport unordered_(map|set) by stl_logging
<shinichiro.hamaji@gmail.com> [Mon, 18 Feb 2013 10:45:46 +0000 (10:45 +0000)]
Support unordered_(map|set) by stl_logging

git-svn-id: https://google-glog.googlecode.com/svn/trunk@134 eb4d4688-79bd-11dd-afb4-1d65580434c0

11 years agoRemove .svn directory from the release archive
<shinichiro.hamaji@gmail.com> [Fri, 1 Feb 2013 06:31:49 +0000 (06:31 +0000)]
Remove .svn directory from the release archive

packages/deb is a directory and it may contain .svn

git-svn-id: https://google-glog.googlecode.com/svn/trunk@133 eb4d4688-79bd-11dd-afb4-1d65580434c0

11 years agoRelease glog 0.3.3
<shinichiro.hamaji@gmail.com> [Fri, 1 Feb 2013 06:20:46 +0000 (06:20 +0000)]
Release glog 0.3.3

git-svn-id: https://google-glog.googlecode.com/svn/trunk@132 eb4d4688-79bd-11dd-afb4-1d65580434c0

11 years agoFix Mac test failure
<shinichiro.hamaji@gmail.com> [Fri, 1 Feb 2013 05:46:37 +0000 (05:46 +0000)]
Fix Mac test failure

We need only the first line from signalhandler.out3

git-svn-id: https://google-glog.googlecode.com/svn/trunk@131 eb4d4688-79bd-11dd-afb4-1d65580434c0

11 years agoMake sure stderr is not buffered.
<shinichiro.hamaji@gmail.com> [Thu, 31 Jan 2013 04:39:54 +0000 (04:39 +0000)]
Make sure stderr is not buffered.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@130 eb4d4688-79bd-11dd-afb4-1d65580434c0

11 years agoAdd dllimport and dllexport for new symbols
<shinichiro.hamaji@gmail.com> [Thu, 31 Jan 2013 03:49:40 +0000 (03:49 +0000)]
Add dllimport and dllexport for new symbols

git-svn-id: https://google-glog.googlecode.com/svn/trunk@129 eb4d4688-79bd-11dd-afb4-1d65580434c0

11 years agoRevert http://code.google.com/p/google-glog/source/detail?r=127
<shinichiro.hamaji@gmail.com> [Thu, 31 Jan 2013 03:48:24 +0000 (03:48 +0000)]
Revert code.google.com/p/google-glog/source/detail?r=127

Casting to (void) was bad because the return value of DCHECK_NOTNULL
cannot be used.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@128 eb4d4688-79bd-11dd-afb4-1d65580434c0

11 years agoRemove warning of DCHECK_NOTNULL
<shinichiro.hamaji@gmail.com> [Fri, 25 Jan 2013 07:59:25 +0000 (07:59 +0000)]
Remove warning of DCHECK_NOTNULL

http://code.google.com/p/google-glog/issues/detail?id=87

git-svn-id: https://google-glog.googlecode.com/svn/trunk@127 eb4d4688-79bd-11dd-afb4-1d65580434c0

11 years agoDocument update: how to modify FLAGS_* in glog
<shinichiro.hamaji@gmail.com> [Fri, 25 Jan 2013 06:03:56 +0000 (06:03 +0000)]
Document update: how to modify FLAGS_* in glog

http://code.google.com/p/google-glog/issues/detail?id=70

git-svn-id: https://google-glog.googlecode.com/svn/trunk@126 eb4d4688-79bd-11dd-afb4-1d65580434c0

11 years agoMake glog ABI compatible with gflags
<shinichiro.hamaji@gmail.com> [Fri, 25 Jan 2013 05:44:43 +0000 (05:44 +0000)]
Make glog ABI compatible with gflags

The ABI incompatibility is bad when

- Build glog without gflags (glog package in most distributions doesn't
  depend on gflags)
- Use both glog and gflags

git-svn-id: https://google-glog.googlecode.com/svn/trunk@125 eb4d4688-79bd-11dd-afb4-1d65580434c0

11 years agoFollow up for the color log patch
<shinichiro.hamaji@gmail.com> [Wed, 23 Jan 2013 05:27:13 +0000 (05:27 +0000)]
Follow up for the color log patch

- Rename colorstderr => colorlogtostderr
- Remove duplicated code
- Set colorlogtostderr=0 in the unittest

git-svn-id: https://google-glog.googlecode.com/svn/trunk@124 eb4d4688-79bd-11dd-afb4-1d65580434c0

11 years agoOutput logs with colors to stderr
<shinichiro.hamaji@gmail.com> [Wed, 23 Jan 2013 05:25:56 +0000 (05:25 +0000)]
Output logs with colors to stderr

This patch is provided by

http://code.google.com/p/google-glog/issues/detail?id=48

Thanks!

git-svn-id: https://google-glog.googlecode.com/svn/trunk@123 eb4d4688-79bd-11dd-afb4-1d65580434c0

11 years agoRe-generate logging.h for windows
<shinichiro.hamaji@gmail.com> [Tue, 22 Jan 2013 09:12:56 +0000 (09:12 +0000)]
Re-generate logging.h for windows

Thanks Kamil for your report!

git-svn-id: https://google-glog.googlecode.com/svn/trunk@122 eb4d4688-79bd-11dd-afb4-1d65580434c0

11 years agoAllow users to re-initialize glog
<shinichiro.hamaji@gmail.com> [Thu, 10 Jan 2013 07:46:20 +0000 (07:46 +0000)]
Allow users to re-initialize glog

http://code.google.com/p/google-glog/issues/detail?id=83
http://code.google.com/p/google-glog/issues/detail?id=125
http://code.google.com/p/google-glog/issues/detail?id=142

git-svn-id: https://google-glog.googlecode.com/svn/trunk@121 eb4d4688-79bd-11dd-afb4-1d65580434c0

11 years agoMove LogMessageData from .h to .cc
<shinichiro.hamaji@gmail.com> [Thu, 10 Jan 2013 07:19:05 +0000 (07:19 +0000)]
Move LogMessageData from .h to .cc

git-svn-id: https://google-glog.googlecode.com/svn/trunk@120 eb4d4688-79bd-11dd-afb4-1d65580434c0

11 years agoEliminate use of strstream based on internal changes
<shinichiro.hamaji@gmail.com> [Wed, 9 Jan 2013 16:06:21 +0000 (16:06 +0000)]
Eliminate use of strstream based on internal changes

http://code.google.com/p/google-glog/issues/detail?id=110

git-svn-id: https://google-glog.googlecode.com/svn/trunk@119 eb4d4688-79bd-11dd-afb4-1d65580434c0

11 years agoFix glog/stl_logging for clang
<shinichiro.hamaji@gmail.com> [Wed, 9 Jan 2013 13:59:45 +0000 (13:59 +0000)]
Fix glog/stl_logging for clang

git-svn-id: https://google-glog.googlecode.com/svn/trunk@118 eb4d4688-79bd-11dd-afb4-1d65580434c0

11 years agoRun autoreconf on ubuntu precise
<shinichiro.hamaji@gmail.com> [Wed, 9 Jan 2013 13:26:44 +0000 (13:26 +0000)]
Run autoreconf on ubuntu precise

git-svn-id: https://google-glog.googlecode.com/svn/trunk@117 eb4d4688-79bd-11dd-afb4-1d65580434c0

11 years agoFixed files to support FreeBSD amd64 based on patches at:
<shinichiro.hamaji@gmail.com> [Thu, 22 Nov 2012 12:09:13 +0000 (12:09 +0000)]
Fixed files to support FreeBSD amd64 based on patches at:
http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/glog/files/

Since FreeBSD do not have gettid system call unlikely to MacOSX, I
modified utilities.h not to use that on FreeBSD:
* FreeBSD lacks gettid syscall.
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/kern/syscalls.master?rev=1.276;content-type=text%2Fplain
* MacOSX gettid == 286.
http://www.opensource.apple.com/source/xnu/xnu-1504.3.12/bsd/kern/syscalls.master

As for the fix of stacktrace, we use a different approach.
Even in FreeBSD, package gcc44/gcc46 has unwind.h.
As a result, checking unwind.h should be natural solution.

This patch was given by yyanagisawa

git-svn-id: https://google-glog.googlecode.com/svn/trunk@116 eb4d4688-79bd-11dd-afb4-1d65580434c0

11 years agoDon't #undef GLOG_MSVC_*
<shinichiro.hamaji@gmail.com> [Tue, 17 Jul 2012 10:51:15 +0000 (10:51 +0000)]
Don't #undef GLOG_MSVC_*

They are necessary because GLOG_MSVC_* will be expanded at DCHECK

git-svn-id: https://google-glog.googlecode.com/svn/trunk@115 eb4d4688-79bd-11dd-afb4-1d65580434c0

11 years agoReduce compiler warnings on Windows and MacOSX
<shinichiro.hamaji@gmail.com> [Thu, 12 Jul 2012 06:37:47 +0000 (06:37 +0000)]
Reduce compiler warnings on Windows and MacOSX

DCHECK* causes "warning C4127: conditional expression is constant".

If compiled with -DWIN32_LEAN_AND_MEAN,
port.h: warning C4005: 'WIN32_LEAN_AND_MEAN': macro redefinition.

On MacOSX,
warning: "_END_GOOGLE_NAMESPACE_" redefined
warning: "_START_GOOGLE_NAMESPACE_" redefined
because config.h is included
 from base/commandlineflags.h:51
 from logging.cc:60
and
 from utilities.h:81
 from logging.cc:32
or so.

Contributed by ukai@

git-svn-id: https://google-glog.googlecode.com/svn/trunk@114 eb4d4688-79bd-11dd-afb4-1d65580434c0

11 years agoFix LOG_SYSRESULT
<shinichiro.hamaji@gmail.com> [Tue, 3 Jul 2012 05:25:54 +0000 (05:25 +0000)]
Fix LOG_SYSRESULT

result is expected to be GetLastError() or WSAGetLastError(), so
we have to convert it to HRESULT by HRESULT_FROM_WIN32 for FAILED()
macro.
Use FormatMesssageA (ANSI version). since glog may not work with
Unicode string.

Contributed by ukai@

git-svn-id: https://google-glog.googlecode.com/svn/trunk@113 eb4d4688-79bd-11dd-afb4-1d65580434c0

11 years agoReduce the number of warnings by VS2010
<shinichiro.hamaji@gmail.com> [Wed, 13 Jun 2012 07:25:19 +0000 (07:25 +0000)]
Reduce the number of warnings by VS2010

git-svn-id: https://google-glog.googlecode.com/svn/trunk@112 eb4d4688-79bd-11dd-afb4-1d65580434c0

12 years agoCompile error fix for QNX
<shinichiro.hamaji@gmail.com> [Mon, 14 May 2012 07:46:20 +0000 (07:46 +0000)]
Compile error fix for QNX

This patch is given in

http://code.google.com/p/google-glog/issues/detail?id=114

git-svn-id: https://google-glog.googlecode.com/svn/trunk@111 eb4d4688-79bd-11dd-afb4-1d65580434c0

12 years agoVC11 build fix
<shinichiro.hamaji@gmail.com> [Mon, 14 May 2012 07:43:51 +0000 (07:43 +0000)]
VC11 build fix

http://code.google.com/p/google-glog/issues/detail?id=119

git-svn-id: https://google-glog.googlecode.com/svn/trunk@110 eb4d4688-79bd-11dd-afb4-1d65580434c0

12 years agoAdd --disable-rtti
<shinichiro.hamaji@gmail.com> [Fri, 24 Feb 2012 07:28:50 +0000 (07:28 +0000)]
Add --disable-rtti

git-svn-id: https://google-glog.googlecode.com/svn/trunk@109 eb4d4688-79bd-11dd-afb4-1d65580434c0

12 years agoRelease 0.3.2.
<shinichiro.hamaji@gmail.com> [Thu, 12 Jan 2012 08:49:31 +0000 (08:49 +0000)]
Release 0.3.2.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@108 eb4d4688-79bd-11dd-afb4-1d65580434c0

12 years agoRemove trivial warnings produced by clang
<shinichiro.hamaji@gmail.com> [Thu, 12 Jan 2012 08:41:09 +0000 (08:41 +0000)]
Remove trivial warnings produced by clang

git-svn-id: https://google-glog.googlecode.com/svn/trunk@107 eb4d4688-79bd-11dd-afb4-1d65580434c0

12 years agoAdd exception specification for operator new and operator delete
<shinichiro.hamaji@gmail.com> [Thu, 12 Jan 2012 07:50:28 +0000 (07:50 +0000)]
Add exception specification for operator new and operator delete

Unfortunately, clang produces warnings for them

git-svn-id: https://google-glog.googlecode.com/svn/trunk@106 eb4d4688-79bd-11dd-afb4-1d65580434c0

12 years agoFix compile failures with clang in stl_logging_unittest.cc
<shinichiro.hamaji@gmail.com> [Thu, 12 Jan 2012 07:49:25 +0000 (07:49 +0000)]
Fix compile failures with clang in stl_logging_unittest.cc

This happens due to the reason I wrote in stl_logging.h.
We don't need utilities.h (which includes logging.h) so we can just
remove it.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@105 eb4d4688-79bd-11dd-afb4-1d65580434c0

12 years agoFix the wrong use of sizeof
<shinichiro.hamaji@gmail.com> [Thu, 12 Jan 2012 07:46:39 +0000 (07:46 +0000)]
Fix the wrong use of sizeof

git-svn-id: https://google-glog.googlecode.com/svn/trunk@104 eb4d4688-79bd-11dd-afb4-1d65580434c0

12 years agoPut __attribute__((noreturn)) for declartions of function pointers
<shinichiro.hamaji@gmail.com> [Thu, 12 Jan 2012 07:45:39 +0000 (07:45 +0000)]
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

12 years agoFix __sync_val_compare_and_swap detection
<shinichiro.hamaji@gmail.com> [Thu, 12 Jan 2012 06:15:52 +0000 (06:15 +0000)]
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

12 years agoDefine GLOG_ prefixed log severities
<shinichiro.hamaji@gmail.com> [Wed, 11 Jan 2012 09:17:04 +0000 (09:17 +0000)]
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

12 years agoMake public headers "warnings clean" in the sense of -Wall -Wextra -Wshadow
<hlsyounes@gmail.com> [Thu, 29 Dec 2011 12:40:48 +0000 (12:40 +0000)]
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

12 years agoFix logging_striplog_test.sh in debug mode. Fixes issue 108.
<hlsyounes@gmail.com> [Thu, 29 Dec 2011 12:36:09 +0000 (12:36 +0000)]
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

12 years agoRemove assumptions about function size in stacktrace_unittest.cc, which do not
<hlsyounes@gmail.com> [Wed, 28 Dec 2011 15:45:05 +0000 (15:45 +0000)]
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

12 years agoSuppress warnings around return value of write and symlink.
<shinichiro.hamaji@gmail.com> [Mon, 5 Sep 2011 08:00:43 +0000 (08:00 +0000)]
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

12 years agoDestruct global objects in ShutdownGoogleLogging
<shinichiro.hamaji@gmail.com> [Mon, 5 Sep 2011 08:00:01 +0000 (08:00 +0000)]
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

12 years agoAdd google:: prefixes for COUNTER in glog's document
<shinichiro.hamaji@gmail.com> [Mon, 5 Sep 2011 07:58:38 +0000 (07:58 +0000)]
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

12 years agoCreate a new log files after pid has changed
<shinichiro.hamaji@gmail.com> [Mon, 5 Sep 2011 07:56:21 +0000 (07:56 +0000)]
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

13 years agoAdd files left behind by certain tests to CLEANFILES.
<hlsyounes@gmail.com> [Wed, 11 May 2011 02:47:46 +0000 (02:47 +0000)]
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

13 years agoReduce stack consumption for Demangle(). Fixes issue 81.
<hlsyounes@gmail.com> [Fri, 25 Feb 2011 14:33:28 +0000 (14:33 +0000)]
Reduce stack consumption for Demangle().  Fixes issue 81.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@92 eb4d4688-79bd-11dd-afb4-1d65580434c0

13 years agoAdd partial C++0x support and recognition of GCC function clone suffixes to
<hlsyounes@gmail.com> [Mon, 7 Feb 2011 14:43:05 +0000 (14:43 +0000)]
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

13 years agoMinor message update.
<shinichiro.hamaji@gmail.com> [Tue, 15 Jun 2010 07:04:56 +0000 (07:04 +0000)]
Minor message update.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@90 eb4d4688-79bd-11dd-afb4-1d65580434c0

13 years agoRelease 0.3.1.
<shinichiro.hamaji@gmail.com> [Tue, 15 Jun 2010 06:30:24 +0000 (06:30 +0000)]
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

13 years agoAdd ShutdownGoogleLogging to close syslog.
<shinichiro.hamaji@gmail.com> [Tue, 15 Jun 2010 06:28:38 +0000 (06:28 +0000)]
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

13 years agos/ASSERT_EQ/CHECK_EQ/ .
<shinichiro.hamaji@gmail.com> [Tue, 15 Jun 2010 04:45:46 +0000 (04:45 +0000)]
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

13 years agoUse sys/ucontext.h when it is found. Snow leopard needs this.
<shinichiro.hamaji@gmail.com> [Tue, 15 Jun 2010 04:12:19 +0000 (04:12 +0000)]
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

13 years agoMove TEST_SRC_DIR from googletest.h to config.h.
<shinichiro.hamaji@gmail.com> [Fri, 28 May 2010 03:56:29 +0000 (03:56 +0000)]
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

13 years agoImprove libunwind detection.
<shinichiro.hamaji@gmail.com> [Fri, 28 May 2010 03:45:27 +0000 (03:45 +0000)]
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

13 years agoAdd DCHECK_NOTNULL macro to logging.h (points to CHECK_NOTNULL in debug mode)
<shinichiro.hamaji@gmail.com> [Fri, 28 May 2010 03:43:29 +0000 (03:43 +0000)]
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

13 years agoAdd __extension__ for GCC's statement expression.
<shinichiro.hamaji@gmail.com> [Fri, 28 May 2010 03:32:50 +0000 (03:32 +0000)]
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

13 years agoAdd some more google:: namespaces.
<shinichiro.hamaji@gmail.com> [Fri, 28 May 2010 03:31:14 +0000 (03:31 +0000)]
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

13 years agoFix --enable-frame-pointers.
<shinichiro.hamaji@gmail.com> [Fri, 28 May 2010 03:28:41 +0000 (03:28 +0000)]
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

13 years agoAdd information about the conflict with windows.h into our document.
<shinichiro.hamaji@gmail.com> [Fri, 28 May 2010 03:21:44 +0000 (03:21 +0000)]
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

13 years agoThe test for gflags works correctly on OpenBSD.
<shinichiro.hamaji@gmail.com> [Fri, 28 May 2010 03:12:15 +0000 (03:12 +0000)]
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

14 years agotest binaries are in the builddir, not the top_srcdir
<shinichiro.hamaji@gmail.com> [Fri, 14 May 2010 21:45:05 +0000 (21:45 +0000)]
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