summaryrefslogtreecommitdiff
path: root/support/cpp
AgeCommit message (Collapse)Author
2024-11-04Fix bug #3794. Adapt test to recent K&R changes.spth
git-svn-id: http://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@15078 4a8a32a2-be11-0410-ad9d-d568d2c75423
2024-04-23Amend unused function prototypes. Fixes #3725felixs
git-svn-id: http://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@14819 4a8a32a2-be11-0410-ad9d-d568d2c75423
2023-11-20Fix #3677felixs
git-svn-id: http://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@14447 4a8a32a2-be11-0410-ad9d-d568d2c75423
2023-11-09Fix bug #3654felixs
git-svn-id: http://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@14416 4a8a32a2-be11-0410-ad9d-d568d2c75423
2023-11-08attempt to fix bug #3669felixs
git-svn-id: http://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@14408 4a8a32a2-be11-0410-ad9d-d568d2c75423
2023-08-19* device/include/asm/default/features.h,maartenbrock
* device/include/asm/ds390/features.h, * device/include/asm/mcs51/features.h, * device/include/asm/pic14/features.h, * device/include/asm/pic16/features.h, * device/include/asm/r2k/features.h, * device/include/asm/r3ka/features.h, * device/include/asm/sm83/features.h, * device/include/asm/stm8/features.h, * device/include/asm/tlcs90/features.h, * device/include/asm/z80/features.h: added __SDCC_NONBANKED * device/include/float.h: use __SDCC_NONBANKED for __SDCC_FLOAT_NONBANKED * device/include/sdcc-lib.h: cosmetics * device/lib/_divsint.c, * device/lib/_divslong.c, * device/lib/_divslonglong.c, * device/lib/_divuint.c, * device/lib/_divulong.c, * device/lib/_divulonglong.c, * device/lib/_modsint.c, * device/lib/_modslong.c, * device/lib/_modslonglong.c, * device/lib/_moduint.c, * device/lib/_modulong.c, * device/lib/_modulonglong.c, * device/lib/_mulint.c, * device/lib/_mullong.c, * device/lib/_mullonglong.c: moved __SDCC_NONBANKED to sdcc-lib.h * device/lib/_slonglong2fs.c: cosmetics * device/lib/Makefile.in, * device/lib/hc08/Makefile.in, * device/lib/mos6502/Makefile.in, * device/lib/mos6502-stack-auto/Makefile.in, * device/lib/mos65c02/Makefile.in, * device/lib/pdk13/Makefile.in, * device/lib/pdk14/Makefile.in, * device/lib/pdk15/Makefile.in, * device/lib/pdk15-stack-auto/Makefile.in, * device/lib/s08/Makefile.in, * device/lib/s08-stack-auto/Makefile.in, * device/lib/stm8/Makefile.in, * device/lib/stm8-large/Makefile.in, * src/SDCCsymt.c (initCSupport): renamed _r[lr][su]longlong.c to _s[lr][su]longlong.c because they are shifts not rotates * device/lib/_slslonglong.c: renamed from _rlslonglong.c, moved __SDCC_NONBANKED to sdcc-lib.h * device/lib/_slulonglong.c: renamed from _rlulonglong.c, moved __SDCC_NONBANKED to sdcc-lib.h, use _AUTOMEM for better code generation * device/lib/_srslonglong.c: renamed from _rrslonglong.c, bugfix little endian variant, moved __SDCC_NONBANKED to sdcc-lib.h, use _AUTOMEM for better code generation, removed comment about non-existing rrulonglong_rrx_s.c * device/lib/_srulonglong.c: renamed from _rrulonglong.c, moved __SDCC_NONBANKED to sdcc-lib.h, use _AUTOMEM for better code generation, removed comment about non-existing rrulonglong_rrx_s.c * device/lib/mos6502/_srslonglong.c: renamed from _rrslonglong.c * device/lib/mos6502/_srulonglong.c: renamed from _rrulonglong.c * device/lib/mos6502-stack-auto/_srslonglong.c: renamed from _rrslonglong.c * device/lib/mos6502-stack-auto/_srulonglong.c: renamed from _rrulonglong.c * device/lib/atomic_flag_clear.c: generate external definition for inline definition with external linkage * device/include/stdatomic.h: inline atomic_flag_clear(), use 0xfe for z80-like, use __SDCC_NONBANKED * device/lib/ez80_z80/atomic_flag_test_and_set.s, * device/lib/r2k/atomic_flag_test_and_set.s, * device/lib/r2ka/atomic_flag_test_and_set.s, * device/lib/r3ka/atomic_flag_test_and_set.s, * device/lib/sm83/atomic_flag_test_and_set.s, * device/lib/z180/atomic_flag_test_and_set.s, * device/lib/z80/atomic_flag_test_and_set.s, * device/lib/z80n/atomic_flag_test_and_set.s: use sra on 0xfe and drop ccf * device/lib/strtoull.c: drop oldret * device/lib/wcstoull.c: drop oldret, (_isdigit): fix L'a', (strtoull): bugfix, renamed to wcstoull() & use iswblank() * debugger/mcs51/sdcdb.c (readCdb): fixed warning/bug * src/SDCC.y: fixed warnings * src/SDCCval.h, * src/SDCCval.c (ullFromVal): make val const to fix warnings * src/mcs51/ralloc.c (regsUsedIniCode): removed label to fix warning * src/mos6502/gen.c (opInfo): fix warning, (genRightShift): fixed warning * src/z80/ralloc.c (regsUsedIniCode): removed label to fix warning * support/cpp/gcc/diagnostic.cc (fancy_abort): fixed warning, removed formfeeds * support/cpp/gcc/gcc.cc (insert_comments,get_random_number): fixed warnings removed formfeeds * support/cpp/libcpp/expr.cc (cpp_classify_number): fixed warnings, removed formfeeds * support/cpp/libcpp/macro.cc (update,create_iso_definition): fixed warnings * support/makebin/makebin.c: fixed warning git-svn-id: http://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@14312 4a8a32a2-be11-0410-ad9d-d568d2c75423
2023-02-17fix bug #3483felixs
git-svn-id: http://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@13893 4a8a32a2-be11-0410-ad9d-d568d2c75423
2022-12-24* support/cpp/gcc/configure.ac,epetrich
support/cpp/gcc/configure: disable some assembler and target tests unneeded for the preprocessor git-svn-id: http://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@13778 4a8a32a2-be11-0410-ad9d-d568d2c75423
2022-11-30* support/cpp/gcc/pretty-print.cc: define some consoleepetrich
attribute constants if they are missing git-svn-id: http://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@13761 4a8a32a2-be11-0410-ad9d-d568d2c75423
2022-11-30* support/cpp/gcc/gcc.cc,epetrich
support/cpp/gcc/opts.cc, support/cpp/gcc/opts-common.cc, support/cpp/gcc/opts-global.cc, support/cpp/gcc/prefix.cc, support/cpp/gcc/toplev.cc, support/cpp/libcpp/lex.cc, support/cpp/libcpp/mkdeps.cc, support/cpp/gcc/c-family/c-opts.cc, support/cpp/gcc/c-family/c-ppoutput.cc: Possible fix for bug #3524 git-svn-id: http://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@13760 4a8a32a2-be11-0410-ad9d-d568d2c75423
2022-11-29* support/cpp/gcc/system.h: don't try to check inodes whenepetrich
compiled for Windows git-svn-id: http://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@13759 4a8a32a2-be11-0410-ad9d-d568d2c75423
2022-11-28* support/cpp/gcc/Makefile.in,epetrich
support/cpp/gcc/cc1_dummies.cc, support/cpp/gcc/c/Make-lang.in, support/cpp/gcc/c-family/c-common.h, support/cpp/gcc/c-family/c-opts.cc: remove some unneeded compile time executable requirement so cross compile with mingw can succeed git-svn-id: http://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@13754 4a8a32a2-be11-0410-ad9d-d568d2c75423
2022-11-26* support/cpp/gcc/Makefile.in: add missing $(exeext)epetrich
git-svn-id: http://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@13753 4a8a32a2-be11-0410-ad9d-d568d2c75423
2022-11-26* support/cpp/gcc/gcc.cc,epetrich
support/cpp/gcc/opts.cc, support/cpp/gcc/opts-common.cc, support/cpp/gcc/prefix.cc, support/cpp/gcc/toplev.cc, support/cpp/libcpp/lex.cc, support/cpp/libcpp/mkdeps.cc, support/cpp/gcc/c-family/c-opts.cc, support/cpp/gcc/c-family/c-ppoutput.cc: move iostream header last to avoid inconsistent struct offsets and thus segfaults git-svn-id: http://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@13752 4a8a32a2-be11-0410-ad9d-d568d2c75423
2022-11-11Ignore "unsupported target" in support/cpp/gcc/config.gcc.felixs
git-svn-id: http://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@13746 4a8a32a2-be11-0410-ad9d-d568d2c75423
2022-11-03Add missing file from GCC CPP.roybaer
git-svn-id: http://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@13741 4a8a32a2-be11-0410-ad9d-d568d2c75423
2022-10-25cpp: Fix argument type in dummy, #3492.felixs
git-svn-id: http://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@13738 4a8a32a2-be11-0410-ad9d-d568d2c75423
2022-10-07cpp/gcc: two more dummiesfelixs
git-svn-id: http://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@13729 4a8a32a2-be11-0410-ad9d-d568d2c75423
2022-09-25Fix handling of c2x standard for preprocessor.spth
git-svn-id: http://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@13723 4a8a32a2-be11-0410-ad9d-d568d2c75423
2022-09-13sdcpp build: Remove wrong/unneeded gmp usefelixs
git-svn-id: http://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@13705 4a8a32a2-be11-0410-ad9d-d568d2c75423
2022-09-08cpp/backtrace: delete unused filefelixs
git-svn-id: http://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@13699 4a8a32a2-be11-0410-ad9d-d568d2c75423
2022-09-08cpp: avoid tm_preds.h deletionfelixs
git-svn-id: http://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@13697 4a8a32a2-be11-0410-ad9d-d568d2c75423
2022-09-06cpp: revisit clean autogenerated filesfelixs
git-svn-id: http://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@13694 4a8a32a2-be11-0410-ad9d-d568d2c75423
2022-09-04Merge cpp branch to trunk.spth
git-svn-id: http://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@13690 4a8a32a2-be11-0410-ad9d-d568d2c75423
2022-07-22add "line" to lineinfo lines, following the standardfelixs
git-svn-id: http://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@13587 4a8a32a2-be11-0410-ad9d-d568d2c75423
2022-07-16move __func__ elaboration entirely to sdccfelixs
git-svn-id: http://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@13576 4a8a32a2-be11-0410-ad9d-d568d2c75423
2018-12-15* configure, configure.ac: changed warning into noticemaartenbrock
* sdas/asz80/z80mch.c: cosmetic * src/sdcc.vcxproj, * src/sdcc.vcxproj.filters: added missing SDCC.lex & SDCC.y * support/cpp/libcpp/files.c, * support/cpp/libcpp/identifiers.c, * support/cpp/libcpp/init.c, * support/cpp/libcpp/symtab.c: fixed warnings for unsigned size_t * support/regression/tests/bitopcse.c: only use idata for mcs51 * support/regression/tests/gcc-torture-execute-20021120-1.c: disabled for hc08 & s08, uses way too much spillocs in DSEG * support/regression/tests/longlong.c: split the test in 3 parts * support/sdbinutils/bfd/targets.c: added "ASXXXX" * support/sdbinutils/libiberty/simple-object-elf.c: fixed warning git-svn-id: http://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@10764 4a8a32a2-be11-0410-ad9d-d568d2c75423
2018-09-02* support/cpp/Makefile.in: move current directory earlier inepetrich
the include file search path git-svn-id: http://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@10537 4a8a32a2-be11-0410-ad9d-d568d2c75423
2018-04-15Use C11 instead of ms-extensions to get support for anonymous struct.spth
git-svn-id: http://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@10386 4a8a32a2-be11-0410-ad9d-d568d2c75423
2016-03-05* device/non-free/lib/pic16/missing: copied from device/lib/pic16/missingmaartenbrock
* src/SDCCgen.c (genInline): also check for colon in single literal char * support/cpp/libcpp/macro.c (create_iso_definition): fixed warning * support/regression/compact-results.py: use 'T' for clock ticks git-svn-id: https://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@9514 4a8a32a2-be11-0410-ad9d-d568d2c75423
2016-01-23Try to fix bug #2457.benshi
git-svn-id: https://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@9478 4a8a32a2-be11-0410-ad9d-d568d2c75423
2016-01-02* all.vcxproj,maartenbrock
* config.vcxproj, * sdas/as6808/as_hc08.vcxproj, * sdas/as8051/asx8051.vcxproj, * sdas/as8xcxxx/sdas390.vcxproj, * sdas/asgb/asgb.vcxproj, * sdas/linksrc/aslink.vcxproj, * src/avr/avr.vcxproj, * src/ds390/ds390.vcxproj, * src/hc08/hc08.vcxproj, * src/mcs51/mcs51.vcxproj, * src/pic14/pic14.vcxproj, * src/pic16/pic16.vcxproj, * src/sdcc.vcxproj, * src/xa51/xa51.vcxproj, * src/z80/z80.vcxproj, * src/z80/z80a.vcxproj, * support/cpp/sdcpp.vcxproj, * support/librarian/librarian.vcxproj, * support/makebin/makebin.vcxproj, * support/packihx/packihx.vcxproj: applied patch 252 by Peter Dons Tychsen to remove UpgradeFromVC60.props git-svn-id: https://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@9437 4a8a32a2-be11-0410-ad9d-d568d2c75423
2015-11-28Fix call to make.spth
git-svn-id: https://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@9413 4a8a32a2-be11-0410-ad9d-d568d2c75423
2015-11-13Fix some platform dependant issues.benshi
git-svn-id: https://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@9404 4a8a32a2-be11-0410-ad9d-d568d2c75423
2015-11-05* sdcc.sln,maartenbrock
* src/yacc.vcxproj: deleted yacc project * src/sdcc.vcxproj, * src/sdcc.vcxproj.filters: moved SDCC.y here for better dependencies * SDCC.props: new, added Visual C property sheet for generic settings like boost path (default: c:\local\boost_1_59_0\) * src/hc08/hc08.vcxproj, * src/sdcc.vcxproj, * src/stm8/stm8.vcxproj, * src/z80/z80.vcxproj: use SDCC.props * sdas/linksrc/lkaomf51.c: output capitals depending on the zflag * src/common.h * src/stm8/ralloc2.cc (extra_ic_generated), * src/z80/ralloc2.cc (default_operand_cost, assign_cost, Ainst_ok, rough_cost_estimate), * src/SDCCglue.c (printIvalChar), * src/SDCCopt.c (convertToFcall): fixed warnings * src/SDCCutil.c (isblank): added for MSVC 2010 * support/cpp/ansidecl.h: deleted * support/cpp/sdcpp.vcxproj, * support/cpp/sdcpp.vcxproj.filters: use files in support/sdbinutils/ * support/sdbinutils/libiberty/getpwd.c: fixed for MSVC git-svn-id: https://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@9384 4a8a32a2-be11-0410-ad9d-d568d2c75423
2015-10-26Merge cpp-merge-upstream branch to get improved standard support.spth
git-svn-id: https://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@9379 4a8a32a2-be11-0410-ad9d-d568d2c75423
2015-10-18Reformat to reduce diff to upstream cpp.spth
git-svn-id: https://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@9365 4a8a32a2-be11-0410-ad9d-d568d2c75423
2015-10-18Reformat to reduce diff to upstream cpp.spth
git-svn-id: https://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@9364 4a8a32a2-be11-0410-ad9d-d568d2c75423
2015-10-18Reformat to reduce diff to upstream cpp.spth
git-svn-id: https://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@9363 4a8a32a2-be11-0410-ad9d-d568d2c75423
2015-10-18Reformat to reduce diff to upstream cpp.spth
git-svn-id: https://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@9362 4a8a32a2-be11-0410-ad9d-d568d2c75423
2015-10-18Reformat to reduce diff to upstream cpp.spth
git-svn-id: https://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@9361 4a8a32a2-be11-0410-ad9d-d568d2c75423
2015-10-17Reformat to reduce diff to upstream cpp.spth
git-svn-id: https://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@9360 4a8a32a2-be11-0410-ad9d-d568d2c75423
2015-10-12Fix a spot in previous commit.benshi
git-svn-id: https://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@9359 4a8a32a2-be11-0410-ad9d-d568d2c75423
2015-10-10Reformat to reduce diff to upstream version.spth
git-svn-id: https://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@9357 4a8a32a2-be11-0410-ad9d-d568d2c75423
2015-10-08Drop cpp support for Borland C.spth
git-svn-id: https://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@9349 4a8a32a2-be11-0410-ad9d-d568d2c75423
2015-07-13Fix bug #2398.benshi
git-svn-id: https://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@9285 4a8a32a2-be11-0410-ad9d-d568d2c75423
2015-07-12Implement feature-request #447.benshi
git-svn-id: https://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@9283 4a8a32a2-be11-0410-ad9d-d568d2c75423
2015-04-29Fix bug #1952.benshi
git-svn-id: https://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@9224 4a8a32a2-be11-0410-ad9d-d568d2c75423
2015-04-01Fix a spot in reversion #9201.benshi
git-svn-id: https://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@9203 4a8a32a2-be11-0410-ad9d-d568d2c75423
2015-03-27Fix bug #2101 and bug #2246.benshi
git-svn-id: https://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@9201 4a8a32a2-be11-0410-ad9d-d568d2c75423