This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/33351] [4.3 Regression] segfault in assembler function



------- Comment #4 from lauras at gcc dot gnu dot org  2007-09-08 18:36 -------
It sure looks like it is caused by my patch. I will be able to take care of
that on Monday. 

I think this change should fix it (completely untested): rewrite


                for (p = NEXT_INSN (prev); p != next; p = NEXT_INSN (p))
                  if (p != insn && INSN_P (p)
                     ...

as 
                rtx next_p;
                ...
                for (p = NEXT_INSN (prev); p != next; p = next_p)
                  {
                    next_p = NEXT_INSN (p);
                    if (p != insn && INSN_P (p))
                      ...
                  }

Sorry for the trouble.


-- 

lauras at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |lauras at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2007-09-08 12:45:26         |2007-09-08 18:36:18
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33351


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]