[GHC] #13632: Frontend plugin arguments are reversed
#13632: Frontend plugin arguments are reversed -------------------------------------+------------------------------------- Reporter: duog | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: GHC API | Version: 8.0.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: frontend01 | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- The arguments passed to a frontend plugin are passed in the opposite order to that with which they were passed to the command line. I will attach a diff that modifies the frontend01 test to exhibit the error. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13632> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13632: Frontend plugin arguments are reversed -------------------------------------+------------------------------------- Reporter: duog | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: GHC API | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: frontend01 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by duog): * Attachment "frontend-opts-bug.patch" added. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13632> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13632: Frontend plugin arguments are reversed -------------------------------------+------------------------------------- Reporter: duog | Owner: (none) Type: bug | Status: patch Priority: normal | Milestone: Component: GHC API | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: frontend01 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => patch Comment: Thanks for the test! -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13632#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13632: Frontend plugin arguments are reversed -------------------------------------+------------------------------------- Reporter: duog | Owner: (none) Type: bug | Status: patch Priority: normal | Milestone: Component: GHC API | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: frontend01 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"db10b79994f7728cbaaa906c6f6eda0b6783df29/ghc" db10b79/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="db10b79994f7728cbaaa906c6f6eda0b6783df29" Pass -ffrontend-opt arguments to frontend plugin in the correct order Previously they were passed in the reverse order that they're specified on the command line. Add a haddock to frontendPluginOpts in DynFlags.hs. Modify test frontend01 to cover the case of multiple -ffrontend-opt. Reviewers: austin, bgamari Reviewed By: bgamari Subscribers: rwbarton, thomie GHC Trac Issues: #13632 Differential Revision: https://phabricator.haskell.org/D3520 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13632#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13632: Frontend plugin arguments are reversed -------------------------------------+------------------------------------- Reporter: duog | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: GHC API | Version: 8.0.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: frontend01 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: patch => closed * resolution: => fixed * milestone: => 8.2.1 Comment: Thanks duog! -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13632#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13632: Frontend plugin arguments are reversed -------------------------------------+------------------------------------- Reporter: duog | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: GHC API | Version: 8.0.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: frontend01 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): Merged to `ghc-8.2` with 771e8d6838238fe87b2282696bff77fd4c474f71. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13632#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC