[Bug target/84790] Miscompilation for MIPS16 with -fpic and -Os or -O2

2018-03-10 Thread mschif...@universe-factory.net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84790 --- Comment #2 from Matthias Schiffer <mschif...@universe-factory.net> --- The problem seems to be that the gp init sequence li $2,%hi(_gp_disp) addiu $3,$pc,%lo(_gp_disp) sll $2,16 addu

[Bug target/84790] Miscompilation for MIPS16 with -fpic and -Os or -O2

2018-03-10 Thread mschif...@universe-factory.net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84790 --- Comment #1 from Matthias Schiffer <mschif...@universe-factory.net> --- Issue still present in gcc version 8.0.1 20180310 (experimental) (GCC). Again, output it identical to that of GCC 5 and 7.

[Bug c/84790] New: Miscompilation for MIPS16 with -fpic and -Os or -O2

2018-03-09 Thread mschif...@universe-factory.net
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: mschif...@universe-factory.net Target Milestone: --- Created attachment 43609 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43609=edit Reproducer C code Compiling the following piece of C code: void ext(v