From mboxrd@z Thu Jan 1 00:00:00 1970
Return-Path:
Received: (qmail 81690 invoked by alias); 14 Feb 2020 08:10:10 -0000
Mailing-List: contact gcc-cvs-wwwdocs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id:
List-Archive:
List-Post:
List-Help:
Sender: gcc-cvs-wwwdocs-owner@gcc.gnu.org
Received: (qmail 81627 invoked by uid 9071); 14 Feb 2020 08:10:09 -0000
Date: Fri, 14 Feb 2020 08:10:00 -0000
Message-ID: <20200214081009.81623.qmail@sourceware.org>
From: jakub@gcc.gnu.org
To: gcc-cvs-wwwdocs@gcc.gnu.org
Subject: gcc-wwwdocs branch master updated. e37f2d6af29c52a51cb36058e3a7a2b79469f045
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 223de66470c17e210f7e7ecceb054c7bb29d49d5
X-Git-Newrev: e37f2d6af29c52a51cb36058e3a7a2b79469f045
X-SW-Source: 2020/txt/msg00087.txt
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gcc-wwwdocs".
The branch, master has been updated
via e37f2d6af29c52a51cb36058e3a7a2b79469f045 (commit)
from 223de66470c17e210f7e7ecceb054c7bb29d49d5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit e37f2d6af29c52a51cb36058e3a7a2b79469f045
Author: Jakub Jelinek
Date: Fri Feb 14 09:09:44 2020 +0100
wwwdocs: Mention common attribute
diff --git a/htdocs/gcc-10/porting_to.html b/htdocs/gcc-10/porting_to.html
index 980d3af1..9574aacc 100644
--- a/htdocs/gcc-10/porting_to.html
+++ b/htdocs/gcc-10/porting_to.html
@@ -41,7 +41,12 @@ and provide solutions. Let us know if you have suggestions for improvements!
which means a linker error will now be reported.
To fix this, use extern
in header files when declaring global
variables, and ensure each global is defined in exactly one C file.
- As a workaround, legacy C code can be compiled with -fcommon
.
+ If tentative definitions of particular variables need to be
+ placed in a common block, __attribute__((__common__))
can be
+ used to force that behavior even in code compiled without
+ -fcommon
.
+ As a workaround, legacy C code where all tentative definitions should
+ be placed into a common block can be compiled with -fcommon
.
int x; // tentative definition - avoid in header files
-----------------------------------------------------------------------
Summary of changes:
htdocs/gcc-10/porting_to.html | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
hooks/post-receive
--
gcc-wwwdocs