5855 fix __RESTRICT_KYWD to support the correct keyword with c++

Review Request #36 - Created April 17, 2015 and submitted

Information
Richard PALO
illumos-gate
5855
51b86d3...
Reviewers
general

5855 fix __RESTRICT_KYWD to support the correct keyword with c++

<added 19/04/2015>
I believe the description should reflect now the fact that these are rectifications
to what gnu C does in fix-includes for c++ purposes. This permits the same with
non g++/clang++ compilers such as sunstudio CC.

Perhaps:
5855 update posix_spawn[p] with rectified __RESTRICT_KYWD enabling 'restrict' semantics for both C and C++

The gate (on illumos-omnios) builds clean, lint-clean and shadow-compiler clean.

I've tested with both Sun C++ 5.9 SunOS_i386 Patch 124864-12 2009/04/21
and Sun C++ 5.10 SunOS_i386 128229-02 2009/09/21

I've also bootstrapped gcc (primarily 4.9.x now without my patch) and it swallows the good version just fine
as expected.

[update 2/07/2015]
I was mistaken, https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61649 still needs to commit otherwise the
#ifdef __cplusplus
...
clause is doubled causing warnings, so I've asked again for a commit of the patches provided to gcc.

Issues

  • 1
  • 1
  • 1
  • 3
Description From Last Updated
Do C++ compilers define _STDC_C99 ?? This doesn't look like should work, unless they do, and if they do that ... Garrett D'Amore Garrett D'Amore
Garrett D'Amore
Richard PALO
Richard PALO
Richard PALO
Igor Kozhukhov
Richard PALO
Josef Sipek
Josef Sipek
Richard PALO
Josef Sipek
Richard PALO
Review request changed

Status: Closed (submitted)

Change Summary:

commit 10a6478a64c986fe8b918521951c9068ed5588fe

Loading...