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 debug/55721] New: -mabi=64 compilation results in unknown UNSPEC note


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

             Bug #: 55721
           Summary: -mabi=64 compilation results in unknown UNSPEC note
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: sje@gcc.gnu.org
            Target: mips*-*-*


When compiling the following testsuite with "-O2 -g -mips64r2 -mabi=64", GCC
generates a note about a 'non-deligitimized UNSPEC'.  I think this program
conforms to Ansi C and it doesn't generates any notes or warnings when compiled
with -mabi=32 or -mabi=n32 and I don't think it should generate a note when
compiled with -mabi=64.

static void sibcall3 (void) { }
extern void bar (void (*) (void));

int nested (int x)
{
  bar (sibcall3);
  return 1;
}

% gcc -mips64r2 -mabi=64 -c -O2 -g x.c
x.c: In function ânestedâ:
x.c:4:5: note: non-delegitimized UNSPEC unknown (230) found in variable
location
 int nested (int x)

The mips target does not have a UNSPEC number 230.


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