Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Issue 7748035: PNaClTargetInfo: add __ELF__, _REENTRANT and _GNU_SOURCE defines and update the test. (Closed)

Created:
9 years, 4 months ago by krasin
Modified:
9 years, 3 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://llvm.org/svn/llvm-project/cfe/trunk/
Visibility:
Public.

Description

Add missing defines to PNaCl target in Clang which made clang++ to complain on #include <stdio.h>: In file included from /usr/local/google/home/krasin/llvm-commit/tools/clang/test/Driver/le32-unknown-nacl.cpp:112: /usr/include/stdio.h:432:26: error: expected ';' after top level declarator __isoc99_sscanf) __THROW; ^ ; /usr/include/stdio.h:487:27: error: expected ';' after top level declarator __isoc99_vsscanf) ^ ; 2 errors generated.

Patch Set 1 #

Patch Set 2 : include <stdio.h> in the test #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -0 lines) Patch
M lib/Basic/Targets.cpp View 1 chunk +7 lines, -0 lines 0 comments Download
M test/Driver/le32-unknown-nacl.cpp View 1 2 chunks +21 lines, -0 lines 1 comment Download

Messages

Total messages: 2 (0 generated)
krasin
9 years, 4 months ago (2011-08-25 23:08:06 UTC) #1
jvoung - send to chromium...
9 years, 4 months ago (2011-08-26 00:06:05 UTC) #2
http://codereview.chromium.org/7748035/diff/2001/test/Driver/le32-unknown-nac...
File test/Driver/le32-unknown-nacl.cpp (right):

http://codereview.chromium.org/7748035/diff/2001/test/Driver/le32-unknown-nac...
test/Driver/le32-unknown-nacl.cpp:43: // CHECK: _GNU_SOURCEdefined
Does this set Opts.CPlusPlus? I guess so.

To test _REENTRANT, can you run clang with the "-pthread" option?

Powered by Google App Engine
This is Rietveld 408576698