[Bug target/91749] [10 Regression] ICE in arm_asm_trampoline_template, at config/arm/arm.c:3973

2019-09-11 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91749

Martin Liška  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2019-09-12
  Known to work||9.2.0
Version|9.0 |10.0
   Target Milestone|--- |10.0
 Ever confirmed|0   |1
  Known to fail||10.0

[Bug target/91749] [10 Regression] ICE in arm_asm_trampoline_template, at config/arm/arm.c:3973

2019-09-11 Thread clyon at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91749

--- Comment #1 from Christophe Lyon  ---
Can you share your configure options?

Also, it looks like you are forcing at least -mfdpic when running the
testsuite? 

Why did you put "known to work 9.2", since -mfdpic does not exist in that
version?

[Bug target/91749] [10 Regression] ICE in arm_asm_trampoline_template, at config/arm/arm.c:3973

2019-09-13 Thread clyon at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91749

Christophe Lyon  changed:

   What|Removed |Added

   Assignee|unassigned at gcc dot gnu.org  |clyon at gcc dot gnu.org

--- Comment #2 from Christophe Lyon  ---
Thumb-1 is not supported when using FDPIC.

In arm_option_override, we have:
  if (TARGET_FDPIC)
{
  arm_pic_register = FDPIC_REGNUM;
  if (TARGET_THUMB1)
sorry ("FDPIC mode is not supported in Thumb-1 mode");
}

but using -mflip-thumb overrides this check, and forces thumb-1 mode, hence the
failures.

[Bug target/91749] [10 Regression] ICE in arm_asm_trampoline_template, at config/arm/arm.c:3973

2019-09-13 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91749

--- Comment #3 from Martin Liška  ---
Yes, the known-to-work is a bit misleading here.
Anyway, the cross compiler is configured like this:

$ ~/BIG/bin/arm/dev/shm/buildbot/install/gcc/bin/arm-linux-gnueabi-gcc -v
Using built-in specs.
COLLECT_GCC=/home/marxin/BIG/bin/arm/dev/shm/buildbot/install/gcc/bin/arm-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/home/marxin/BIG/bin/arm/dev/shm/buildbot/install/gcc/bin/../lib/gcc/arm-linux-gnueabi/10.0.0/lto-wrapper
Target: arm-linux-gnueabi
Configured with:
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-arm/build/configure
--enable-languages=c,c++,fortran --disable-bootstrap --disable-libsanitizer
--disable-multilib --enable-checking=release
--prefix=/dev/shm/buildbot/install/gcc --target=arm-linux-gnueabi
--with-as=/usr/bin/arm-suse-linux-gnueabi-as
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.0.0 20190912 (experimental)
22116957c80879f7e46949c5bb65d174d375c43f (GCC)

[Bug target/91749] [10 Regression] ICE in arm_asm_trampoline_template, at config/arm/arm.c:3973

2019-09-17 Thread clyon at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91749

--- Comment #4 from Christophe Lyon  ---
Author: clyon
Date: Tue Sep 17 08:13:11 2019
New Revision: 275799

URL: https://gcc.gnu.org/viewcvs?rev=275799&root=gcc&view=rev
Log:
[PR91749][arm] FDPIC: Handle -mflip-thumb

2019-09-16  Christophe Lyon  

PR target/91749
* config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
mode attributed is supported by FDPIC.


Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/arm/arm.c

[Bug target/91749] [10 Regression] ICE in arm_asm_trampoline_template, at config/arm/arm.c:3973

2019-09-17 Thread clyon at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91749

Christophe Lyon  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #5 from Christophe Lyon  ---
Fixed