develooper Front page | perl.perl5.changes | Postings from October 2021

[Perl/perl5] 4a0439: Teach Configure and cflags.SH about C99

From:
Nicholas Clark via perl5-changes
Date:
October 6, 2021 14:47
Subject:
[Perl/perl5] 4a0439: Teach Configure and cflags.SH about C99
Message ID:
Perl/perl5/push/refs/heads/smoke-me/nicholas/C99/000000-6b5b56@github.com
  Branch: refs/heads/smoke-me/nicholas/C99
  Home:   https://github.com/Perl/perl5
  Commit: 4a0439893a152194817cf58d22067cbd9d5102da
      https://github.com/Perl/perl5/commit/4a0439893a152194817cf58d22067cbd9d5102da
  Author: Nicholas Clark <nick@ccl4.org>
  Date:   2021-10-06 (Wed, 06 Oct 2021)

  Changed paths:
    M Configure
    M Cross/cflags-cross-arm
    M cflags.SH

  Log Message:
  -----------
  Teach Configure and cflags.SH about C99

Probe to see whether we need -std=gnu99 or -std=c99 to get C99 code to
compile. In cflags.SH, remove code that added gcc warning flags that were
compatible with C89 but are not compatible with C99.


  Commit: 8b0ccad33ce09a038696029965e9238e833dcaf4
      https://github.com/Perl/perl5/commit/8b0ccad33ce09a038696029965e9238e833dcaf4
  Author: Nicholas Clark <nick@ccl4.org>
  Date:   2021-10-06 (Wed, 06 Oct 2021)

  Changed paths:
    M INSTALL
    M pod/perlhacktips.pod
    M t/porting/known_pod_issues.dat

  Log Message:
  -----------
  Update perlhack with details of the C99 features we can now use

Also update INSTALL to mention C99.


  Commit: 0634b63a61debc431d7838f29ca9471ec6d0cbe5
      https://github.com/Perl/perl5/commit/0634b63a61debc431d7838f29ca9471ec6d0cbe5
  Author: Nicholas Clark <nick@ccl4.org>
  Date:   2021-10-06 (Wed, 06 Oct 2021)

  Changed paths:
    M pod/perlhacktips.pod

  Log Message:
  -----------
  Note how best to confirm that other C99 features can be relied upon

If C99 functionality can't be emulated on platforms which don't provide it,
then one really needs to test whether MSVC and the VMS compiler support it.


  Commit: 0da48c94b3df0a5bf83a895fe38b07c42d90d1cc
      https://github.com/Perl/perl5/commit/0da48c94b3df0a5bf83a895fe38b07c42d90d1cc
  Author: Nicholas Clark <nick@ccl4.org>
  Date:   2021-10-06 (Wed, 06 Oct 2021)

  Changed paths:
    M README.win32

  Log Message:
  -----------
  Update README.win32 to the new C99/MSVC 12.0 requirements

Remove specific notes related to Microsoft Visual C++ 2005 Express Edition
and earlier. Note that the build instructions related to "IA64/AMD64"
haven't been tested recently, but stop short of purging them completely.


  Commit: 6b5b56c60ca7e6dafca8e6265e6c6622f186dc7e
      https://github.com/Perl/perl5/commit/6b5b56c60ca7e6dafca8e6265e6c6622f186dc7e
  Author: Nicholas Clark <nick@ccl4.org>
  Date:   2021-10-06 (Wed, 06 Oct 2021)

  Changed paths:
    M inline.h

  Log Message:
  -----------
  Introduce a "declaration after statement" into inline.h

The core now permits some C99 code, so extensions need to ensure that any
C compiler flags they add or change permit C99 code.

This code is inlined by XS extensions in the core and on CPAN. The intent
is that this commit should show up for any failure bisection, making it
obvious what the cause is, and what the fix needs to be.


Compare: https://github.com/Perl/perl5/compare/4a0439893a15%5E...6b5b56c60ca7



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About