[Bug c/61939] warn when __attribute__((aligned(x))) is ignored

2016-10-19 Thread rivanvx at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61939

Vedran Miletic  changed:

   What|Removed |Added

 CC||rivanvx at gmail dot com

--- Comment #1 from Vedran Miletic  ---
Confirmed still occurs in 6.2.1 on the following C++ code:

#include 
#include 
float f(std::vector& A, std::vector& B)
{
  __builtin_assume_aligned(A.data(), 64);
  __builtin_assume_aligned(B.data(), 64);
  return std::inner_product(A.begin(), A.end(), B.begin(), 0.f);
}

Compiled using -O3 -ffast-math -mavx2.

[Bug target/56676] unnecesary splitted load when using avx2

2016-10-19 Thread rivanvx at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56676

Vedran Miletic  changed:

   What|Removed |Added

 CC||rivanvx at gmail dot com

--- Comment #5 from Vedran Miletic  ---
Confirmed still affecting GCC 6.2.1. Similar C++ example:

#include 
#include 
float f(std::vector& A, std::vector& B)
{
  return std::inner_product(A.begin(), A.end(), B.begin(), 0.f);
}

[Bug c++/69470] [concepts] bogus constrained member class template redeclared with different access

2016-02-09 Thread rivanvx at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69470

Vedran Miletic  changed:

   What|Removed |Added

 CC||rivanvx at gmail dot com

--- Comment #1 from Vedran Miletic  ---
Happens when building ns-3 [1] too.

[1016/2462] Compiling src/wifi/model/wifi-mac-queue.cc
In file included from ./ns3/test.h:24:0,
 from ../src/spectrum/test/tv-helper-distribution-test.cc:23:
/usr/include/c++/6.0.0/sstream:300:7: error: ‘struct
std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>::__xfer_bufptrs’
redeclared with different access
   struct __xfer_bufptrs
   ^~

Waf: Leaving directory
`/home/vedranm/workspace/ns-3-allinone/ns-3-dev/build-debug'
Build failed
 -> task in 'ns3-spectrum-test' failed (exit status 1): 
{task 140207810877328: cxx tv-helper-distribution-test.cc ->
tv-helper-distribution-test.cc.3.o}
['/usr/lib64/ccache/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror',
'-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing',
'-I../src/spectrum', '-fPIC', '-pthread', '-I.', '-I..',
'-DNS3_BUILD_PROFILE_DEBUG', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE',
'-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1',
'-DHAVE_PACKET_H=1', '-DHAVE_DL=1', '-DHAVE_IF_TUN_H=1',
'-DNS_TEST_SOURCEDIR="src/spectrum/test"',
'../src/spectrum/test/tv-helper-distribution-test.cc', '-c', '-o',
'/home/vedranm/workspace/ns-3-allinone/ns-3-dev/build-debug/src/spectrum/test/tv-helper-distribution-test.cc.3.o']

I'm using Fedora Rawhide x86_64.

$ g++ --version
g++ (GCC) 6.0.0 20160201 (Red Hat 6.0.0-0.9)
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[1] http://code.nsnam.org/ns-3-dev

[Bug fortran/67059] gfortran --version output is inconsistent with the rest of GCC

2015-08-08 Thread rivanvx at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67059

--- Comment #4 from Vedran Miletic rivanvx at gmail dot com ---
(In reply to Francois-Xavier Coudert from comment #3)
 Fixed on trunk.
 Thanks for the report.

Thanks!


[Bug fortran/67059] New: gfortran --version output is inconsistent with the rest of GCC

2015-07-29 Thread rivanvx at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67059

Bug ID: 67059
   Summary: gfortran --version output is inconsistent with the
rest of GCC
   Product: gcc
   Version: 6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: fortran
  Assignee: unassigned at gcc dot gnu.org
  Reporter: rivanvx at gmail dot com
  Target Milestone: ---

On Debian unstable with GCC 5.2.1 20150723 from experimental, I get

$ gcc --version
gcc (Debian 5.2.1-12) 5.2.1 20150723
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

and g++/gdc/gccgo shows analogous output. However, gfotran has a different
output

$ gfortran --version
GNU Fortran (Debian 5.2.1-12) 5.2.1 20150723
Copyright (C) 2015 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING

which could be made more consistent with the rest of GCC. The attached patch
fixes the issue.


[Bug fortran/67059] gfortran --version output is inconsistent with the rest of GCC

2015-07-29 Thread rivanvx at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67059

--- Comment #1 from Vedran Miletic rivanvx at gmail dot com ---
Created attachment 36090
  -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=36090action=edit
Patch

Output from git diff, hope this is OK.