Skip to content

gcc-mirror/gcc

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

… [PR109164]

The following two testcases are miscompiled, because we keep TREE_READONLY
on the vars even when they are (possibly) dynamically initialized by a TLS
wrapper function.  Normally cp_finish_decl drops TREE_READONLY from vars
which need dynamic initialization, but for TLS we do this kind of
initialization upon every access to those variables.  Keeping them
TREE_READONLY means e.g. PRE can hoist loads from those before loops
which contain the TLS wrapper calls, so we can access the TLS variables
before they are initialized.

2023-03-20  Jakub Jelinek  <jakub@redhat.com>

	PR c++/109164
	* cp-tree.h (var_needs_tls_wrapper): Declare.
	* decl2.cc (var_needs_tls_wrapper): No longer static.
	* decl.cc (cp_finish_decl): Clear TREE_READONLY on TLS variables
	for which a TLS wrapper will be needed.

	* g++.dg/tls/thread_local13.C: New test.
	* g++.dg/tls/thread_local13-aux.cc: New file.
	* g++.dg/tls/thread_local14.C: New test.
	* g++.dg/tls/thread_local14-aux.cc: New file.
0a84634

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
October 12, 2014 15:05
January 10, 2023 00:18
November 15, 2022 08:32
March 17, 2023 00:17
February 18, 2023 00:17
September 1, 2022 00:17
August 31, 2022 00:16
February 28, 2023 00:18
November 24, 2022 00:17
January 16, 2023 11:52
March 4, 2023 00:16
January 21, 2023 00:16
January 16, 2023 11:52
March 17, 2023 00:17
January 16, 2023 11:52
January 23, 2023 00:16
March 20, 2023 00:17
March 1, 2023 00:18
March 17, 2023 00:17
March 11, 2023 00:16
March 4, 2023 00:16
January 16, 2023 11:52
January 16, 2023 11:52
March 18, 2023 00:16
March 3, 2023 00:16
January 16, 2023 11:52
January 16, 2023 11:52
January 16, 2023 11:52
March 17, 2023 00:17
November 24, 2022 00:17
January 15, 2020 14:29
July 17, 2007 08:37
July 17, 2007 08:37
March 11, 2023 00:16
July 22, 2000 04:08
This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.