public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/21112] New: Xassebler and Xpreprocessor have never (?) worked
@ 2005-04-19 20:49 wilson at gcc dot gnu dot org
  2005-04-19 20:54 ` [Bug driver/21112] [3.4/4.0/4.1 Regression] Xassebler and Xpreprocessor does not worked pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: wilson at gcc dot gnu dot org @ 2005-04-19 20:49 UTC (permalink / raw)
  To: gcc-bugs

The Xassembler and Xpreprocessor options don't work.  They accidentally pass
options to the linker in addition to the assembler and preprocessor.

For example, on linux, the assembler ignores the -D option, but the linker does
not.  If I try using -Xassembler to pass the -D option to the assembler, I get a
linker error.
aretha$ ./xgcc -B./ -Xassembler -D tmp.c
/usr/bin/ld: unrecognized option '-D'
/usr/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status

Adding the -v option confirms that -D got passed to both the assembler and the
linker, which is wrong.

The -Xpreprocessor option has the same implementation as -Xassembler, and hence
the same problem.

-- 
           Summary: Xassebler and Xpreprocessor have never (?) worked
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: driver
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: wilson at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21112


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

* [Bug driver/21112] [3.4/4.0/4.1 Regression] Xassebler and Xpreprocessor does not  worked
  2005-04-19 20:49 [Bug driver/21112] New: Xassebler and Xpreprocessor have never (?) worked wilson at gcc dot gnu dot org
@ 2005-04-19 20:54 ` pinskia at gcc dot gnu dot org
  2005-05-04 17:20 ` [Bug driver/21112] [3.4/4.0/4.1 Regression] Xassembler " cvs-commit at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-19 20:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-19 20:54 -------
Confirmed.  -Xassebler did not exist in 3.3.3 but -Xpreprocessor did and works as expected.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
      Known to fail|                            |3.4.0 4.0.0 4.1.0
      Known to work|                            |3.3.3
   Last reconfirmed|0000-00-00 00:00:00         |2005-04-19 20:54:06
               date|                            |
            Summary|Xassebler and Xpreprocessor |[3.4/4.0/4.1 Regression]
                   |have never (?) worked       |Xassebler and Xpreprocessor
                   |                            |does not  worked
   Target Milestone|---                         |3.4.4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21112


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

* [Bug driver/21112] [3.4/4.0/4.1 Regression] Xassembler and Xpreprocessor does not  worked
  2005-04-19 20:49 [Bug driver/21112] New: Xassebler and Xpreprocessor have never (?) worked wilson at gcc dot gnu dot org
  2005-04-19 20:54 ` [Bug driver/21112] [3.4/4.0/4.1 Regression] Xassebler and Xpreprocessor does not worked pinskia at gcc dot gnu dot org
@ 2005-05-04 17:20 ` cvs-commit at gcc dot gnu dot org
  2005-05-04 18:42 ` wilson at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-05-04 17:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-05-04 17:20 -------
Subject: Bug 21112

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	wilson@gcc.gnu.org	2005-05-04 17:20:44

Modified files:
	gcc            : ChangeLog gcc.c 

Log message:
	Fix the Xassembler and Xpreprocessor options, which have never worked right.
	PR driver/21112
	* gcc.c (process_command): In the second argv scan loop, ignore
	Xassembler and Xpreprocessor, along with their argument.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.8599&r2=2.8600
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gcc.c.diff?cvsroot=gcc&r1=1.456&r2=1.457



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21112


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

* [Bug driver/21112] [3.4/4.0/4.1 Regression] Xassembler and Xpreprocessor does not  worked
  2005-04-19 20:49 [Bug driver/21112] New: Xassebler and Xpreprocessor have never (?) worked wilson at gcc dot gnu dot org
  2005-04-19 20:54 ` [Bug driver/21112] [3.4/4.0/4.1 Regression] Xassebler and Xpreprocessor does not worked pinskia at gcc dot gnu dot org
  2005-05-04 17:20 ` [Bug driver/21112] [3.4/4.0/4.1 Regression] Xassembler " cvs-commit at gcc dot gnu dot org
@ 2005-05-04 18:42 ` wilson at gcc dot gnu dot org
  2005-05-04 18:51 ` wilson at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: wilson at gcc dot gnu dot org @ 2005-05-04 18:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From wilson at gcc dot gnu dot org  2005-05-04 18:42 -------
Mine.

Andrew Pinski claims Xpreprocessor was in gcc-3.3.3 and works, but I can find no
evidence to support that.  It does not show up in a grep of FSF gcc-3.3.x
sources.  Also, the original patch that added Xassembler also added
Xpreprocessor, so I do not see how one could have existed before the other.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |wilson at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-04-19 20:54:06         |2005-05-04 18:42:51
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21112


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

* [Bug driver/21112] [3.4/4.0/4.1 Regression] Xassembler and Xpreprocessor does not  worked
  2005-04-19 20:49 [Bug driver/21112] New: Xassebler and Xpreprocessor have never (?) worked wilson at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-05-04 18:42 ` wilson at gcc dot gnu dot org
@ 2005-05-04 18:51 ` wilson at gcc dot gnu dot org
  2005-05-04 18:51 ` [Bug driver/21112] " pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: wilson at gcc dot gnu dot org @ 2005-05-04 18:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From wilson at gcc dot gnu dot org  2005-05-04 18:51 -------
Fixed on mainline.

I do not believe that there is any regression here, and hence I do not believe
that the patch needs to be applied to the gcc-3.4 or gcc-4.0 branches.  I'll
leave this open for now in case anyone wants to disagree with me.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21112


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

* [Bug driver/21112] Xassembler and Xpreprocessor does not  worked
  2005-04-19 20:49 [Bug driver/21112] New: Xassebler and Xpreprocessor have never (?) worked wilson at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2005-05-04 18:51 ` wilson at gcc dot gnu dot org
@ 2005-05-04 18:51 ` pinskia at gcc dot gnu dot org
  2005-05-04 19:41 ` wilson at gcc dot gnu dot org
  2005-06-05  7:45 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-04 18:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-04 18:51 -------
(In reply to comment #3)
> Mine.

Woops I was wrong, I was looking at it wrongly.  I must have missed the warning:
gcc: unrecognized option `-Xpreprocessor'

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|3.3.3                       |
            Summary|[3.4/4.0/4.1 Regression]    |Xassembler and Xpreprocessor
                   |Xassembler and Xpreprocessor|does not  worked
                   |does not  worked            |
   Target Milestone|3.4.4                       |---


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21112


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

* [Bug driver/21112] Xassembler and Xpreprocessor does not  worked
  2005-04-19 20:49 [Bug driver/21112] New: Xassebler and Xpreprocessor have never (?) worked wilson at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2005-05-04 18:51 ` [Bug driver/21112] " pinskia at gcc dot gnu dot org
@ 2005-05-04 19:41 ` wilson at gcc dot gnu dot org
  2005-06-05  7:45 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: wilson at gcc dot gnu dot org @ 2005-05-04 19:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From wilson at gcc dot gnu dot org  2005-05-04 19:39 -------
Since everyone agrees there is no regression, I am closing.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Known to fail|3.4.0 4.0.0 4.1.0           |3.4.0 4.0.0
      Known to work|                            |4.1.0
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21112


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

* [Bug driver/21112] Xassembler and Xpreprocessor does not  worked
  2005-04-19 20:49 [Bug driver/21112] New: Xassebler and Xpreprocessor have never (?) worked wilson at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2005-05-04 19:41 ` wilson at gcc dot gnu dot org
@ 2005-06-05  7:45 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-05  7:45 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.1.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21112


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

end of thread, other threads:[~2005-06-05  7:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-19 20:49 [Bug driver/21112] New: Xassebler and Xpreprocessor have never (?) worked wilson at gcc dot gnu dot org
2005-04-19 20:54 ` [Bug driver/21112] [3.4/4.0/4.1 Regression] Xassebler and Xpreprocessor does not worked pinskia at gcc dot gnu dot org
2005-05-04 17:20 ` [Bug driver/21112] [3.4/4.0/4.1 Regression] Xassembler " cvs-commit at gcc dot gnu dot org
2005-05-04 18:42 ` wilson at gcc dot gnu dot org
2005-05-04 18:51 ` wilson at gcc dot gnu dot org
2005-05-04 18:51 ` [Bug driver/21112] " pinskia at gcc dot gnu dot org
2005-05-04 19:41 ` wilson at gcc dot gnu dot org
2005-06-05  7:45 ` pinskia at gcc dot gnu dot 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).