Re: How do I initialize a __complex128 variable?

2016-07-21 Thread FX
> How do I initialize a __complex128 variable?  I found no documentation.

$ cat a.c
#include 
#include 
#include 

int main(void)
{
  char s1[50], s2[50];
  const __complex128 z = -0.3Q + 0.1Qj;
  quadmath_snprintf (s1, sizeof(s1), "%20Qe", __real__ z);
  quadmath_snprintf (s2, sizeof(s2), "%20Qe", __imag__ z);
  printf ("(%s,%s)\n", s1, s2);
  return 0;
}

$ gcc a.c -lquadmath -W -Wall && ./a.out
(   -3.00e-01,1.00e-01)




gcc-6-20160721 is now available

2016-07-21 Thread gccadmin
Snapshot gcc-6-20160721 is now available on
  ftp://gcc.gnu.org/pub/gcc/snapshots/6-20160721/
and on various mirrors, see http://gcc.gnu.org/mirrors.html for details.

This snapshot has been generated from the GCC 6 SVN branch
with the following options: svn://gcc.gnu.org/svn/gcc/branches/gcc-6-branch 
revision 238612

You'll find:

 gcc-6-20160721.tar.bz2   Complete GCC

  MD5=eb81182b9bcb2997ff6cbe0bf3efaff5
  SHA1=d316f2d6c8e83a0e82acae891841ff8d471c17ae

Diffs from 6-20160714 are available in the diffs/ subdirectory.

When a particular snapshot is ready for public consumption the LATEST-6
link is updated and a message is sent to the gcc list.  Please do not use
a snapshot before it has been announced that way.


Re: DejaGnu directive matching multiple messages on the same line

2016-07-21 Thread Segher Boessenkool
On Wed, Jul 20, 2016 at 02:57:22PM -0600, Martin Sebor wrote:
> Btw., the above works fine when each directive is on its own line
> but when the second follows the first on the same line (somehow
> I thought it needed to be at first), the second one needs another
> string argument.  I haven't looked into what it's for but the regex
> is the second argument in this case, not the first.  Like this:
> 
>   whatever; // { dg-error "regex-1" } { dg-error "???" "regex2" "fail 
> message" { target-selector }  }

dg-error takes the current line number as the first argument; it is
automagically put there unless you do weird things like you do ;-)


Segher