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 tree-optimization/30262] New: [4.1/4.2/4.3 Regression] ICE with nested fn accessed var in asm "m" constraint


void
foo (void)
{
  unsigned int x = 0;

  void bar (void)
  {
    x = 254;
  }

  bar ();
  asm volatile ("" :: "m" (x));
}

ICEs in various places at -O and higher in both 4.1.1 and on the trunk.
>From initial skim, it seems tree-nested.c ought to be more careful when
changing
asms.


-- 
           Summary: [4.1/4.2/4.3 Regression] ICE with nested fn accessed var
                    in asm "m" constraint
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org


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


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