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/54934] [fortran] Invalid >4GB array bounds with 32-bit target


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

--- Comment #3 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2012-10-15 18:47:05 UTC ---
Created attachment 28452
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28452
.S from reproducer for -m32 output fixed by hand

.S file is a fix-up by hand to make -m32 working:
#if 0
original - not working
#else
patched - working
#endif

Or for original GCC output:
-m64 (working) -> -m32 (not working)

    <88>   DW_AT_lower_bound : 0xfffffffeffffffff
    <90>   DW_AT_upper_bound : 0xffffffff00000000
->
    <74>   DW_AT_lower_bound : 0xffffffff
    <78>   DW_AT_upper_bound : 0        

    <b5>   DW_AT_lower_bound : 0x100000000
    <bd>   DW_AT_upper_bound : 0x100000001
->
    <96>   DW_AT_lower_bound : 0
    <97>   DW_AT_upper_bound : 1


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