public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/95652] New: GCC 8.3.1 generates syntactically incorrect assembly code
@ 2020-06-12 10:47 teo.samarzija at gmail dot com
  2020-06-12 11:19 ` [Bug c/95652] " teo.samarzija at gmail dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: teo.samarzija at gmail dot com @ 2020-06-12 10:47 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95652

            Bug ID: 95652
           Summary: GCC 8.3.1 generates syntactically incorrect assembly
                    code
           Product: gcc
           Version: 8.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: teo.samarzija at gmail dot com
  Target Milestone: ---

Hey, guys!

So, I think I've found a bug in GCC 8.3.1 that occurs on Linux. Here is a
simple test case:

int printf(const char*,...);

float eax;

int main() {
    eax=7;
    printf("%lf\n",eax);
}

When compiled with "gcc -masm=intel -o test test.c", I get the error messages:

/tmp/ccGiemfM.s: Assembler messages:
/tmp/ccGiemfM.s:20: Error: invalid use of register
/tmp/ccGiemfM.s:21: Error: invalid use of register

It appears as though GCC 8.3.1 generates syntactically incorrect assembly code
for that.
Possibly related: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52554

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-12-31 15:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-12 10:47 [Bug c/95652] New: GCC 8.3.1 generates syntactically incorrect assembly code teo.samarzija at gmail dot com
2020-06-12 11:19 ` [Bug c/95652] " teo.samarzija at gmail dot com
2020-06-12 11:41 ` [Bug target/95652] GCC 8.3.1 generates syntactically incorrect assembly code with -masm=intel pinskia at gcc dot gnu.org
2020-06-12 16:11 ` teo.samarzija at gmail dot com
2020-06-12 19:16 ` ubizjak at gmail dot com
2020-06-12 19:18 ` teo.samarzija at gmail dot com
2020-06-12 19:22 ` ubizjak at gmail dot com
2020-12-31 15:08 ` hjl.tools at gmail dot com
2020-12-31 15:08 ` hjl.tools at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).