public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug pending/26016] New: using -S on a .S file does not work properly
@ 2006-01-29 9:58 vapier at gentoo dot org
2006-01-29 14:58 ` [Bug driver/26016] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: vapier at gentoo dot org @ 2006-01-29 9:58 UTC (permalink / raw)
To: gcc-bugs
in the uClibc build system, we have some generic rules to quickly produce .E
(gcc -E) and .s (gcc -S) files for debugging purposes
normally this is fine as most of uClibc is simple .c files, but i wanted to
check out the final .s output of a .S that used a lot of macros
when i tried to use `gcc -S` though, the output was the same as using -E, and
the -o option was ignored
$ echo > test.c
$ gcc-4.1.0-beta20060120 -S test.c
$ file test.s
test.s: ASCII text
$ echo > test.S
$ gcc-4.1.0-beta20060120 -S test.S
# 1 "test.S"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "test.S"
$ file test.s
test.s: cannot open `test.s' (No such file or directory)
--
Summary: using -S on a .S file does not work properly
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: pending
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: vapier at gentoo dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26016
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug driver/26016] using -S on a .S file does not work properly
2006-01-29 9:58 [Bug pending/26016] New: using -S on a .S file does not work properly vapier at gentoo dot org
@ 2006-01-29 14:58 ` pinskia at gcc dot gnu dot org
2007-11-15 17:16 ` manu at gcc dot gnu dot org
2007-11-15 17:36 ` manu at gcc dot gnu dot org
2 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-29 14:58 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Component|pending |driver
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26016
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug driver/26016] using -S on a .S file does not work properly
2006-01-29 9:58 [Bug pending/26016] New: using -S on a .S file does not work properly vapier at gentoo dot org
2006-01-29 14:58 ` [Bug driver/26016] " pinskia at gcc dot gnu dot org
@ 2007-11-15 17:16 ` manu at gcc dot gnu dot org
2007-11-15 17:36 ` manu at gcc dot gnu dot org
2 siblings, 0 replies; 5+ messages in thread
From: manu at gcc dot gnu dot org @ 2007-11-15 17:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from manu at gcc dot gnu dot org 2007-11-15 17:16 -------
Confirmed. Probably some issue with the default specs.
--
manu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu dot org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-11-15 17:16:06
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26016
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug driver/26016] using -S on a .S file does not work properly
2006-01-29 9:58 [Bug pending/26016] New: using -S on a .S file does not work properly vapier at gentoo dot org
2006-01-29 14:58 ` [Bug driver/26016] " pinskia at gcc dot gnu dot org
2007-11-15 17:16 ` manu at gcc dot gnu dot org
@ 2007-11-15 17:36 ` manu at gcc dot gnu dot org
2 siblings, 0 replies; 5+ messages in thread
From: manu at gcc dot gnu dot org @ 2007-11-15 17:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from manu at gcc dot gnu dot org 2007-11-15 17:35 -------
This patch is just a guess but it seems to fix this:
Index: gcc/gcc.c
===================================================================
--- gcc/gcc.c (revision 130174)
+++ gcc/gcc.c (working copy)
@@ -841,9 +841,9 @@
static const char *invoke_as =
#ifdef AS_NEEDS_DASH_FOR_PIPED_INPUT
-"%{!S:-o %|.s |\n as %(asm_options) %|.s %A }";
+"%{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %|.s |\n as %(asm_options) %|.s %A }";
#else
-"%{!S:-o %|.s |\n as %(asm_options) %m.s %A }";
+"%{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %|.s |\n as %(asm_options) %m.s %A }";
#endif
/* Some compilers have limits on line lengths, and the multilib_select
@@ -1029,12 +1029,12 @@
#ifdef AS_NEEDS_DASH_FOR_PIPED_INPUT
"%(trad_capable_cpp) -lang-asm %(cpp_options) -fno-directives-only\
%{E|M|MM:%(cpp_debug_options)}\
- %{!M:%{!MM:%{!E:%{!S:-o %|.s |\n\
+ %{!M:%{!MM:%{!E:%{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %|.s |\n\
as %(asm_debug) %(asm_options) %|.s %A }}}}"
#else
"%(trad_capable_cpp) -lang-asm %(cpp_options) -fno-directives-only\
%{E|M|MM:%(cpp_debug_options)}\
- %{!M:%{!MM:%{!E:%{!S:-o %|.s |\n\
+ %{!M:%{!MM:%{!E:%{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %|.s |\n\
as %(asm_debug) %(asm_options) %m.s %A }}}}"
#endif
, 0, 1, 0},
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26016
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug driver/26016] using -S on a .S file does not work properly
[not found] <bug-26016-4@http.gcc.gnu.org/bugzilla/>
@ 2022-11-28 21:44 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-11-28 21:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26016
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pskocik at gmail dot com
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 88131 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-11-28 21:44 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-29 9:58 [Bug pending/26016] New: using -S on a .S file does not work properly vapier at gentoo dot org
2006-01-29 14:58 ` [Bug driver/26016] " pinskia at gcc dot gnu dot org
2007-11-15 17:16 ` manu at gcc dot gnu dot org
2007-11-15 17:36 ` manu at gcc dot gnu dot org
[not found] <bug-26016-4@http.gcc.gnu.org/bugzilla/>
2022-11-28 21:44 ` pinskia at gcc dot gnu.org
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).