Pass -ffrontend-opt arguments to frontend plugin in the correct order
authordoug <douglas.wilson@gmail.com>
Thu, 4 May 2017 18:16:17 +0000 (14:16 -0400)
committerBen Gamari <ben@smart-cactus.org>
Thu, 4 May 2017 22:20:44 +0000 (18:20 -0400)
commitdb10b79994f7728cbaaa906c6f6eda0b6783df29
tree16c260e5f30d7773fd5d05df1facedfb4293171c
parenta660844c0859b7a2e76c15f2fb4abec209afea90
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
compiler/main/DynFlags.hs
ghc/Main.hs
testsuite/tests/plugins/Makefile
testsuite/tests/plugins/frontend01.stdout