Bug 84750 - Both the driver and cc1 warn for Target Warn option properties
Summary: Both the driver and cc1 warn for Target Warn option properties
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: driver (show other bugs)
Version: 8.0.1
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: diagnostic
Depends on:
Blocks:
 
Reported: 2018-03-07 14:17 UTC by Segher Boessenkool
Modified: 2018-03-29 01:52 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2018-03-29 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Segher Boessenkool 2018-03-07 14:17:23 UTC
Try rs6000 with -mstring for example:

$ powerpc-linux-gcc -Wall -W -O2 -S 0.c -mstring   
powerpc-linux-gcc: warning: '-mstring' is deprecated
cc1: warning: '-mstring' is deprecated


Or on another target:

$ arc-elf-gcc -Wall -W -O2 -S 0.c -mcrc
arc-elf-gcc: warning: '-mcrc' is deprecated
cc1: warning: '-mcrc' is deprecated
Comment 1 Martin Sebor 2018-03-29 01:52:58 UTC
Confirmed with a powepc64le cross:

$ gcc -S -mstring -xc - < /dev/null
xgcc: warning: ‘-mstring’ is deprecated
cc1: warning: ‘-mstring’ is deprecated

With a native x86_64 gcc:

$ gcc -S -mpcommit -xc - < /dev/null
xgcc: warning: ‘-mpcommit’ was deprecated
cc1: warning: ‘-mpcommit’ was deprecated