Revert 227219 "Revert 226920 "Roll Clang 188423:191856.""

This relands the clang roll from r226920. The symbol issue
(http://crbug.com/304846) should be fixed by now, on the crash server side.

> Revert 226920 "Roll Clang 188423:191856."
> 
> Possibly broke crash symbolication on mac.
> 
> > Roll Clang 188423:191856.
> > 
> > Remove libprofile_rt from package.sh, it doesn't exist after LLVM r191835
> > 
> > BUG=290204,303886
> > [email protected]
> > TBR=net owner
> > NOTRY=true
> > 
> > Review URL: https://codereview.chromium.org/25875004
> 
> [email protected]
> 
> Review URL: https://codereview.chromium.org/26145004

[email protected]

Review URL: https://codereview.chromium.org/27092002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228318 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/build/common.gypi b/build/common.gypi
index 7873c4c8..8e10e70 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -3122,6 +3122,10 @@
                           '-fuse-ld=gold',
                           '-Wno-psabi',
                         ],
+                        'ldflags!': [
+                          # Clang does not support the following options.
+                          '-fuse-ld=gold',
+                        ],
                       }],
                     ],
                   }],
@@ -3206,6 +3210,12 @@
               # code generated by flex (used in angle) contains that keyword.
               # http://crbug.com/255186
               '-Wno-deprecated-register',
+
+              # TODO(hans): Remove once we've cleaned up the warnings.
+              '-Wno-unused-const-variable',
+
+              # This warns about auto_ptr<>, used in third-party code.
+              '-Wno-deprecated-declarations',
             ],
             'cflags!': [
               # Clang doesn't seem to know know this flag.
@@ -3909,6 +3919,12 @@
                 # code generated by flex (used in angle) contains that keyword.
                 # http://crbug.com/255186
                 '-Wno-deprecated-register',
+
+                # TODO(hans): Remove once we've cleaned up the warnings.
+                '-Wno-unused-const-variable',
+
+                # This warns about auto_ptr<>, used in third-party code.
+                '-Wno-deprecated-declarations',
               ],
             }],
             ['clang==1 and clang_use_chrome_plugins==1', {