[PATCH, C++-1z] Implement N4197 - Adding u8 character literals

2015-06-27 Thread Ed Smith-Rowland
I apologize to all who got this earlier. I forgot to send to the list. This patch adds UTF-8 character literals to C++: auto c = u8'c'; This is mostly a straight forward preprocessor exercise. I only allow these characters in -std=c++1z and -std=gnu++1z. I figure we can expand that easily w

[wwwdocs] The C++ ABI specification has moved again

2015-06-27 Thread Gerald Pfeifer
...so adjust all the links. Applied. Gerald Index: faq.html === RCS file: /cvs/gcc/wwwdocs/htdocs/faq.html,v retrieving revision 1.220 diff -u -r1.220 faq.html --- faq.html29 Jun 2014 20:12:59 - 1.220 +++ faq.html27

[wwwdocs] Wikipedia now defaults to, and redirects to, https.

2015-06-27 Thread Gerald Pfeifer
Wikipedia now defaults to, and redirects to, https, so adjust our links. Applied. Gerald Index: codingconventions.html === RCS file: /cvs/gcc/wwwdocs/htdocs/codingconventions.html,v retrieving revision 1.72 diff -u -r1.72 codingconv

[wwwdocs] Adjust link for Cilk Plus

2015-06-27 Thread Gerald Pfeifer
cilk.org now has a permanent redirect to https://www.cilkplus.org. Applied. Gerald Index: index.html === RCS file: /cvs/gcc/wwwdocs/htdocs/index.html,v retrieving revision 1.975 diff -u -r1.975 index.html --- index.html 26 Jun 2015

[PATCH] Fix PR c++/66686 (dependent template template substitution)

2015-06-27 Thread Patrick Palka
This patch makes coerce_template_template_parm consider a coercion successful if the result of calling tsubst on a template template parm is a dependent type even when the desired argument type is non-dependent. For the test case below, TREE_TYPE (parm) is B and TREE_TYPE (arg) is int. After call

Re: [PATCH] Add support for exceptions to tsan (PR sanitizer/64265)

2015-06-27 Thread Dmitry Vyukov
On Sat, Jun 27, 2015 at 7:12 PM, Jakub Jelinek wrote: > On Sat, Jun 27, 2015 at 04:53:22PM +0200, Dmitry Vyukov wrote: >> Do you plan to move forward with this patch? Is it waiting to be reviewed? >> People keep asking about exception support for tsan (I guess it is >> critical for a significant p

Re: [PATCH] Add support for exceptions to tsan (PR sanitizer/64265)

2015-06-27 Thread Jakub Jelinek
On Sat, Jun 27, 2015 at 04:53:22PM +0200, Dmitry Vyukov wrote: > Do you plan to move forward with this patch? Is it waiting to be reviewed? > People keep asking about exception support for tsan (I guess it is > critical for a significant potion of C++ out there). I am trying to > sketch support in

Re: [PATCH] Add support for exceptions to tsan (PR sanitizer/64265)

2015-06-27 Thread Dmitry Vyukov
Hi Jakub, Do you plan to move forward with this patch? Is it waiting to be reviewed? People keep asking about exception support for tsan (I guess it is critical for a significant potion of C++ out there). I am trying to sketch support in llvm. And I am leaning towards an approach similar to yours,

Re: [PATCH] Move X - (X / Y) * Y folding to match.pd

2015-06-27 Thread Marc Glisse
On Fri, 26 Jun 2015, Marek Polacek wrote: This is an attempt to move one pattern from fold-const.c to match.pd. It ought to be 1:1, but is not, e.g. with this patch we won't fold e.g. int f (int a, int b) { return a - (unsigned) ((a / b) * b) } anymore, but we're able to fold int ff (int a,

Re: [PATCH][5/n] Remove GENERIC stmt combining from SCCVN

2015-06-27 Thread Marc Glisse
On Fri, 26 Jun 2015, Richard Biener wrote: + /* Equality compare simplifications from fold_binary */ + (for cmp (eq ne) + + /* If we have (A | C) == D where C & ~D != 0, convert this into 0. + Similarly for NE_EXPR. */ + (simplify + (cmp (convert?@3 (bit_ior @0 INTEGER_CST@1)) INTEGER_

Re: [AArch64][2/2] Implement -fpic for -mcmodel=small

2015-06-27 Thread Jiong Wang
Andreas Schwab writes: > Jiong Wang writes: > >> Andreas Schwab writes: >> >>> spawn -ignore SIGHUP /opt/gcc/gcc-20150627/Build/gcc/xgcc >>> -B/opt/gcc/gcc-20150627/Build/gcc/ -fno-diagnostics-show-caret >>> -fdiagnostics-color=never -O0 -w -fpie -

Re: [AArch64][2/2] Implement -fpic for -mcmodel=small

2015-06-27 Thread Andreas Schwab
Jiong Wang writes: > Andreas Schwab writes: > >> spawn -ignore SIGHUP /opt/gcc/gcc-20150627/Build/gcc/xgcc >> -B/opt/gcc/gcc-20150627/Build/gcc/ -fno-diagnostics-show-caret >> -fdiagnostics-color=never -O0 -w -fpie -c -o pr65593.o >> /opt/gcc/gcc-20150627/gcc/t

Re: [AArch64][2/2] Implement -fpic for -mcmodel=small

2015-06-27 Thread Jiong Wang
Andreas Schwab writes: > spawn -ignore SIGHUP /opt/gcc/gcc-20150627/Build/gcc/xgcc > -B/opt/gcc/gcc-20150627/Build/gcc/ -fno-diagnostics-show-caret > -fdiagnostics-color=never -O0 -w -fpie -c -o pr65593.o > /opt/gcc/gcc-20150627/gcc/testsuite/gcc.c-torture/compile/pr65593.c >

Re: C++ PATCH for c++/66255 (ICE with non-type template parameter of typedef type)

2015-06-27 Thread Andreas Schwab
* pt.c (check_unstripped_args): Mark parameter as unused. diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 082e04c..ad2970d 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -1023,7 +1023,7 @@ optimize_specialization_lookup_p (tree tmpl) gone through coerce_template_parms by now. */ static

Re: [AArch64][2/2] Implement -fpic for -mcmodel=small

2015-06-27 Thread Andreas Schwab
spawn -ignore SIGHUP /opt/gcc/gcc-20150627/Build/gcc/xgcc -B/opt/gcc/gcc-20150627/Build/gcc/ -fno-diagnostics-show-caret -fdiagnostics-color=never -O0 -w -fpie -c -o pr65593.o /opt/gcc/gcc-20150627/gcc/testsuite/gcc.c-torture/compile/pr65593.c /tmp/cc0Pymaf.s: Assembler messages: /tmp