forked from OSchip/llvm-project
df963a38a9
This doesn't affect our code generation in any material way -- we already give such declarations internal linkage from a codegen perspective -- but it has some subtle effects on code validity. We suppress the 'L' (internal linkage) marker for mangled names in anonymous namespaces, because it is redundant (the information is already carried by the namespace); this deviates from GCC's behavior if a variable or function in an anonymous namespace is redundantly declared 'static' (where GCC does include the 'L'), but GCC's behavior is incoherent because such a declaration can be validly declared with or without the 'static'. We still deviate from the standard in one regard here: extern "C" declarations in anonymous namespaces are still granted external linkage. Changing those does not appear to have been an intentional consequence of the standard change in DR1113. llvm-svn: 314037 |
||
---|---|---|
.. | ||
dr0xx.cpp | ||
dr1xx.cpp | ||
dr2xx.cpp | ||
dr3xx.cpp | ||
dr4xx.cpp | ||
dr5xx.cpp | ||
dr6xx.cpp | ||
dr7xx.cpp | ||
dr9xx.cpp | ||
dr10xx.cpp | ||
dr11xx.cpp | ||
dr12xx.cpp | ||
dr13xx.cpp | ||
dr14xx.cpp | ||
dr15xx.cpp | ||
dr16xx.cpp | ||
dr17xx.cpp | ||
dr18xx.cpp | ||
dr19xx.cpp | ||
dr20xx.cpp | ||
dr21xx.cpp | ||
dr118.cpp | ||
dr158.cpp | ||
dr412.cpp | ||
dr1748.cpp |