arm-eabi-g++: -isystem option handle header as c linkage

2018-01-25 Thread Kaul, Martin
Hi,

given the following code:

-- isystem_test.cpp -
#include < isystem_test.h>

bool dummy_function( void )
{
return false;
}
-

-- isystem_test.h --
template 
class allocator
{
};
-

and g++ version: arm-eabi-g++.exe (Linaro GCC 7.2-2017.11)

1. compiling with "arm-eabi-g++ -I . -g -c isystem_test.cpp"
--> OK

2. compiling with " arm-eabi-g++ -isystem . -g -c isystem_test.cpp "
--> output error:
In file included from isystem_test.cpp:3:0:
./isystem_test.h:3:1: error: template with C linkage
 template 
 ^~~~

It seams that the option -isystem changes the include of isystems_test.h into a 
C include, i.e. the header content seems to be handled as C-Code

Same error behavior with arm-eabi Linaro GCC 6.4-2017.11,  Linaro GCC 
6.3-2017.05

-
Testing the same with the mingw msys g++ compiler outputs no error:
g++.exe (Rev2, Built by MSYS2 project) 7.2.0
Copyright (C) 2017 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.
---
Also no errors for:
arm-linux-gnueabihf-g++.exe (Linaro GCC 6.3-2017.05)
---

Is there a special behavior for arm-eabi g++ compiler?

Best regards
  Martin Kaul

___
linaro-toolchain mailing list
linaro-toolchain@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/linaro-toolchain


[ANNOUNCE] Linaro GCC 6 and 7 2018.01 source snapshots

2018-01-25 Thread Mark Murray
 The Linaro Toolchain Working Group (TCWG) is pleased to announce the 2018.01
snapshot of Linaro GCC 6 and 7 source packages.

o The GCC 7 series introduced an ABI change for ARM targets by fixing a bug
(present since GCC 5, see link below) that affects conformance to the procedure
call standard (AAPCS).  The bug affects some C++ code where class objects are
passed by value to functions and could result in incorrect or inconsistent code
being generated. If the option -Wpsabi is enabled (on by default) the compiler
will emit a diagnostic note for code that might be affected by this ABI change.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77728

For an explanation of the changes please see the following website:

https://gcc.gnu.org/gcc-7/changes.html


o Linaro GCC 7 monthly snapshot[1] is based on FSF GCC 7.2+svn254792 and
includes performance improvements and bug fixes backported from mainline GCC.
The contents of this snapshot will be part of the 2018.02 stable[2] quarterly
release.

This snapshot tarball is available on:
http://snapshots.linaro.org/components/toolchain/gcc-linaro/7.2-2018.01/

Interesting changes in this GCC source package snapshot include:

* Updates to GCC 7.2+svn256695


o Linaro GCC 6 monthly snapshot[1] is based on FSF GCC 6.4+svn254791 and
includes performance improvements and bug fixes backported from mainline GCC.
This snapshot contents will be part of the next maintenance release.

This snapshot tarball is available on:
http://snapshots.linaro.org/components/toolchain/gcc-linaro/6.4-2018.01/

Interesting changes in this GCC source package snapshot include:

* Updates to GCC 6.4+svn256699


o Subscribe to the important Linaro mailing lists and join our IRC channels to
stay on top of Linaro development.

** Linaro Toolchain Development "mailing list":
http://lists.linaro.org/mailman/listinfo/linaro-toolchain
** Linaro Toolchain IRC channel on irc.freenode.net at @#linaro-tcwg@

* Bug reports should be filed in Bugzilla against GCC product:
   http://bugs.linaro.org/enter_bug.cgi?product=GCC
* Interested in commercial support? inquire at "Linaro support":
   mailto:supp...@linaro.org

[1]. Source package snapshots are defined when the compiler is only
put through unit-testing and full validation is not performed.

[2]. Stable source package releases are defined as releases where the
full Linaro Toolchain validation plan is executed.

IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.
___
linaro-toolchain mailing list
linaro-toolchain@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/linaro-toolchain