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

Bernd Edlinger <bernd.edlinger at hotmail dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |arm-linux-gnueabihf
          Component|fortran                     |c++
               Host|                            |arm-linux-gnueabihf
              Build|                            |arm-linux-gnueabihf

--- Comment #3 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
The problem is in the C compiler:

arm-linux-gnueabihf-g++ -c   -g -O2 -DIN_GCC    -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common 
-DHAVE_CONFIG_H -I. -I. -I../../gcc-5-20150315/gcc -I../../gcc-5-20150315/gcc/.
-I../../gcc-5-20150315/gcc/../include
-I../../gcc-5-20150315/gcc/../libcpp/include
-I/home/ed/gnu/gcc-build-arm-linux-gnueabihf-cross/./gmp
-I/home/ed/gnu/gcc-5-20150315/gmp
-I/home/ed/gnu/gcc-build-arm-linux-gnueabihf-cross/./mpfr
-I/home/ed/gnu/gcc-5-20150315/mpfr -I/home/ed/gnu/gcc-5-20150315/mpc/src 
-I../../gcc-5-20150315/gcc/../libdecnumber
-I../../gcc-5-20150315/gcc/../libdecnumber/dpd -I../libdecnumber
-I../../gcc-5-20150315/gcc/../libbacktrace
-I/home/ed/gnu/gcc-build-arm-linux-gnueabihf-cross/./isl/include
-I/home/ed/gnu/gcc-5-20150315/isl/include  -o tree-cfg.o -MT tree-cfg.o -MMD
-MP -MF ./.deps/tree-cfg.TPo ../../gcc-5-20150315/gcc/tree-cfg.c -save-temps

results in this wrong code:
        .loc 7 3334 0
        mov     r3, ip
...
        .loc 7 3334 0
        movt    r3, #:upper16:tree_code_length
        str     r3, [sp, #8]
...

but "ip" is undefined, and thus the inlined version of
tree_operand_check accesses something completely wrong
instead of tree_code_length.

Reply via email to