[Bug other/79792] configuring a nvptx-none build with --program-suffix=-7 results in a misnamed installed binary

2017-03-02 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79792

Richard Biener  changed:

   What|Removed |Added

   Keywords||build
 Target||nvptx

--- Comment #2 from Richard Biener  ---
When configured as accelerator for x86_64-suse-linux I get

/usr/bin/x86_64-suse-linux-accel-nvptx-none-gcc-7

[Bug other/79792] configuring a nvptx-none build with --program-suffix=-7 results in a misnamed installed binary

2017-03-01 Thread doko at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79792

--- Comment #1 from Matthias Klose  ---
--program-prefix= and --program-suffix= are never passed into the gcc subdir,
but are transformed to a --program-transform-name.

the toplevel (expanded from an autoconf macro) has:

# The aliases save the names the user supplied, while $host etc.
# will get canonicalized.
test -n "$target_alias" &&
  test "$program_prefix$program_suffix$program_transform_name" = \
NONENONEs,x,x, &&
  program_prefix=${target_alias}-

so the new program_prefix is ignored when --program-suffix= is passed. A work
around is to explicitly use --program-prefix=-.