From: Paweł Sikora Date: Sun, 22 May 2005 12:59:35 +0000 (+0000) Subject: - obsoletes. X-Git-Tag: auto/th/crossarm-gcc-4_0_1-1~5 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fcrossarm-gcc.git;a=commitdiff_plain;h=d5fe5760cc027c27b7d4864ff75375a16d86c1b3 - obsoletes. Changed files: gcc-pr21454.patch -> 1.2 --- diff --git a/gcc-pr21454.patch b/gcc-pr21454.patch deleted file mode 100644 index c41ec51..0000000 --- a/gcc-pr21454.patch +++ /dev/null @@ -1,30 +0,0 @@ -From: Jakub Jelinek -Subject: [PATCH] Set TREE_READONLY const POD arrays with size determined from initializer (PR c++/21454) - -This is a fallout of the PR c++/20073 fix. -For arrays like: -const int a[] = { 0, 1, 2, 3 }; -when cp_apply_type_quals_to_decl is called, its type is not complete yet, -so C++ frontend does not set TREE_READONLY flag. But such variables -aren't put into incomplete_vars chain either, so nothing sets the flag -afterwards. - -2005-05-11 Jakub Jelinek - - PR c++/21454 - * decl.c (maybe_deduce_size_from_array_init): Call - cp_apply_type_quals_to_decl after completing array type. - - * g++.dg/opt/const4.C: New test. - ---- gcc/gcc/cp/decl.c 2005-05-11 11:50:14.000000000 +0200 -+++ gcc/gcc/cp/decl.c 2005-05-11 19:03:28.000000000 +0200 -@@ -3933,6 +3933,8 @@ maybe_deduce_size_from_array_init (tree - if (failure == 3) - error ("zero-size array %qD", decl); - -+ cp_apply_type_quals_to_decl (cp_type_quals (TREE_TYPE (decl)), decl); -+ - layout_decl (decl, 0); - } - }