public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/94902] New: [10 Regression] internal compiler error: output_operand: invalid use of register 'frame'
@ 2020-05-01 13:27 anbu1024.me at gmail dot com
  2020-05-04  6:23 ` [Bug c/94902] " rguenth at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: anbu1024.me at gmail dot com @ 2020-05-01 13:27 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 94902
           Summary: [10 Regression] internal compiler error:
                    output_operand: invalid use of register 'frame'
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: anbu1024.me at gmail dot com
  Target Milestone: ---

$ cat reduced.c 

void foo ( void ) { 
        register int x asm ( "19" ) ; 
        x -- ; 
}

--------------------------------------------------------------------------------

$ gcc-10 --version
gcc (GCC) 10.0.1 20200419 (experimental)
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

--------------------------------------------------------------------------------

$ gcc-10 reduced.c 
reduced.c: In function ‘foo’:
reduced.c:5:1: error: frame cannot be used in ‘asm’ here
    5 | }
      | ^
during RTL pass: final
reduced.c:5:1: internal compiler error: output_operand: invalid use of register
'frame'
0xa58bb6 output_operand_lossage(char const*, ...)
        ../../gcc-10-20200419/gcc/final.c:3609
0xa58ee1 output_operand(rtx_def*, int)
        ../../gcc-10-20200419/gcc/final.c:4051
0xa59a3d output_asm_insn(char const*, rtx_def**)
        ../../gcc-10-20200419/gcc/final.c:3963
0xa5d3e7 final_scan_insn_1
        ../../gcc-10-20200419/gcc/final.c:3106
0xa5d6ab final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*)
        ../../gcc-10-20200419/gcc/final.c:3152
0xa5d7b6 final_1
        ../../gcc-10-20200419/gcc/final.c:2020
0xa5e374 rest_of_handle_final
        ../../gcc-10-20200419/gcc/final.c:4658
0xa5e374 execute
        ../../gcc-10-20200419/gcc/final.c:4736
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

--------------------------------------------------------------------------------

gcc-9 --version
gcc (GCC) 9.3.1 20200425
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

--------------------------------------------------------------------------------

$ gcc-9 reduced.c 
reduced.c: In function ‘foo’:
reduced.c:5:1: error: frame cannot be used in asm here
    5 | }
      | ^
reduced.c:5: confused by earlier errors, bailing out

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

end of thread, other threads:[~2020-05-04  8:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-01 13:27 [Bug c/94902] New: [10 Regression] internal compiler error: output_operand: invalid use of register 'frame' anbu1024.me at gmail dot com
2020-05-04  6:23 ` [Bug c/94902] " rguenth at gcc dot gnu.org
2020-05-04  6:34 ` asolokha at gmx dot com
2020-05-04  7:12 ` ubizjak at gmail dot com
2020-05-04  7:53 ` jakub at gcc dot gnu.org
2020-05-04  7:54 ` jakub at gcc dot gnu.org
2020-05-04  8:04 ` jakub at gcc dot gnu.org
2020-05-04  8:08 ` jakub at gcc dot gnu.org
2020-05-04  8:52 ` pinskia at gcc dot gnu.org
2020-05-04  8:54 ` pinskia at gcc dot gnu.org

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).