From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8732 invoked by alias); 13 Oct 2012 19:27:58 -0000 Received: (qmail 8674 invoked by uid 48); 13 Oct 2012 19:27:42 -0000 From: "howarth at nitro dot med.uc.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/54404] [4.8 Regression] *cfstring* failures for (obj-c|g)++ on *-apple-darwin* after revision 186789 Date: Sat, 13 Oct 2012 19:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: howarth at nitro dot med.uc.edu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 X-Bugzilla-Changed-Fields: Target Milestone CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-10/txt/msg01279.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D54404 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.8.0 Jack Howarth changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |howarth at nitro dot | |med.uc.edu --- Comment #1 from Jack Howarth 2012-10-= 13 19:27:40 UTC --- Below is a trace through current gcc trunk for the failure of... FAIL: g++.dg/other/darwin-cfstring1.C -std=3Dgnu++98 (test for errors, lin= e 21) at -m32 with darwin.c built at -O0 for debugging purposes. # gdb /sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/testsuite/g++/../../c= c1plus ... (gdb) break darwin.c:3310 ... (gdb) r -quiet -nostdinc++ -v -I /sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/x86_64-apple-darwin12.2.0= /i386/libstdc++-v3/include/x86_64-apple-darwin12.2.0 -I /sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/x86_64-apple-darwin12.2.0= /i386/libstdc++-v3/include -I /sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20121011/libstdc++-v3/libsup= c++ -I /sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20121011/libstdc++-v3/include/b= ackward -I /sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20121011/libstdc++-v3/testsuite= /util -imultilib i386 -iprefix /sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/../lib/gcc/x86_64-app= le-darwin12.2.0/4.8.0/ -isystem /sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/testsuite/g++/../../i= nclude -isystem /sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/testsuite/g++/../../i= nclude-fixed -D__DYNAMIC__ /sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20121011/gcc/testsuite/g++.dg/o= ther/darwin-cfstring1.C -fPIC -quiet -dumpbase darwin-cfstring1.C -mmacosx-version-min=3D10.8.2 -mconstant-cfstrings -m32 -mtune=3Dcore2 -auxbase-strip darwin-cfstring1.s -std=3Dgnu++98 -version -fno-diagnostics-show-caret -fmessage-length=3D0 -o darwin-cfstring1.s ... Breakpoint 1, darwin_build_constant_cfstring (str=3D0x10104dbc0) at ../../gcc-4.8-20121011/gcc/config/darwin.c:3316 3316 if (!str) (gdb) c Continuing. Current language: auto; currently c++ Breakpoint 1, darwin_build_constant_cfstring (str=3D0x10104ddc0) at ../../gcc-4.8-20121011/gcc/config/darwin.c:3316 3316 if (!str) (gdb) s 3322 STRIP_NOPS (str); (gdb)=20 tree_strip_nop_conversions (exp=3D0x10104ddc0) at ../../gcc-4.8-20121011/gcc/tree.c:11254 11254 { (gdb)=20 11204 if (!CONVERT_EXPR_P (exp) (gdb)=20 4047 char const __c =3D TREE_CODE_CLASS (TREE_CODE (__t)); (gdb)=20 4048 if (!IS_EXPR_CODE_CLASS (__c)) (gdb)=20 4092 if (VL_EXP_CLASS_P (node)) (gdb)=20 4095 return TREE_CODE_LENGTH (TREE_CODE (node)); (gdb)=20 4127 if (__i < 0 || __i >=3D TREE_OPERAND_LENGTH (__u)) (gdb)=20 11207 if (TREE_OPERAND (exp, 0) =3D=3D error_mark_node) (gdb)=20 3995 if (tree_contains_struct[TREE_CODE(__t)][__s] !=3D 1) (gdb)=20 4092 if (VL_EXP_CLASS_P (node)) (gdb)=20 11210 outer_type =3D TREE_TYPE (exp); (gdb)=20 4092 if (VL_EXP_CLASS_P (node)) (gdb)=20 4095 return TREE_CODE_LENGTH (TREE_CODE (node)); (gdb)=20 4127 if (__i < 0 || __i >=3D TREE_OPERAND_LENGTH (__u)) (gdb)=20 3785 if (tree_contains_struct[TREE_CODE(__t)][__s] !=3D 1) (gdb)=20 11211 inner_type =3D TREE_TYPE (TREE_OPERAND (exp, 0)); (gdb)=20 11213 if (!inner_type) (gdb)=20 11219 || POINTER_TYPE_P (outer_type) (gdb)=20 11221 && (INTEGRAL_TYPE_P (inner_type) (gdb)=20 11222 || POINTER_TYPE_P (inner_type) (gdb)=20 11221 && (INTEGRAL_TYPE_P (inner_type) (gdb)=20 3794 if (TREE_CODE_CLASS (TREE_CODE(__t)) !=3D __class) (gdb)=20 11224 return TYPE_PRECISION (outer_type) =3D=3D TYPE_PRECISION (inne= r_type); (gdb)=20 3794 if (TREE_CODE_CLASS (TREE_CODE(__t)) !=3D __class) (gdb)=20 11224 return TYPE_PRECISION (outer_type) =3D=3D TYPE_PRECISION (inne= r_type); (gdb)=20 11255 while (tree_nop_conversion (exp)) (gdb)=20 3839 char const __c =3D TREE_CODE_CLASS (TREE_CODE (__t)); (gdb)=20 3840 if (!IS_EXPR_CODE_CLASS (__c)) (gdb)=20 4092 if (VL_EXP_CLASS_P (node)) (gdb)=20 4095 return TREE_CODE_LENGTH (TREE_CODE (node)); (gdb)=20 4106 if (__i < 0 || __i >=3D TREE_OPERAND_LENGTH (__u)) (gdb)=20 11256 exp =3D TREE_OPERAND (exp, 0); (gdb)=20 11204 if (!CONVERT_EXPR_P (exp) (gdb)=20 11205 && TREE_CODE (exp) !=3D NON_LVALUE_EXPR) (gdb)=20 11258 } (gdb)=20 darwin_build_constant_cfstring (str=3D0x1429c1e40) at ../../gcc-4.8-20121011/gcc/config/darwin.c:3324 3324 if (TREE_CODE (str) =3D=3D ADDR_EXPR) (gdb)=20 3327 if (TREE_CODE (str) !=3D STRING_CST) (gdb)=20 3329 error ("CFString literal expression is not a string constant"= ); (gdb)=20 /sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20121011/gcc/testsuite/g++.dg/o= ther/darwin-cfstring1.C: In function =E2=80=98int main()=E2=80=99: /sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20121011/gcc/testsuite/g++.dg/o= ther/darwin-cfstring1.C:13:79: error: CFString literal expression is not a string constant /sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20121011/gcc/testsuite/g++.dg/o= ther/darwin-cfstring1.C:21:20: note: in expansion of macro 'CFSTR' Breakpoint 1, darwin_build_constant_cfstring (str=3D0x1429c1e70) at ../../gcc-4.8-20121011/gcc/config/darwin.c:3316 3316 if (!str) (gdb)=20 3322 STRIP_NOPS (str); (gdb)=20 tree_strip_nop_conversions (exp=3D0x1429c1e70) at ../../gcc-4.8-20121011/gcc/tree.c:11254 11254 { (gdb)=20 11204 if (!CONVERT_EXPR_P (exp) (gdb)=20 11205 && TREE_CODE (exp) !=3D NON_LVALUE_EXPR) (gdb)=20 11258 } (gdb)=20 darwin_build_constant_cfstring (str=3D0x1429c1e70) at ../../gcc-4.8-20121011/gcc/config/darwin.c:3324 3324 if (TREE_CODE (str) =3D=3D ADDR_EXPR) (gdb)=20 3327 if (TREE_CODE (str) !=3D STRING_CST) (gdb)=20 3329 error ("CFString literal expression is not a string constant"= ); (gdb)=20 /sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20121011/gcc/testsuite/g++.dg/o= ther/darwin-cfstring1.C:13:79: error: CFString literal expression is not a string constant /sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20121011/gcc/testsuite/g++.dg/o= ther/darwin-cfstring1.C:22:20: note: in expansion of macro 'CFSTR' Program exited with code 01.