From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28180 invoked by alias); 28 Jan 2014 17:17:02 -0000 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 Received: (qmail 28162 invoked by uid 48); 28 Jan 2014 17:16:58 -0000 From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/59679] gcc version 4.7.3 and gcc version 4.5.3 cause an unaligned access exception on NetBSD/Alpha Date: Tue, 28 Jan 2014 17:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 4.7.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-01/txt/msg02915.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D59679 --- Comment #14 from Uro=C5=A1 Bizjak --- There is no differences in .optimized tree dumps. >>From gcc-bugs-return-441774-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jan 28 17:43:50 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 25818 invoked by alias); 28 Jan 2014 17:43:50 -0000 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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 25788 invoked by uid 48); 28 Jan 2014 17:43:46 -0000 From: "janus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/59941] [4.7 Regression] [OOP] ICE with polymorphic types Date: Tue, 28 Jan 2014 17:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.7.4 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: janus at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-01/txt/msg02916.txt.bz2 Content-length: 1585 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D59941 --- Comment #10 from janus at gcc dot gnu.org --- (In reply to janus from comment #8) > Backtrace from gdb: >=20 >=20 > Program received signal SIGSEGV, Segmentation fault. > 0x00000000004d19d6 in replace_comp (expr=3Dexpr@entry=3D0x146cc10, > sym=3Dsym@entry=3D0x146f7a0, i=3Di@entry=3D0x7fffffffdc6c) > at /home/jweil/gcc47/branch/gcc/fortran/expr.c:4199 > 4199 && !gfc_is_intrinsic (expr->symtree->n.sym, 0, expr->where))) > (gdb) bt > #0 0x00000000004d19d6 in replace_comp (expr=3Dexpr@entry=3D0x146cc10, > sym=3Dsym@entry=3D0x146f7a0, i=3Di@entry=3D0x7fffffffdc6c) > at /home/jweil/gcc47/branch/gcc/fortran/expr.c:4199 Here in replace_comp, the sym is 'get_smatrix', and the problem is that expr->symtree is NULL. > #1 0x00000000004d46ba in gfc_traverse_expr (expr=3D0x146cc10, > sym=3Dsym@entry=3D0x146f7a0,=20 > func=3Dfunc@entry=3D0x4d19a0 , f=3Df@entry=3D0) at > /home/jweil/gcc47/branch/gcc/fortran/expr.c:3929 > #2 0x00000000004d6c9c in gfc_expr_replace_comp (expr=3D, > dest=3Ddest@entry=3D0x146f7a0) > at /home/jweil/gcc47/branch/gcc/fortran/expr.c:4218 > #3 0x0000000000524615 in resolve_fl_derived0 (sym=3Dsym@entry=3D0x146e59= 0) > at /home/jweil/gcc47/branch/gcc/fortran/resolve.c:11724 > #4 0x000000000052c80d in resolve_fl_derived (sym=3Dsym@entry=3D0x146e590) > at /home/jweil/gcc47/branch/gcc/fortran/resolve.c:12046 In here the sym is '__vtype_beam_structures_Beam_structure_t' (the vtabs and vtypes are always imported when loading a module). >>From gcc-bugs-return-441775-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jan 28 17:44:54 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 26629 invoked by alias); 28 Jan 2014 17:44:54 -0000 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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 26597 invoked by uid 48); 28 Jan 2014 17:44:49 -0000 From: "Denis.V.Kolesnik@safe-mail.net" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/59598] very simple code using file open for read Date: Tue, 28 Jan 2014 17:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.6.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: blocker X-Bugzilla-Who: Denis.V.Kolesnik@safe-mail.net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-01/txt/msg02917.txt.bz2 Content-length: 5326 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D59598 Denis Kolesnik changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|INVALID |--- --- Comment #34 from Denis Kolesnik --- // a small text file filter.c // #include main(int argc, char* argv[]) { char c, previous_c;=20=20=20=20=20=20=20 int word_begin_position[3000]; //int spec_symbol[7]=3D{0xAE,0xBB,0xAB,0xA9,0x22,0x2F,0x27}; //int eof_symbol[2]=3D{0x0D,0x0A}; int search_result; int this_is_the_same_word; int words_count; int word_number; int search_result_A_count; int search_result_space; FILE *stream,*stream2; int i, j, characters_count, character_number; int other_character_printed; // double characters int A_count, E_count; characters_count=3D0;=20=20=20=20 stream =3D fopen (argv[1],"r"); while ((c =3D fgetc(stream)) !=3D EOF)=20 {=20=20=20=20 characters_count++; } fclose(stream); //printf("total characters are %i\n", characters_count);=20 character_number=3D1; words_count=3D0; previous_c=3D0; stream =3D fopen (argv[1],"r"); while ((c =3D fgetc(stream)) !=3D EOF)=20 { if(((c!=3D0x20) && (character_number=3D=3D1)) || ((previous_c=3D=3D= 0x20) && (c!=3D0x20) && (c!=3D0x0A)) || ((previous_c!=3D0x20) && (c=3D=3D0x0D)) || (= (c!=3D0x20) && (c!=3D0x0D) && (c!=3D0x0A) && (previous_c=3D=3D0x0A)) || ((previous_c!=3D0x= 20) && (previous_c!=3D0x0A) && (character_number=3D=3Dcharacters_count) && (c=3D= =3D0x20))) // 1. ((c!=3D0x20) && (character_number=3D=3D1)) // 2. ((previous_c=3D=3D0x20) && (c!=3D0x20) && (c!=3D0x0A)) // 3. ((previous_c!=3D0x20) && (c=3D=3D0x0D)) // !((previous_c!=3D0x0D) && (c=3D=3D0x0A)) // 4. ((c!=3D0x20) && (c!=3D0x0D) && (c!=3D0x0A) && (previous_c=3D= =3D0x0A)) // 5. ((previous_c!=3D0x20) && (previous_c!=3D0x0A) && (character_number=3D=3Dcharacters_count) && (c=3D=3D0x20)) this_is_the_same_word=3D0; else this_is_the_same_word=3D1; if(this_is_the_same_word=3D=3D0) { words_count++;=20=20=20=20=20=20=20=20=20=20=20=20 word_begin_position[words_count]=3Dcharacter_number; //printf(" the begin char is ..... %i",word_begin_position[words_count]); } //if(character_number=3D=3Dcharacters_count) // printf("the last character"); /* printf(" the number of words is %i\n", words_count); printf(" the current character is ..... %c\n", c); if(c=3D=3D0x0D) printf(" the current character is ..... 0x0D\n"); if(c=3D=3D0x0A) printf(" the current character is ..... 0x0A\n"); */ previous_c=3Dc; character_number++; } fclose(stream); word_number=3D1;=20=20=20=20 character_number=3D1; A_count=3D1; E_count=3D1; stream =3D fopen (argv[1],"r"); //stream2 =3D fopen (argv[2],"w"); while ((c =3D fgetc(stream)) !=3D EOF)=20 {=20=20=20=20 other_character_printed=3D0; if(words_count>=3D2) if(word_number=3D word_begin_position[word_number]) && (character_number < word_begin_position[word_number+1])) { A_count=3D1; E_count=3D1; word_number++; } //printf("\n the word begin position %i\n",word_begin_position[word_number]); //printf("\n1 char is %i\n", character_number); //printf("\nthe words count is %i\n", words_count); // A if((other_character_printed=3D=3D0) && ((c=3D=3D'a') || (c=3D=3D'= =D0=B0') || (c=3D=3D'A') || (c=3D=3D'=D0=90')) ) if(A_count=3D=3D1) { printf("A1"); A_count=3D2; other_character_printed=3D1; } else { printf("A2"); A_count=3D1; other_character_printed=3D1; } else if((other_character_printed=3D=3D0) && ((c!=3D'=D0=B5') && (c!=3D'e= ') && (c!=3D'=D0=95') && (c!=3D'E'))) { printf("%c", c); other_character_printed=3D1; } // E if((other_character_printed=3D=3D0) && ((c=3D=3D'e') || (c=3D=3D'= =D0=B5') || (c=3D=3D'E') || (c=3D=3D'=D0=95')) ) if(E_count=3D=3D1) { printf("E1"); E_count=3D2; other_character_printed=3D1; } else { printf("E2"); E_count=3D1; other_character_printed=3D1; } else if((other_character_printed=3D=3D0) && ((c!=3D'a') && (c!=3D'=D0=B0= ') && (c!=3D'=D0=90') && (c!=3D'A'))) { printf("%c", c); other_character_printed=3D1; } //if(c=3D=3D'0') //{ // printf("%c", c); // other_character_printed=3D1; //} character_number++; } fclose(stream); //printf(" the number of words is %i", words_count); return 0; } >>From gcc-bugs-return-441776-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jan 28 17:45:47 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 27582 invoked by alias); 28 Jan 2014 17:45:46 -0000 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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 27547 invoked by uid 48); 28 Jan 2014 17:45:43 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/59968] Unused BT patterns Date: Tue, 28 Jan 2014 17:45: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-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-01/txt/msg02918.txt.bz2 Content-length: 501 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59968 --- Comment #6 from H.J. Lu --- For int __attribute__((noinline)) foo1 (int x, int y) { int z; z = x & (1 << y); x |= 1 << y; x &= ~z; return x; } we generate: movl %esi, %ecx movl $1, %edx sall %cl, %edx movl %edx, %eax orl %edi, %eax andl %edx, %edi notl %edi andl %edi, %eax ret I expect: movl %edi, %eax btc %esi, %eax ret