1567 Commits
Author SHA1 Message Date
RabsRincon 8886821da4 Add a way to ensure no tracking is done and now 3rd party is available 2021-10-26 20:31:38 +02:00
Justus H 3d573e4b79 Fix IAR EWB implementation to work on Linux and tweak its ARM support (#3028)
* Fix path regex in IAR EWB asm parser to work with Linux paths

Currently the regex only supports Windows paths. This commit updates
the regex so that it works with Windows as well as Linux paths.

* Improve ARM support in IAR EWB asm parser
2021-10-22 08:55:13 -05:00
partouf 08611becc6 fix tools for prediscovered compilers 2021-10-22 13:00:42 +00:00
partouf c8569b8e4c fix tool includeKey things 2021-10-19 21:45:54 +00:00
partouf 8383b64d94 fix props lambda 2021-10-19 19:51:48 +00:00
partouf 730f1b8f0c bugfix tools 2021-10-15 18:00:50 +00:00
Patrick Quist 1ca884c367 Seperate compiler finding process (#3022) 2021-10-15 18:22:33 +02:00
Marc PoulhièsandMats Larsen 9b46d4f1fd Initial support for GNAT specific debug output (#3000)
This change only gets the GNAT Debug expanded generated code (-gnatD).

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
Co-authored-by: Mats Larsen <me@supergrecko.com>
2021-10-13 19:59:26 +02:00
Bhavin Ag 26f8357627 refactor: replace underscore each usage with native for of (#3012)
* refactor: update underscore each usage to native iterations
* refactor: replace object.entries with for of
2021-10-08 07:50:27 -05:00
Mats Larsen 63b3c90dc2 Add Go formatting with Gofmt (#2966)
Fixes #1009

Supports formatting go code, using gofmt as backend.
2021-10-05 15:41:16 +02:00
Austin Morton 810134942d Avoid calling compilerProps after compiler object construction (#3005) 2021-10-04 23:21:32 -05:00
Marc Poulhiès e104811b6b Enable GCC dump for the GNAT Ada compiler (#2989)
* Enable GCC dump for the GNAT Ada compiler

GNAT is part of GCC and can handle the regular GCC options for dump files.

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2021-10-04 22:43:49 -05:00
Mats Larsen 87ed92ac0a Implement LLVM IR output for ispc (#2972) 2021-10-04 21:55:06 -05:00
Rubén Rincón Blanco b6338e0897 Adds supportsExecute language option (#2963)
* Adds supportsExecute language option

It's recalculated every time the compilers change
2021-10-04 21:47:29 -05:00
Jason ZhengandPatrick Quist d103b7f362 Add support for generating SPIR-V assembly from OpenCL C and C++ for OpenCL (#2940)
* Add support for generating SPIR-V assembly from OpenCL C and C++ for OpenCL
* Update cpp_for_opencl.amazon.properties
* Update openclc.amazon.properties

Co-authored-by: Patrick Quist <partouf@gmail.com>
2021-10-04 21:43:07 -05:00
813b654a3e Show full java asm output when using switch expression (#2996)
Fixes #2995 

Co-authored-by: Maurice Mohlek <maurice.mohlek@valtech.de>
Co-authored-by: Mats Larsen <me@supergrecko.com>
2021-10-05 01:21:50 +02:00
Matt Godbolt f71e3c4997 Unconditionally use the compilation queue (#2978)
* Unconditionally use the compilation queue and re-enable MS compilers

* Always use the compilation queue, which ensures we don't
  execute more native apps thn are configured, especially while
  we're starting up.
* Guard the compilation queue from enqueueing stuff that was
  already executing in a queue context. This is to prevent deadlock
  though it's not always a problem (it's only if the caller awaits
  the job, which is often the case).

Should mitigate the issues we had on Sep 30 2021, where nodes were
having trouble starting up due to the large amount of JVM-based
compilers. See #2977
2021-09-30 22:42:23 -05:00
Matt Godbolt 4e75139484 Another attempt at speeding up the regex 2021-09-27 22:46:03 -05:00
Matt Godbolt a75fe0986b Improve the regular expression used to parse conditionals.
https://github.com/compiler-explorer/compiler-explorer/security/code-scanning/16?query=ref%3Arefs%2Fheads%2Fmain
2021-09-27 21:56:32 -05:00
Mats Larsen 97134a9813 Fix linting errors from #2932 2021-09-27 10:03:22 +02:00
Mats Larsen 278d28b313 Add rustc Macro Expansion view (#2932)
Adds a new pane for producing the macro expansion of Rust code compiled with rustc.
2021-09-27 00:33:09 +02:00
Mats Larsen e7b9cbda91 Respect tab width and tabs/spaces settings for format APIs (#2957)
Site settings for tab width and tabs vs spaces are now being used when sent to the /api/format APIs.

This patch also includes some tiny internal refactoring on the bits related to the formatting API.
2021-09-26 23:56:39 +02:00
Patrick QuistandRabsRincon c3a72742b3 Remove user-agent dependencies and add some extra metadata stuff (#2943)
* lintfix

* dont look at user agent to escape things

* Clean my old code a tad

* Fix lint error

* some more metadata options and tests for it

* refactor underscore calls

Co-authored-by: RabsRincon <ruben@rinconblanco.es>
2021-09-17 20:14:53 +02:00
Mats Larsen 8c852d90fa Rename CUDA to CUDA C++ in language dropdown (#2938) 2021-09-15 16:11:01 +02:00
partouf eda7397668 add .ixx to c++ extensions 2021-09-13 21:12:45 +00:00
partouf 8cd9aaf85a oops 2021-09-13 20:24:46 +00:00
partouf 04f39e2e8e bugfixes pascal objdump 2021-09-13 20:20:21 +00:00
partouf 6919532473 bugfixes cmake inputFilename 2021-09-13 19:56:56 +00:00
Patrick Quist e24f724e47 Options cleanup (#2924)
* getting rid of compiler.libs

* old widget no longer needed

* move supportedLibraries code to base-compiler

* bugfix

* oops

* grmbl

* bugfix remote msvc compilers
2021-09-13 20:22:39 +02:00
bc6757ae94 Pascalchanges (#2881)
* Changes to allow Program (vs Unit) in Object Pascal

* add possibility of dpr

* more flexibility with pascal filenames

* lintfixes

* i have no idea what im doing

* apply changes to pascal-win

* pascal fixes

* pascal projectfile changes

* work in progress

* bugfixes

* bla

* bugfixes

* mostly working

Co-authored-by: paul mcgee <paul.mcgee.8@bigpond.com>
Co-authored-by: Paul McGee <paulmcgee1969@gmail.com>
2021-09-13 20:22:27 +02:00
Patrick Quist d6081f5bda support cmake for fortran (#2930)
* support cmake for fortran

* fortran compiler flags
2021-09-12 02:43:36 +02:00
Patrick Quist 27136f3e1d Clean trunk and execution (#2916) 2021-09-04 20:55:49 +02:00
HazandRubén Rincón Blanco b3628b2c31 OCaml Improvements: objdump and a few refactorings (#2913)
* OCaml properties fixes

- Improve defaults by adding local and system versions
  - Make no assumptions about whether local and system are the same
  - Enable OPAM workflows which rely on updating PATH
- Fix version flag
- Fix objdumper

* OCaml output refactoring

* Add an arg parser for OCaml

Derived from Pascal (for now)

* Rename default OCaml compiler ids

* Add alias of old OCaml default compiler id

Co-authored-by: Rubén Rincón Blanco <ruben@rinconblanco.es>
2021-09-03 05:51:15 +02:00
Kevin Adler 44c5162add Add support for Microsoft Visual C++ 6 (#2907)
A new compiler type 'win32-vc6' has been added, which uses a slightly
modified version of asm-parser-vc to handle assembly output differences
from current Visual Studio output.

In particular, MSVC6 does not output a comment line containing the
function's compile flags prior to the function body. The win32-vc parser
uses this to identify the start of a function and initialize
currentFunction. Instead, we use the regex that identifies a function
name to do this. Otherwise, a TypeError occurs trying to set
currentFunction.name when currentFunction is null.

In addition, MSVC6 only outputs a file comment once (presumably, until a
function from a different file is output). So instead of initializing
currentFunction.file to undefined, it is set to currentFile instead.
This should get set on the first function found in the file, but if not
it is initialized to undefined, so the behavior there would be the same.

Finally, the _DATA and _TLS segments are handled as well as some
additional miscellaneous directives.
2021-09-01 07:50:26 -05:00
Patrick Quist 31050a81ac Cmakeproms (#2906)
* new counters for cmake and bugfix executeCounter

* bugfix execution counter

* bugfix for when switching language
2021-08-31 17:46:21 +02:00
Patrick Quist 22304af44e new counters for cmake and bugfix executeCounter (#2905) 2021-08-31 16:39:55 +02:00
Patrick Quist b744d6ad9e Asm-parser binary bugfix (#2904)
* unittests

* extra label definition screws up logic

* fix test
2021-08-31 14:07:23 +02:00
partouf 9d382eb03e bugfix mainsource detection 2021-08-29 13:11:15 +00:00
Mats Larsen cfff740283 Fix execution for Java with multifile ui (#2882)
* Fix execution for Java with multifile ui

* Remove dev comment
2021-08-28 14:39:02 +02:00
RabsRincon 955e500cea Make asSafeVer even safer for more types of inputs 2021-08-28 02:55:33 +02:00
RabsRincon 0b75857df3 Only focus on the first word of semver for ordering
Helps with #2860
2021-08-28 02:40:05 +02:00
Patrick Quist 27d29d991a allow .f fortran file 2021-08-27 20:36:45 +02:00
Patrick Quist 5e5e60159a Multifile/IDE mode (#2725) 2021-08-26 21:57:07 +02:00
Rubén Rincón Blanco aab1e8cbaa Add chibicc (#2873)
I think this should not be a nightly install but a target for every
commit
2021-08-26 18:13:28 +02:00
Mats LarsenandMatt Godbolt 53b9e0ac59 Support multiple formatter types for /api/format (#2818)
* Make /api/format handle multiple formatter types
* Ignore preferred style if the formatter is a 'one true style' formatter
* Add tests for base formatter
* Document /api/formats and /api/format/<formatter> usage
* Document adding a new formatter
* Update amazon config

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2021-08-24 18:46:38 -05:00
Matt Godbolt 019029c070 Support execution and binary mode in haskell. Closes #2854 2021-08-14 13:06:26 -05:00
Haz 60db8ba531 Make OCaml examples executable and objdumpable (#2853)
Changes:

- ocaml.default.properties:
  - add the relevant flags for execution and emitting binaries
  - add nicer version number reporting
  - let CE know `objdump` can be used on ocaml objects

- ocaml.js:
  - update optionsForFilter for both executable and object handling
  - override the getter for executable to work within ocamlopt context
2021-08-14 13:03:13 -05:00
Mats Larsen b6c2380c56 Assembly API documentation for Java Bytecode (#2817)
* Add assembly documentation endpoint for Java bytecode
* Upstream asm docenizer for Java
* Remove jvms.html from gitattributes as it is never checked into vcs
* EOF line for docenizer-java.js
* Use find-node to locate nodejs
* Format code according to style guide
2021-08-14 12:56:33 -05:00
ca017bac31 Add support for heterogeneous compute (#2836)
* Extract device code from assembly files.

This commit by itself does not actually add any viewing panes for the
extracted device code, nor does it provide any means to provide
device-specific postprocessing steps.

* Add a rudimentary device view.

This doesn't handle multiple device outputs correctly at the moment, and
it provides no opportunity to view device code differently from
non-device code for now.

* Lint issues

* Some more WIP getting it working.

* Add device extraction code

* More fixes, and keep state

Co-authored-by: Joshua Cranmer <joshua.cranmer@intel.com>
Co-authored-by: Patrick Quist <partouf@gmail.com>
2021-08-14 12:53:22 -05:00
RabsRincon 565a4f7b48 Actually fix Windows options-handler tests for realsies now 2021-08-13 06:11:32 +02:00