public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PR47785] COLLECT_AS_OPTIONS
@ 2019-10-02  8:39 Kugan Vivekanandarajah
  2019-10-02 10:41 ` Richard Biener
  0 siblings, 1 reply; 45+ messages in thread
From: Kugan Vivekanandarajah @ 2019-10-02  8:39 UTC (permalink / raw)
  To: GCC Patches

[-- Attachment #1: Type: text/plain, Size: 1011 bytes --]

Hi,

As mentioned in the PR, attached patch adds COLLECT_AS_OPTIONS for
passing assembler options specified with -Wa, to the link-time driver.

The proposed solution only works for uniform -Wa options across all
TUs. As mentioned by Richard Biener, supporting non-uniform -Wa flags
would require either adjusting partitioning according to flags or
emitting multiple object files  from a single LTRANS CU. We could
consider this as a follow up.

Bootstrapped and regression tests on  arm-linux-gcc. Is this OK for trunk?

Thanks,
Kugan


gcc/ChangeLog:

2019-10-02  kugan.vivekanandarajah  <kugan.vivekanandarajah@linaro.org>

PR lto/78353
* gcc.c (putenv_COLLECT_AS_OPTION): New to set COLLECT_AS_OPTION in env.
(driver::main): Call putenv_COLLECT_AS_OPTION.
* lto-wrapper.c (run_gcc): use COLLECT_AS_OPTION from env.

gcc/testsuite/ChangeLog:

2019-10-02  kugan.vivekanandarajah  <kugan.vivekanandarajah@linaro.org>

PR lto/78353
* gcc.target/arm/pr78353-1.c: New test.
* gcc.target/arm/pr78353-2.c: New test.

[-- Attachment #2: 0001-COLLECT_AS-support.patch --]
[-- Type: application/x-patch, Size: 4041 bytes --]

^ permalink raw reply	[flat|nested] 45+ messages in thread

end of thread, other threads:[~2021-04-12  9:40 UTC | newest]

Thread overview: 45+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-02  8:39 [PR47785] COLLECT_AS_OPTIONS Kugan Vivekanandarajah
2019-10-02 10:41 ` Richard Biener
2019-10-11  5:42   ` Kugan Vivekanandarajah
2019-10-11 11:37     ` Richard Biener
2019-10-21  9:22       ` Kugan Vivekanandarajah
2019-10-23 12:12         ` Richard Biener
2019-10-28  3:32           ` Kugan Vivekanandarajah
2019-10-28 22:02             ` Bernhard Reutner-Fischer
2019-10-28 22:11               ` Richard Earnshaw
2019-10-29  7:53                 ` Bernhard Reutner-Fischer
2019-10-29  9:02                   ` Richard Biener
2019-10-28 22:36               ` Kugan Vivekanandarajah
2019-10-29 16:26             ` H.J. Lu
2019-11-01  1:33               ` Kugan Vivekanandarajah
2019-11-01 15:49                 ` H.J. Lu
2019-11-04  2:46                   ` Kugan Vivekanandarajah
2019-11-04 16:57                     ` H.J. Lu
2019-11-04 23:17                       ` Kugan Vivekanandarajah
2019-11-05 12:08                         ` Richard Biener
2019-11-08  2:36                           ` Kugan Vivekanandarajah
2019-11-14 12:30                             ` Richard Biener
2020-01-08 10:20                           ` Prathamesh Kulkarni
2020-01-15  9:47                             ` Prathamesh Kulkarni
2020-01-17 17:04                               ` H.J. Lu
2020-01-20 10:32                             ` Richard Biener
2020-01-24  8:29                               ` Prathamesh Kulkarni
2020-01-28 12:06                                 ` Richard Biener
2020-01-30  7:10                                   ` Prathamesh Kulkarni
2020-01-30 13:49                                     ` Richard Biener
2020-02-03 11:37                                       ` Prathamesh Kulkarni
2020-02-04 14:14                                         ` Richard Biener
2020-02-06 12:49                                           ` Prathamesh Kulkarni
2020-02-06 13:12                                             ` Richard Biener
2020-02-06 14:34                                               ` Prathamesh Kulkarni
2020-02-17  9:28                                                 ` Prathamesh Kulkarni
2020-02-17 14:22                                                   ` Richard Biener
2020-02-18 12:52                                                     ` Prathamesh Kulkarni
2020-02-18 14:10                                                       ` Richard Biener
2020-02-18 23:19                                                         ` Prathamesh Kulkarni
2020-02-19 14:24                                                           ` Richard Biener
2020-02-24  6:32                                                             ` Prathamesh Kulkarni
2020-02-24 13:10                                                               ` Christophe Lyon
2020-02-25  6:18                                                                 ` Prathamesh Kulkarni
2021-04-09 20:16                                                               ` [GCC 9] " H.J. Lu
2021-04-12  9:40                                                                 ` Richard Biener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).